led-cube/public/style.css

369 lines
5.9 KiB
CSS
Raw Permalink Normal View History

2023-01-13 00:25:05 +01:00
* {
box-sizing: border-box;
}
html {
min-height: 100%;
}
body {
position: absolute;
2023-01-13 00:25:05 +01:00
width: 100%;
top: 0;
bottom: 0;
2023-01-13 00:25:05 +01:00
padding: 0;
margin: 0;
background-color: black;
color: white;
font-family: sans-serif;
}
input, select {
2023-01-13 00:25:05 +01:00
border: 2px solid white;
background-color: transparent;
color: white;
padding: 5px;
border-radius: 10px;
font-size: 16px;
outline: none;
}
input[type=range] {
cursor: pointer;
}
2023-01-13 00:25:05 +01:00
input[type=number] {
max-width: 100px;
}
button {
background-color: #164cff;
border: none;
border-radius: 10px;
padding: 0 20px;
color: white;
font-weight: bold;
font-size: 16px;
cursor: pointer;
height: 32px;
}
button:disabled {
filter: grayscale();
}
2023-01-13 00:25:05 +01:00
.suffix-ms::after {
content: "ms";
}
.icon-button {
background-color: transparent;
height: 32px;
background-position: center center;
background-repeat: no-repeat;
background-size: auto 32px;
border-radius: 0;
}
.icon-button:hover {
background-color: transparent;
}
.icon-button-play {
background-image: url("graphics/icon-play.svg");
}
.icon-button-stop {
background-image: url("graphics/icon-stop.svg");
}
.icon-button-delete {
background-image: url("graphics/icon-delete.svg");
}
2023-01-17 23:13:34 +01:00
.icon-button-timer {
background-image: url("graphics/icon-timer.svg");
}
2023-01-13 00:25:05 +01:00
button:hover {
background-color: #3765ff;
}
#cube-window {
display: flex;
justify-content: center;
align-items: center;
background-color: black;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
2023-01-13 00:25:05 +01:00
}
#animation-window {
position: fixed;
left: 0;
right: 0;
bottom: 50px;
2023-01-13 00:25:05 +01:00
display: flex;
justify-content: center;
align-items: center;
}
#frame-menu, #header-menu {
2023-01-13 00:25:05 +01:00
border: 2px solid white;
border-radius: 20px;
padding: 20px;
display: flex;
align-items: center;
z-index: 1;
}
#frame-menu {
position: relative;
background-color: black;
2023-01-13 00:25:05 +01:00
}
#header-menu {
border: none;
position: fixed;
top: 10px;
left: 10px;
}
2023-01-13 00:25:05 +01:00
#frame-menu > * {
margin: 0 10px;
}
#frame-display {
text-align: center;
}
#frame-slider {
width: 250px;
}
#cube {
display: block;
padding-bottom: 200px;
2023-01-13 00:25:05 +01:00
}
2023-01-17 23:13:34 +01:00
.selector {
position: relative;
}
.selector-title {
margin-bottom: 10px;
font-weight: bold;
}
.selector-title::after {
content: ":";
}
.selector-display, .selector-items {
border: 2px solid white;
border-radius: 10px;
padding: 8px;
padding-bottom:12px;
cursor: pointer;
}
.selector-display {
padding-right: 40px;
background-color: black;
background-image: url("graphics/icon-dropdown.svg");
background-repeat: no-repeat;
background-size: auto 8px;
background-position: right 10px top 15px;
}
.selector-items {
border-radius: 0 0 10px 10px;
2023-01-17 23:13:34 +01:00
position: absolute;
background-color: black;
2023-01-17 23:13:34 +01:00
top: 68px;
padding: 0;
2023-01-17 23:13:34 +01:00
width: 100%;
}
.selector-item {
padding: 4px 8px;
}
.selector-item:hover {
background-color: white;
color: black;
}
2023-01-19 23:50:42 +01:00
.layer {
position: relative;
transform: scale(1.0, 0.4) rotate(-45deg);
margin-bottom: -40%;
border: 2px solid transparent;
border-radius: 20px;
background-color: black;
}
.layer:hover {
border: 2px solid white;
border-radius: 20px;
}
.layer-submenu {
position: absolute;
left: 67%;
bottom: -74px;
display: flex;
align-items: center;
transform: rotate(45deg) scale(1.0, 3);
visibility: hidden;
padding-left: 58px;
}
.submenu-line {
border: 0.25px solid white;
width: 80px;
}
2023-01-13 00:25:05 +01:00
.layer:hover .layer-submenu {
visibility: visible;
}
.layer-buttons {
display: flex;
2023-01-19 23:50:42 +01:00
border: solid 0.5px white;
padding: 5px 10px;
2023-01-13 00:25:05 +01:00
border-radius: 10px;
}
.layer-button {
border-radius: 50%;
border: 2px solid white;
width: 32px;
height: 32px;
margin: 5px;
cursor: pointer;
}
2023-01-19 23:50:42 +01:00
.layer-button-on, .layer-button-on:hover {
background-color: white;
2023-01-13 00:25:05 +01:00
}
2023-01-19 23:50:42 +01:00
.layer-button-off, .layer-button-off:hover {
2023-01-13 00:25:05 +01:00
background-color: black;
}
.led {
background-color: white;
box-shadow: 0 0 10px white;
2023-01-13 00:25:05 +01:00
border-radius: 50%;
width: 32px;
height: 48px;
margin: 8px 16px;
transform: rotate(45deg);
cursor: pointer;
}
.led-off {
opacity: 0.25;
box-shadow: none;
}
.led-previous {
opacity: 0.5;
}
.led-red {
background-color: red;
box-shadow: 0 0 10px red;
2023-01-13 00:25:05 +01:00
}
.led-blue {
background-color: #3333ff;
box-shadow: 0 0 10px #3333ff;
2023-01-13 00:25:05 +01:00
}
.led-green {
background-color: #00ff00;
box-shadow: 0 0 10px #00ff00;
2023-01-13 00:25:05 +01:00
}
.row {
display: flex;
}
.menu-fullscreen {
background-color: rgba(0, 0, 0, 0.7);
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
justify-content: center;
align-items: center;
}
.submenu-popup {
display: none;
background-color: #091c59;
padding: 20px;
border: 2px solid white;
border-radius: 20px;
position: absolute;
right: -143px;
bottom: 57px;
box-shadow: 0 0 10px black;}
.submenu-popup::before {
position: absolute;
content: '';
width: 0;
height: 0;
bottom: -20px;
right: 50%;
border-width: 10px;
border-style: solid;
border-color: #091c59 #091c59 transparent transparent;
filter: drop-shadow(0 2px 0 white);
}
.submenu-popup::after {
position: absolute;
content: '';
width: 0;
height: 0;
bottom: -20px;
left: 50%;
border-width: 10px;
border-style: solid;
border-color: #091c59 transparent transparent #091c59;
filter: drop-shadow(0 2px 0 white);
}
.value-slider {
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
}
.container-slider-value {
display: inline-block;
width: 55px;
}
.slider-value {
margin-left: 10px;
}
.menu-fullscreen-button-line {
display: flex;
justify-content: space-between;
}
#duration-scale {
position: relative;
}