AnimationTool/app/stylesheets/main.scss

310 lines
5.0 KiB
SCSS
Raw Normal View History

2019-10-08 19:53:58 +00:00
$bg-color: #3d2b56;
2019-10-04 23:38:11 +00:00
$bg-dark-color: #7a8386;
2019-10-08 19:53:58 +00:00
$canvas-bg-color: #859094;
$secondary-bg-color: #2c497f;
2019-10-04 23:38:11 +00:00
$main-border-color: #6b7578;
2019-10-08 19:53:58 +00:00
$main-font-color: #ccf5ac;
2019-10-04 23:38:11 +00:00
$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;
2019-10-08 19:53:58 +00:00
body {
background-color: $bg-color;
}
2019-10-04 23:38:11 +00:00
div {
2019-10-07 23:52:34 +00:00
user-select: none;
-moz-user-select: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;
2019-10-04 23:38:11 +00:00
display: block;
color: $main-font-color;
font-family: "Arial", Helvetica, sans-serif;
}
2019-10-08 22:41:37 +00:00
#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;
2019-10-08 22:49:06 +00:00
border-radius: 5px;
2019-10-08 22:41:37 +00:00
}
2019-10-07 23:52:34 +00:00
.center {
margin: auto;
padding: 10px;
text-align: center;
}
2019-10-04 23:38:11 +00:00
.numberinput {
width: 64px;
}
2019-10-07 23:52:34 +00:00
.spriteCanvas {
padding: 0;
2019-10-08 03:44:23 +00:00
min-width: 200px;
border: 1px solid;
2019-10-08 19:53:58 +00:00
background-color: $canvas-bg-color;
2019-10-08 03:44:23 +00:00
}
#top {
2019-10-08 23:11:00 +00:00
padding-top: 15vh;
2019-10-08 03:44:23 +00:00
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 0 auto;
width: 75%;
}
#settings {
display: flex;
2019-10-08 22:15:49 +00:00
flex-direction: row;
justify-content: center;
align-content: center;
2019-10-08 03:44:23 +00:00
}
.settingsItem {
2019-10-08 22:15:49 +00:00
display: flex;
flex-direction: row;
2019-10-08 03:44:23 +00:00
margin: 12px;
padding: 4px;
text-align: center;
input {
width: 80%;
}
2019-10-08 22:15:49 +00:00
.label {
margin: 5px;
}
2019-10-07 23:52:34 +00:00
}
2019-10-08 19:53:58 +00:00
.settingsItem {
input {
border-radius: 5px;
}
}
2019-10-08 22:15:49 +00:00
#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'] {
2019-10-08 22:41:37 +00:00
-moz-appearance: textfield;
2019-10-08 22:15:49 +00:00
}
2019-10-08 19:53:58 +00:00
#framerate {
2019-10-08 22:15:49 +00:00
width: 50px;
text-align: center;
2019-10-08 19:53:58 +00:00
}
2019-10-07 23:52:34 +00:00
.borderbox {
font-size: 12px;
margin: auto;
width: 50%;
padding: 8px;
text-align: center;
}
2019-10-04 23:38:11 +00:00
#frameViewer {
display: flex;
flex-direction: row;
2019-10-08 03:44:23 +00:00
align-items: center;
justify-content: center;
2019-10-04 23:38:11 +00:00
}
2019-10-08 03:44:23 +00:00
2019-10-04 23:38:11 +00:00
.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;
2019-10-07 23:52:34 +00:00
align-items: center;
2019-10-04 23:38:11 +00:00
&.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%;
2019-10-07 23:52:34 +00:00
border: 4px solid $warning-border-color;
2019-10-04 23:38:11 +00:00
padding: 1px;
2019-10-08 22:15:49 +00:00
text-align: center;
margin: 0 auto;
2019-10-07 23:52:34 +00:00
//background-color: $warning-bg-color;
//color: $warning-text-color;
2019-10-04 23:38:11 +00:00
}
.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 {
2019-10-08 19:53:58 +00:00
display: inline-grid;
2019-10-04 23:38:11 +00:00
}
2019-10-08 19:53:58 +00:00
2019-10-08 22:15:49 +00:00
$pin-button-size: 75px;
2019-10-08 19:53:58 +00:00
2019-10-04 23:38:11 +00:00
.pinButtonContainer {
2019-10-08 19:53:58 +00:00
grid-row-start: 1;
grid-row-end: 1;
width: $pin-button-size;
height: $pin-button-size;
2019-10-04 23:38:11 +00:00
font-size: 12px;
border: 2px solid $main-border-color;
2019-10-08 19:53:58 +00:00
border-radius: 5px;
2019-10-04 23:38:11 +00:00
padding: 1px;
2019-10-08 19:53:58 +00:00
text-align: center;
vertical-align: middle;
line-height: $pin-button-size;
margin: 5px;
2019-10-05 00:38:18 +00:00
&.warning {
2019-10-05 00:03:48 +00:00
border: 2px solid $warning-border-color;
background-color: $warning-bg-color;
2019-10-08 22:15:49 +00:00
input {
background-color: $warning-bg-color;
}
2019-10-05 00:03:48 +00:00
}
2019-10-04 23:38:11 +00:00
2019-10-05 00:38:18 +00:00
&.selected {
2019-10-05 00:03:48 +00:00
border: 2px solid $selected-border-color;
background-color: $selected-bg-color;
2019-10-05 00:38:18 +00:00
&.warning {
2019-10-05 00:03:48 +00:00
border: 2px solid $warning-selected-border-color;
background-color: $warning-selected-bg-color;
2019-10-08 22:15:49 +00:00
input {
background-color: $warning-selected-bg-color;
}
}
input {
background-color: $selected-bg-color;
2019-10-05 00:03:48 +00:00
}
}
2019-10-07 23:52:34 +00:00
input {
2019-10-08 22:15:49 +00:00
background-color: $bg-color;
2019-10-08 19:53:58 +00:00
width: 80%;
2019-10-08 22:15:49 +00:00
height: 20px;
transform: translateY($pin-button-size / 2 - 10px);
border: none;
color: $main-font-color;
text-align: center;
font-size: 10px;
2019-10-07 23:52:34 +00:00
}
2019-10-04 23:38:11 +00:00
}
2019-10-08 19:53:58 +00:00
#addpin {
display: inline-block;
width: $pin-button-size;
height: $pin-button-size;
background-color: $warning-bg-color;
font-size: 4vw;
}
2019-10-04 23:38:11 +00:00
.removeButton {
2019-10-08 22:15:49 +00:00
display: block;
margin: 0 auto;
2019-10-08 19:53:58 +00:00
position: relative;
2019-10-08 22:49:06 +00:00
transform: translate($pin-button-size / 2, -$pin-button-size / 2 + 5px);
2019-10-08 19:53:58 +00:00
width: 15px;
2019-10-08 22:49:06 +00:00
border: 1px solid;
2019-10-08 22:15:49 +00:00
border-radius: 50%;
2019-10-08 22:49:06 +00:00
background-color: #9e0f22;
color: #e3e3ec;
height: 15px;
line-height: 15px;
2019-10-04 23:38:11 +00:00
}
#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;
}