/
Toddler13
/
html_css
Обзор
Документация
Войти
/
Toddler13
/
html_css
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
291 строка
5 KB
Toddler13
add project
27 дек 2025, 13:13
27 дек 2025, 13:13
aa3df98
Код
Авторство
О чём код?
/* Базовый сброс */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); min-height: 100vh; padding: 20px; color: #333; } /* Основной контейнер */ .container { max-width: 1200px; margin: 0 auto; background-color: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); } /* Заголовки */ h1, h2 { color: #2c3e50; margin-bottom: 25px; text-align: center; position: relative; padding-bottom: 10px; } h1::after, h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100px; height: 3px; background: linear-gradient(90deg, #3498db, #2ecc71); } h1.color_red { color: #e74c3c; background: linear-gradient(45deg, #e74c3c, #c0392b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Параграфы */ p { color: #7f8c8d; font-size: 1.1em; line-height: 1.6; margin-bottom: 25px; text-align: center; } /* Списки игр - Flexbox */ .games-list { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin: 30px 0; } /* Карточки игр */ .game-card { display: flex; flex-direction: column; align-items: center; width: 280px; padding: 20px; background: linear-gradient(145deg, #ffffff, #f0f0f0); border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; border: 1px solid #e0e0e0; } .game-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2); border-color: #3498db; } /* Любимые игры - зеленый акцент */ ol .game-card { border-top: 4px solid #2ecc71; } /* Нелюбимые игры - оранжевый акцент */ ul .game-card { border-top: 4px solid #e67e22; } /* Ссылки в карточках */ .game-card a { color: #2980b9; text-decoration: none; font-weight: 600; font-size: 1.1em; margin-bottom: 15px; transition: color 0.3s ease; } .game-card a:hover { color: #1a5276; text-decoration: underline; } /* Изображения */ .game-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-top: 10px; border: 2px solid #ecf0f1; } /* Форма */ form { display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 40px auto; padding: 25px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); } /* Поля формы */ .form-group { display: flex; flex-direction: column; gap: 8px; } form label { color: white; font-weight: 600; font-size: 1em; } form input, form select { padding: 12px; border: none; border-radius: 6px; font-size: 16px; background: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; } form input:focus, form select:focus { outline: none; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3); background: white; } /* Особое поле */ form input#blue { border: 2px solid #3498db; background: #ebf5fb; } /* Группы радио и чекбоксов */ .options-group { background: rgba(255, 255, 255, 0.1); padding: 15px; border-radius: 8px; } .options-group label { display: flex; align-items: center; gap: 10px; color: white; margin-bottom: 8px; } /* Кнопки */ .buttons-container { display: flex; gap: 15px; justify-content: center; margin-top: 20px; } button { padding: 12px 30px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; flex: 1; text-transform: uppercase; letter-spacing: 0.5px; } button[type="submit"] { background: linear-gradient(45deg, #2ecc71, #27ae60); color: white; } button[type="reset"] { background: linear-gradient(45deg, #e74c3c, #c0392b); color: white; } button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } button:active { transform: translateY(0); } /* Таблица */ table { width: 100%; margin: 40px 0; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } caption { font-size: 1.3em; font-weight: bold; color: #2c3e50; padding: 15px; background: linear-gradient(45deg, #3498db, #2980b9); color: white; border-radius: 10px 10px 0 0; } thead { background: linear-gradient(45deg, #34495e, #2c3e50); color: white; } th, td { padding: 15px; text-align: left; border-bottom: 1px solid #ecf0f1; } tbody tr { transition: background-color 0.3s ease; } tbody tr:hover { background-color: #f8f9fa; } tbody tr:nth-child(even) { background-color: #f8f9fa; } tbody tr:nth-child(odd) { background-color: white; } /* Ссылки в таблице */ table a { color: #3498db; text-decoration: none; font-weight: 600; padding: 5px 10px; border-radius: 4px; background: #ebf5fb; transition: all 0.3s ease; } table a:hover { background: #3498db; color: white; }