jurassic-park-interface/sass/components/_buttons.scss

108 lines
2.3 KiB
SCSS
Raw Normal View History

.control-panel__button-display {
2020-06-01 14:33:53 +00:00
display: flex;
align-items: center;
}
.button-text__engraved {
text-shadow: 1px 1px 0px #616161, 2px 1px 0px #aeb5b5;
color: transparent;
margin: 0;
text-transform: uppercase;
text-align: center;
2020-06-01 14:33:53 +00:00
}
2020-06-03 12:42:17 +00:00
.button-text__engraved__light {
@extend .button-text__engraved;
text-shadow: 3px 2px 1px #B0B4A9, 1px 1px 0.5px #666C57;
}
2020-06-01 14:33:53 +00:00
.button-text__embossed {
color: #bfbfbf;
text-shadow: 1px 1px 1px #565656;
margin: 0;
text-transform: uppercase;
text-align: center;
2020-06-01 14:33:53 +00:00
}
.button__depressed {
width: fit-content;
box-shadow: inset 0 0 8px #4C4C4C;
padding: 5px;
cursor: default;
}
.buttons {
cursor: pointer;
}
#stop-button {
font-size: 11.55px;
}
#power-charge {
border-radius: 50%;
background-color: #F6E100;
width: 50px;
height: 50px;
}
#power-close {
border-radius: 50%;
background-color: #148E42;
width: 50px;
height: 50px;
}
.power-button__text {
color: white;
}
.onoffswitch {
position: relative; width: 90px;
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
position: absolute;
opacity: 0;
pointer-events: none;
}
.onoffswitch-label {
display: block; overflow: hidden; cursor: pointer;
border: 2px solid #999999; border-radius: 20px;
}
.onoffswitch-inner {
display: block; width: 200%; margin-left: -100%;
transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
box-sizing: border-box;
}
.onoffswitch-inner:before {
content: "HIGH";
padding-left: 10px;
background-color: #34A7C1; color: #FFFFFF;
}
.onoffswitch-inner:after {
content: "LOW";
padding-right: 10px;
background-color: #EEEEEE; color: #999999;
text-align: right;
}
.onoffswitch-switch {
display: block; width: 18px; margin: 6px;
background: #FFFFFF;
position: absolute; top: 0; bottom: 0;
right: 56px;
border: 2px solid #999999; border-radius: 20px;
transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
right: 0px;
}