/
kiselevivan
/
wifi_light_control
Обзор
Документация
Войти
/
kiselevivan
/
wifi_light_control
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
web/style.css
167 строк
2 KB
Ivan
first commit
13 апр 2023, 07:38
13 апр 2023, 07:38
4357232
Код
Авторство
О чём код?
body { text-align: center; height: 100%; margin: 0; background-color: silver; } .menu input[type="button"] { position: relative; top: 50%; margin-top: -30px; } .menu{ background-color: #000066; margin-top: 0px; } .menu li { display: inline-block; list-style-type: none; background-color: #000099; padding: 20px 0px 20px 0px; } .menu li:hover{ background-color: #0000cc; } .menu a { color: white; text-decoration: none; padding: 20px; font-family: Time new roman; font-weight: bold; } iframe{ border: none; scroll-behavior: auto; width: 100%; height: 80%; } #buttonsMenu{ padding-top: 10px; } .btn{ height: 70px; padding-top: 40px; width: 70px; padding-right: 5px; padding-left: 5px; } #buttonTermoSettingsDialogOpen{ background: url(waterHeater.png) no-repeat; background-size: 50px 50px; background-position: center top; } #buttonSensorsDialogOpen{ background: url(sensor.png) no-repeat; background-size: 50px 50px; background-position: center top; } #buttonRelaysDialogOpen{ background: url(relays.png) no-repeat; background-size: 45px 45px; background-position: center top; } div.relays input[type=checkbox]{ height: 0; width: 0; visibility: hidden; } div.relays label { cursor: pointer; text-indent: 3px; width: 22px; height: 50px; background: grey; display: inline-block; border-radius: 10px; position: relative; } div.relays label:after { content: ''; position: absolute; top: 30px; left: 1.5px; width: 18px; height: 18px; background: #fff; border-radius: 90px; transition: 0.3s; } div.relays input:checked + label { background: green; } input:checked + label:after { top: calc(100% - 30px); transform: translateY(-100%); } div.relays label:active:after { height: 30px; transform: translateY(-40%); } div#relaysPanel { display: flex; align-items: center; justify-content: center; } div.relays{ width:50px; } div#sensorsPanel { display: flex; align-items: center; justify-content: center; } div.sensors { width: 60px; } div.sensors input[type=checkbox]{ height: 0; width: 0; visibility: hidden; } div.sensors label { width: 22px; height: 22px; background: green; display: inline-block; border-radius: 10px; position: relative; } div.sensors input:checked + label { background: gray; } #termoContol table{ margin-right: auto; margin-left: auto; width: 460px; } #termoContol table td{ vertical-align: baseline; } .termoRangeButtons{ font-size: 18; font-style: bold; width: 25px; }