AnimationTool/app/stylesheets/main.scss

310 lines
5.0 KiB
SCSS

$bg-color: #3d2b56;
$bg-dark-color: #7a8386;
$canvas-bg-color: #859094;
$secondary-bg-color: #2c497f;
$main-border-color: #6b7578;
$main-font-color: #ccf5ac;
$selected-border-color: #09e7ca;
$selected-bg-color: #4d998f;
$warning-border-color: #aa093a;
$warning-bg-color: #6e545c;
$warning-selected-border-color: #ff044f;
$warning-selected-bg-color: #aa093a;
$warning-text-color: #ff1d61;
body {
background-color: $bg-color;
}
div {
user-select: none;
-moz-user-select: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;
display: block;
color: $main-font-color;
font-family: "Arial", Helvetica, sans-serif;
}
#helpButton {
display: block;
position: absolute;
right: 10px;
top: 10px;
border: 1px solid;
border-radius: 25px;
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
}
.hidden {
display: none !important;
}
#info {
display: block;
position: absolute;
right: 30px;
top: 10px;
width: 200px;
text-align: center;
}
.instruction {
font-size: 12px;
margin: auto;
width: 80%;
padding: 8px;
text-align: center;
background-color: $secondary-bg-color;
border-radius: 5px;
}
.center {
margin: auto;
padding: 10px;
text-align: center;
}
.numberinput {
width: 64px;
}
.spriteCanvas {
padding: 0;
min-width: 200px;
border: 1px solid;
background-color: $canvas-bg-color;
}
#top {
padding-top: 15vh;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 0 auto;
width: 75%;
}
#settings {
display: flex;
flex-direction: row;
justify-content: center;
align-content: center;
}
.settingsItem {
display: flex;
flex-direction: row;
margin: 12px;
padding: 4px;
text-align: center;
input {
width: 80%;
}
.label {
margin: 5px;
}
}
.settingsItem {
input {
border-radius: 5px;
}
}
#frameNumber {
text-align: right;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type='number'] {
-moz-appearance: textfield;
}
#framerate {
width: 50px;
text-align: center;
}
.borderbox {
font-size: 12px;
margin: auto;
width: 50%;
padding: 8px;
text-align: center;
}
#frameViewer {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.frame {
flex: 1;
width: 32px;
height: 32px;
max-width: 32px;
color: $main-font-color;
padding: 1px;
display: inline-block;
border: 2px solid $main-border-color;
background-color: $bg-dark-color;
align-items: center;
&.warning {
border: 2px solid $warning-border-color;
background-color: $warning-bg-color;
}
&.selected {
border: 2px solid $selected-border-color;
background-color: $selected-bg-color;
&.warning {
border: 2px solid $warning-selected-border-color;
background-color: $warning-selected-bg-color;
}
}
}
.errorMessage {
font-size: 12px;
width: 50%;
border: 4px solid $warning-border-color;
padding: 1px;
text-align: center;
margin: 0 auto;
//background-color: $warning-bg-color;
//color: $warning-text-color;
}
.warningMessage {
display: block;
color: $warning-text-color;
background-color: $warning-bg-color;
font-family: "Arial", Helvetica, sans-serif;
}
body {
background-color: $bg-color;
}
#dropZone {
width: 100%;
height: 100%;
}
#canvasImage {
image-rendering: pixelated;
}
.pinContainer {
display: inline-grid;
}
$pin-button-size: 75px;
.pinButtonContainer {
grid-row-start: 1;
grid-row-end: 1;
width: $pin-button-size;
height: $pin-button-size;
font-size: 12px;
border: 2px solid $main-border-color;
border-radius: 5px;
padding: 1px;
text-align: center;
vertical-align: middle;
line-height: $pin-button-size;
margin: 5px;
&.warning {
border: 2px solid $warning-border-color;
background-color: $warning-bg-color;
input {
background-color: $warning-bg-color;
}
}
&.selected {
border: 2px solid $selected-border-color;
background-color: $selected-bg-color;
&.warning {
border: 2px solid $warning-selected-border-color;
background-color: $warning-selected-bg-color;
input {
background-color: $warning-selected-bg-color;
}
}
input {
background-color: $selected-bg-color;
}
}
input {
background-color: $bg-color;
width: 80%;
height: 20px;
transform: translateY($pin-button-size / 2 - 10px);
border: none;
color: $main-font-color;
text-align: center;
font-size: 10px;
}
}
#addpin {
display: inline-block;
width: $pin-button-size;
height: $pin-button-size;
background-color: $warning-bg-color;
font-size: 4vw;
}
.removeButton {
display: block;
margin: 0 auto;
position: relative;
transform: translate($pin-button-size / 2, -$pin-button-size / 2 + 5px);
width: 15px;
border: 1px solid;
border-radius: 50%;
background-color: #9e0f22;
color: #e3e3ec;
height: 15px;
line-height: 15px;
}
#exportButton {
display: block;
margin: 0 auto;
margin-top: 20px;
width: 150px;
height: 50px;
line-height: 50px;
font-size: 30px;
text-align: center;
border: 1px solid;
border-radius: 5px;
}