Files
hemma/frontend/static/styles/common.scss

322 lines
5.3 KiB
SCSS

body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background-color: #302f3b;
color: #ffffff;
height: 100%;
font-family: Ubuntu Mono,monospace;
font-size: x-large;
}
.info_box {
margin: auto;
max-width: 40em;
}
.nobr {
white-space: nowrap;
}
.center {
margin: auto;
}
.hidden {
visibility: hidden;
}
/* Tooltip container */
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}
/* Tooltip text */
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
/* Position the tooltip text */
position: absolute;
z-index: 1;
top: 125%;
left: 50%;
margin-left: -100px;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
}
/* Tooltip arrow */
.tooltip .tooltiptext::after {
content: "";
position: absolute;
bottom: 100%;
left: 100px;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent #555 transparent;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
.bulb_box {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
width: fit-content;
}
.bulb_box > * {
margin: 0.5em;
}
.bulb_controls {
display: flex;
flex-direction: row;
align-items: center;
padding-right: 0.5em;
background: #56636e;
border: solid 0.25em #5b3f63;
}
.bulb_controls_disable {
position: relative;
overflow: hidden;
}
.bulb_controls_disable:before {
position: absolute;
content: '';
display: block;
background: #000000;
opacity: 0.5;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
z-index: 90;
}
.bulb_controls_disable:after {
position: absolute;
content: '';
background: #56636e;
display: block;
width: 0;
height: 10px;
border-radius: 8px;
-webkit-transform: rotate(-30deg);
transform: rotate(-30deg);
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
z-index: 91;
animation: to_full_width .2s ease-out 0s 1 forwards;
}
@keyframes to_full_width { to { width: 100%; } }
.bulb_map {
background: url(images/blueprint_bg.png);
background-size: auto;
background-size: 1em;
padding: 2rem;
border: solid 0.4rem #5b3f63;
}
.bulb_map::after {
position: absolute;
width: 100%;
height: 100%;
content: #0003;
}
.bulb_group {
color: black;
text-align: center;
background: #aaaaaaaa;
border: solid 0.25rem white;
border-radius: 0.25rem;
font-size: 2em;
position: absolute;
box-shadow: #0006 0.1em 0.1em 0.1em;
transition: 0.3s ease-in-out;
}
.bulb_group_selected {
border-color: gold;
scale: 1.05;
transition: 0.3s ease-in-out;
}
.bulb_power_button {
width: 70px;
height: 175px;
border-radius: 50px;
margin-top: 1em;
margin-bottom: 1em;
background-color: #b5b5b5;
transition: background-color 0.2s ease-in-out;
}
.bulb_power_button_on {
}
.bulb_power_button > div {
position: absolute;
width: 40px;
margin-left: 8.75px;
color: #000;
font-weight: 700;
}
.bulb_power_button > #lever_face {
height: 40px;
background-color: #cccccc;
margin-top: 25px;
transition: 0.3s ease-in-out;
}
.bulb_power_button_on > #lever_face {
margin-top: -65px;
}
.bulb_power_button > #lever_stem {
height: 30px;
background-color: #eeeeee;
margin-top: 0px;
transition: 0.3s ease-in-out;
}
.bulb_power_button_on > #lever_stem {
margin-top: -30px;
}
.bulb_power_button > #off_label {
height: 30px;
background-color: #cccccc;
padding-top: 15px;
margin-top: -45px;
}
.bulb_power_button > #on_label {
height: 30px;
background-color: #cccccc;
padding-top: 15px;
margin-top: 0px;
}
.bulb_power_button > #switch_socket {
width: 47.5px;
margin-top: -55px;
margin-left: 0;
height: 100px;
background-color: #4f4f4f;
border: solid 5px #fff;
border-radius: 5px;
}
.color_picker {
display: flex;
flex-direction: row;
padding: 0.5em;
}
.color_wheel {
background-image: url(/images/hsb.png);
width: 200px;
height: 200px;
background-size: contain;
border: solid 5px #a4829c;
border-radius: 200px;
}
.color_wheel_marker {
width: 6px;
height: 6px;
background: white;
border: solid 2px black;
border-radius: 10px;
position: absolute;
pointer-events: none;
transition: margin 0.1s ease-out;
}
.brightness_bar {
width: 30px;
height: 200px;
margin-left: 10px;
border: solid 5px #a4829c;
}
.temperature_bar {
width: 30px;
height: 200px;
margin-left: 10px;
background: linear-gradient(0deg, #f81, #eff);
border: solid 5px #a4829c;
}
.color_bar_marker {
width: 30px;
height: 8px;
border-top: solid 2px black;
border-bottom: solid 2px black;
position: absolute;
background: white;
pointer-events: none;
transition: margin 0.1s ease-out;
}
.calendar_day {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-top: .3em;
}
.calendar_time_input {
background: #453f4b;
border: solid 0.35em #5b3f63;
border-radius: .3em;
color: white;
height: 15;
width: 5em;
align: right;
//margin-bottom: .7em;
margin-left: .5em;
}
.calendar_box {
with: 10em;
}