inkstitch/electron/src/renderer/assets/style/simulator.css

308 wiersze
5.3 KiB
CSS

/*
* Authors: see git history
*
* Copyright (c) 2010 Authors
* Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
*
*/
* {
padding: 1px;
margin: 1px;
}
.loading-icon {
text-align: center;
margin-bottom: 1rem;
color: rgb(0, 51, 153);
}
.loading-text {
font-family: sans-serif;
}
.loading {
border-radius: 1rem;
border: 3px solid rgb(0, 51, 153);
background-color: rgba(0, 51, 153, 0.1);
padding: 1rem;
}
button {
color: rgb(0, 51, 153);
align-items: flex-start;
text-align: center;
cursor: default;
background: linear-gradient(0deg, rgba(169,169,169,1) 0%, rgba(255,255,255,1) 68%, rgba(227,227,227,1) 100%);
box-sizing: border-box;
padding: 2px 6px 3px;
border-width: 2px;
border-style: outset;
border-color: buttonface;
border-image: initial;
margin-bottom: 5px;
}
.fa-spin-fast {
animation: fa-spin 0.4s infinite linear;
}
.fa-button {
margin: 3px;
}
.fa-fast {
transform: skew(-15deg, -15deg) rotate(15deg) scale(1.25, 0.90);
}
.fa-motion-lines {
transform: scale(1.0, 1.6) translate(0, -18%) skew(-15deg, -15deg) rotate(15deg);
}
.fa-thin-line {
transform: scale(1.4, 0.4);
}
.panel {
display: flex;
justify-content: space-between;
flex-flow: wrap;
}
.panel > * {
display: inline-block;
vertical-align: middle;
text-align: center;
}
.panel fieldset {
text-align: center;
flex: 1;
white-space: nowrap;
margin: 0 5px;
}
fieldset {
border: 2px solid rgb(0, 51, 153);
position: relative;
padding: 0 5px;
font-size: 90%;
background-color: white;
}
.window-controls {
position: absolute;
top: -0.2rem;
right: -2px;
font-size: 0.8rem;
color: white;
background: rgb(0, 51, 153);
transform: scale(1, 0.8) translate(0, -100%);
}
.window-controls > div {
display: inline-block;
padding: 5px;
}
.control-info {
position: absolute;
top: 0;
left: 0;
overflow-y: auto;
transform: translate(-100%, -100%);
padding: 0 1rem 1rem;
background: white;
color: black;
border: 1px solid rgb(0, 51, 153);
border-radius: 5px;
font-size: 1rem;
}
.info-icon {
float: right;
}
.control-info h1 {
background: rgb(0, 51, 153);
color: white;
margin: 0 -1rem 1rem;
padding: 1rem;
}
.control-info div {
display: table-row;
}
.control-info > div {
display: table;
}
.control-info div:first-child p {
font-weight: bold;
}
.control-info p {
display: table-cell;
white-space: nowrap;
border-bottom: 1px solid #ccc;
padding: 0.5rem;
}
fieldset button {
display: inline-block;
}
fieldset.command span.current-command {
display: block;
width: 18rem;
margin: 0 auto;
font-family: sans-serif;
font-size: 2rem;
vertical-align: middle;
}
fieldset.show-commands {
text-align: left;
}
fieldset.show-commands legend {
text-align: center;
}
fieldset.show-commands span {
display: inline-block;
vertical-align: top;
}
fieldset.show-commands span:first-of-type {
padding: 0 5px;
}
button.pressed {
border-style: inset;
}
.vue-slider {
height: 10px !important;
margin-bottom: 14px;
}
.slider-container {
margin: 25px 5px;
flex-grow: 0;
}
.slider-container > * {
display: inline-block;
vertical-align: middle;
}
.slider-box {
width: calc(100% - 11rem);
margin-left: 10px;
margin-right: 10px;
}
.slider-container :deep(.vue-slider-mark-step) {
width: 2px;
height: 20px;
border-radius: 2px;
background: #545454;
transform: translate(1px, -25%);
box-shadow: inset 1px 0 1px #ffffffbd, inset -1px 0 1px black;
}
.slider-container :deep(.vue-slider-mark:first-child .vue-slider-mark-step),
.slider-container :deep(.vue-slider-mark:last-child .vue-slider-mark-step) {
display: block;
}
.slider-container :deep(.vue-slider-rail) {
border: 1px solid #dedede;
}
.slider-container :deep(.vue-slider-process) {
border-radius: 0;
box-shadow: inset 0px 2px 2px #ffffff80, inset 0px -2px 2px #0000002e;
}
.slider-container :deep(.vue-slider-process:first-child) {
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
}
.slider-container :deep(.vue-slider-process:nth-last-child(3)) {
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
.vue-slider-mark-label {
font-size: 1.4rem;
color: #545454;
}
.vue-slider-mark-label svg path {
stroke: white;
stroke-width: 10px;
}
.slider-label-trim {
transform: scale(1, 0.75) translate(-50%, -9px) !important;;
}
.slider-label-stop {
font-size: 1.2rem;
transform: translate(-50%, 12px) !important;;
}
.slider-label-jump {
transform: translate(-50%, -50px) !important;;
}
.slider-label-color-change {
transform: translate(-50%, 10px) !important;;
}
.current-stitch-input {
width: 4rem;
float: right;
font-size: 1rem;
border-style: inset;
padding: 0 3px;
}
.simulator {
display: flex;
flex-direction: column;
height: 95vh;
margin: 10px;
}
.current-command {
color: rgb(0, 51, 153);
font-weight: bold;
}
/* we need ::v-deep here because the svg tag is added by svg.js and so Vue
can't add the data-v-* attribute
*/
div.simulator :deep(svg.simulation) {
flex-grow: 1;
flex-shrink: 1;
order: -2;
margin-bottom: -48px;
}
div.simulator :deep(svg.simulation-scale) {
height: 50px;
order: -1;
margin-left: 5px;
}
div.simulator :deep(.simulation-scale-label) {
font-size: 14px;
}
div.simulator :deep(.cursor) {
/* not sure what to add here to make it more visible */
}