/
vikiii
/
bakery
Обзор
Документация
Войти
/
vikiii
/
bakery
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
without-images
styles.css
253 строки
4 KB
Ваше Имя
ПЗ6: Таблицы и стили (без изображений)
11 май 2026, 08:58
11 май 2026, 08:58
d09afbe
Код
Авторство
О чём код?
body { font-family: 'Roboto', Arial, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; } header, footer { background-color: #f8f1e5; padding: 20px; text-align: center; } h1 { font-size: 2.5rem; color: #5a3921; text-shadow: 0px 0px 20px rgba(160, 138, 14, 0.8); } h1, h2 { font-family: 'Playfair Display', serif; } h2 { font-size: 1.8rem; border-bottom: 2px solid #8b4513; padding-bottom: 5px; } ul { list-style-type: disc; padding-left: 30px; margin: 15px 0; } li { margin-bottom: 10px; line-height: 1.5; } nav ul { display: flex; list-style: none; justify-content: center; gap: 20px; padding: 0; margin: 0; } nav a { text-decoration: none; color: #5a3921; font-weight: bold; padding: 5px 10px; } nav a:hover { color: #8b4513; text-decoration: underline; } nav a[href*="eda.yandex"] { background-color: #ffcc00; color: #5a3921; padding: 5px 10px; border-radius: 20px; transition: all 0.3s ease; } nav a[href*="eda.yandex"]:hover { background-color: #ffaa00; transform: scale(1.05); } address { font-style: normal; background-color: #fef9ef; padding: 10px; border-radius: 10px; } .advantages-list { list-style: none; } .advantages-list li::before { content: "✓"; color: #d35400; margin-right: 10px; } .menu-list .nested-list li:hover { transform: translateX(10px); transition: transform 0.3s ease; color: #d35400; cursor: pointer; } .header { display: flex; align-items: center; gap: 15px; } .logo { width: 80px; height: auto; } .gallery-section { background: linear-gradient(135deg, #fef9ef 0%, #f8f1e5 100%); border-radius: 20px; padding: 20px 15px; margin: 20px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.08); } .gallery-section h2 { text-align: center; font-size: 1.6rem; color: #5a3921; margin-bottom: 20px; } .gallery-section h2::before { content: "🥖"; margin-right: 10px; font-size: 1.3rem; } .gallery-section h2::after { content: "🥐"; margin-left: 10px; font-size: 1.3rem; } .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; justify-items: center; } .gallery-item { background: white; border-radius: 12px; padding: 10px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.2s ease; width: 100%; max-width: 150px; } .gallery-item:hover { transform: translateY(-3px); box-shadow: 0 5px 12px rgba(0,0,0,0.12); } .gallery-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; } .gallery-item img:hover { transform: scale(1.02); } .gallery-item p { margin-top: 8px; font-weight: bold; color: #5a3921; font-size: 0.7rem; } .table-wrapper { overflow-x: auto; margin: 1.5rem 0; box-shadow: 0 0 0 1px #eee; border-radius: 8px; } .price-table { width: 100%; border-collapse: collapse; font-family: 'Roboto', sans-serif; min-width: 600px; } .price-table caption { text-align: left; font-size: 1.1rem; font-weight: 700; padding: 0.5rem 1rem; color: #5a3921; } .price-table th, .price-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #e0e0e0; } .price-table th { background-color: #461e02; color: white; position: sticky; top: 0; } .price-table tbody tr:nth-child(even) { background-color: #f9f9f9; } .price-table tbody tr:hover { background-color: #fff4e5; } .menu-table { width: 100%; border-collapse: collapse; font-family: 'Roboto', sans-serif; min-width: 500px; } .menu-table caption { text-align: center; font-size: 1rem; padding: 0.5rem; background-color: #f8f1e5; caption-side: top; } .menu-table th { background-color: #441f04; color: white; padding: 0.8rem; text-align: center; } .menu-table td { padding: 0.8rem; border: 1px solid #e0e0e0; } .menu-table tbody tr:hover { background-color: #fff4e5; }