/
ITagada
/
InfoScreen
Обзор
Документация
Войти
/
ITagada
/
InfoScreen
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
static/main/css/stylesheet.css
304 строки
5 KB
Polovnikov Maksim
Build: Добавлен обработчик и скрипт второй страницы
09 июл 2024, 13:25
09 июл 2024, 13:25
0cf7e05
Код
Авторство
О чём код?
html, body { margin: 0; padding: 0; height: 99vh; display: flex; } .main { display: flex; width: 100vw; justify-content: center; align-items: center; flex-grow: 1; font-family: Arial, Helvetica, sans-serif; } .container-1 { background: #adcad6; position: relative; flex: 1 1 20vw; flex-direction: column; height: 99vh; } .col-1-1-1 { height: 15%; flex: 1; display: flex; justify-content: center; align-items: center; } h2 { height: 100%; color: #15779e; text-align: center; font-size: clamp(0.2rem, 1vw + 0.5rem, 3rem);; } .col-1-1 { height: 25%; display: flex; flex-direction: column; justify-content: flex-start; text-align: center; align-items: center; } .transition { position: relative; width: 100%; height: 25%; max-height: 15vh; display: flex; justify-content: center; text-align: center; align-items: center; font-size: clamp(0.2rem, 0.5vw + 0.5rem, 2.5rem); } .ico { width: clamp(1.5rem, 0.8vw + 0.5rem, 2.5rem); height: clamp(1.5rem, 0.8vw + 0.5rem, 2.5rem); left: 3vw; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-align: center; font-size: clamp(1rem, 0.5vw + 0.5rem, 2rem); font-weight: bold; color: white; } .transition-text { width: 80%; display: flex; text-align: center; align-items: center; justify-content: center; } .container-2 { margin: 0px 5px 0px 5px; flex: 1 1 60vw; height: 99vh; flex-direction: column; } .col-2-1 { color: white; background: #9460aa; margin-bottom: 1.5vh; flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; align-items: center; font-size: clamp(0.2rem, 1vw + 1rem, 4rem); height: 39%; } .col-2-2 { color: #9460aa; flex: 1; display: flex; justify-content: center; text-align: center; align-items: center; height: 60%; font-size: 2vh; font-family: Arial, sans-serif; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .change-station-animation { animation: fadeIn 0.5s ease-in-out; } .container-3 { flex: 1 1 20vw; height: 99vh; margin: 0; flex-direction: column; } .col-3-1 { background: #adcad6; margin-bottom: 1.5vh; max-width: 100%; flex: 1; position: relative; justify-content: center; text-align: left; align-items: center; height: 39%; } .col-3-1-1 { flex: 1; position: absolute; top: 0px; height: 30%; color: #15779e; display: flex; justify-content: center; flex-direction: column; text-align: center; } .col-3-1-1-1 { flex: 1; height: 50%; display: flex; justify-content: left; text-align: left; align-items: center; font-size: clamp(0.2rem, 0.5vw + 0.5rem, 2rem); } .col-3-1-1-2 { flex: 1; height: 50%; display: flex; justify-content: left; text-align: left; font-weight: bold; font-size: clamp(0.2rem, 0.5vw + 1rem, 3rem); } .col-3-1-2 { flex: 1; height: 70%; width: 50%; position: absolute; bottom: 0px; left: 0px; display: flex; justify-content: center; flex-direction: column; text-align: start; align-items: center; } .time { flex: 0; justify-content: left; text-align: left; font-weight: bold; font-size: clamp(0.2rem, 1vw + 1rem, 4rem); } .date { flex: 0; justify-content: left; text-align: left; font-size: clamp(0.2rem, 0.7vw + 0.2rem, 2rem); } .col-3-1-3 { position: absolute; bottom: 0px; right: 0px; height: 70%; width: 50%; display: flex; font-size: 1vw; } .temperature { position: absolute; color: #15779e; height: 30%; top: 0px; width: 100%; display: flex; text-align: center; align-items: end; font-size: clamp(0.2rem, 0.5vw + 0.2rem, 1rem); } .inside { position: absolute; height: 70%; width: 48%; bottom: 0px; left: 0px; } .insidehead { display: flex; min-height: 20%; justify-content: center; text-align: center; font-size: clamp(0.2rem, 0.5vw + 0.2rem, 2rem); } .insidebody { display: flex; justify-content: center; align-items: start; font-size: clamp(0.2rem, 1vw + 1rem, 4rem); font-weight: bold; } .outside { position: absolute; height: 70%; width: 52%; bottom: 0px; right: 0px; } .outsidehead { display: flex; min-height: 20%; justify-content: center; text-align: center; font-size: clamp(0.2rem, 0.5vw + 0.2rem, 2rem); } .outsidebody { display: flex; justify-content: center; align-items: start; font-size: clamp(0.2rem, 1vw + 1rem, 4rem); font-weight: bold; } .col-3-2 { background: #adcad6; flex: 1; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; height: 60%; overflow: hidden; } .video { max-width: 100%; max-height: 100%; min-height: 100%; object-fit: contain; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .player-animation { animation: fadeIn 0.5s ease-in-out; }