/
grafula
/
javascript
Обзор
Документация
Войти
/
grafula
/
javascript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
weather-app/styles.css
170 строк
3 KB
Dar
Initial commit
19 дек 2025, 04:20
19 дек 2025, 04:20
a579753
Код
Авторство
О чём код?
body { margin: 0; } @font-face { font-family: Inter; font-weight: 400; src: url(./fonts/Inter_18pt-Regular.ttf); } @font-face { font-family: Inter; font-weight: bold; src: url(./fonts/Inter_18pt-Bold.ttf); } html { font-family: Inter; font-weight: 400; } .container { background: #6608FF; height: 100vh; width: 100vw; display: flex; align-items: center; justify-content: center; } .weather-app { display: flex; flex-direction: column; background: #FFFFFF; height: 530px; width: 380px; padding: 20px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); } .location-bar { height: 44px; display: flex; } .location-input { flex-grow: 1; height: 100%; border: 1px solid rgba(0, 0, 0, 0.4); border-radius: 10px; padding: 0 15px; font-size: 16px; color: #333; outline: none; } .location-input:focus { border-color: #6608FF; box-shadow: 0 0 0 2px rgba(102, 8, 255, 0.2); } .location-input::placeholder { color: rgba(0, 0, 0, 0.5); } .location-button { height: 100%; width: 44px; border: 1px solid rgba(0, 0, 0, 0.4); border-radius: 10px; margin-left: 20px; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #333; transition: all 0.2s ease; } .location-button:hover { background: #f5f5f5; border-color: #6608FF; color: #6608FF; } .location-button:active { transform: scale(0.95); } .current-weather { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 20px; } .current-weather-icon { width: 220px; height: 220px; } .current-weather-temperature { font-size: 45px; font-weight: 400; color: #333; margin: 0; } .current-weather-status { font-size: 25px; color: #666; margin: 0; margin-top: -10px; } .forecast { display: flex; gap: 10px; overflow: auto; margin-top: 20px; padding-bottom: 5px; } .forecast::-webkit-scrollbar { height: 6px; } .forecast::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); border-radius: 3px; } .forecast::-webkit-scrollbar-thumb { background: grey; border-radius: 3px; } .forecast-element { display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 8px; padding: 10px; min-width: 55px; flex-shrink: 0; } .forecast-time { font-size: 14px; color: #333; margin: 0; margin-bottom: 5px; font-weight: 500; } .forecast-icon { width: 40px; height: 40px; margin: 5px 0; } .forecast-temperature { font-size: 18px; color: #333; margin: 0; font-weight: 500; }