/
vikiii
/
bakery
Обзор
Документация
Войти
/
vikiii
/
bakery
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
flex-layout
styles.css
676 строк
11 KB
Ваше Имя
Обновление 9 пр
18 май 2026, 13:17
18 май 2026, 13:17
8632e5b
Код
Авторство
О чём код?
html{ font-size: 16px; } body { font-family: 'Roboto', Arial, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; } header, footer { background-color: #f8f1e5; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; } 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: 0.3125rem; } ul { list-style-type: disc; padding-left: 1.875rem; margin: 0.9375rem 0; } li { margin-bottom: 0.625rem; line-height: 1.5; } address { font-style: normal; background-color: #fef9ef; padding: 0.625rem; border-radius: 0.625rem; } .advantages-list { list-style: none; } .advantages-list li::before { content: "✓"; color: #d35400; margin-right: 0.625rem; } .menu-list .nested-list li:hover { transform: translateX(10px); transition: transform 0.3s ease; color: #d35400; cursor: pointer; } .header { display: flex; align-items: center; justify-content: center; gap: 0.9375rem; } .logo { width: 5rem; height: auto; } .gallery-section { background: linear-gradient(135deg, #fef9ef 0%, #f8f1e5 100%); border-radius: 1.25rem; padding: 1.25rem 0.9375rem; margin: 1.25rem 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: 1.25rem; } .gallery-section h2::before { content: "🥖"; margin-right: 0.625rem; font-size: 1.3rem; } .gallery-section h2::after { content: "🥐"; margin-left: 0.625rem; font-size: 1.3rem; } .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; justify-items: center; } .gallery-item { background: white; border-radius: 0.75rem; padding: 0.625rem; 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: 0.5rem; 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: 0.5rem; } .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; } #navbar, #navbar ul { margin: 0; padding: 0; list-style-type: none; } #navbar { display: flex; justify-content: center; background: #f8f1e5; border-radius: 10px; padding: 0; } #navbar > li { position: relative; margin: 0; } #navbar a { display: block; padding: 12px 20px; color: #5a3921; text-decoration: none; font-weight: bold; transition: all 0.3s ease; } #navbar a:hover { background-color: #e8d5b7; color: #8b4513; } .submenu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #ddd; border-radius: 8px; min-width: 200px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); z-index: 100; opacity: 0; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; } .submenu li { display: block; } .submenu a { padding: 10px 15px; color: #5a3921; border-bottom: 1px solid #f0f0f0; } .submenu li:last-child a { border-bottom: none; } .has-submenu:hover .submenu { display: block; opacity: 1; transform: translateY(0); pointer-events: auto; } .has-submenu > a::after { content: " ▼"; font-size: 0.6em; transition: transform 0.3s ease; } .has-submenu:hover > a::after { transform: rotate(180deg); } .submenu::before { content: ""; position: absolute; top: -8px; left: 20px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #ddd; } .submenu::after { content: ""; position: absolute; top: -6px; left: 20px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #fff; } @media (max-width: 768px) { #navbar { flex-direction: column; align-items: center; } .submenu { position: static; box-shadow: none; margin-left: 20px; } .has-submenu:hover .submenu { display: block; } } .sticky-nav{ position: sticky; top: 0; background: #f8f1e5; padding: 0.75rem 2rem; text-align: center; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .sticky-nav .logo{ display: inline-block; font-size: 1.5rem; font-weight: bold; color: #5a3921; margin-right: 2rem; } .sticky-nav .nav-links{ display: inline-block; list-style: none; margin: 0; padding: 0; } .sticky-nav .nav-links li { display: inline-block; margin: 0 0.75rem; } .sticky-nav .nav-links a { color: #5a3921; text-decoration: none; font-weight: bold; padding: 0.5rem; transition: color 0.3s ease; } .sticky-nav .nav-links a:hover { color: #d35400; } #order { max-width: 600px; margin: 0 auto; padding: 20px; } #orderForm { background: #fef9ef; padding: 25px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #5a3921; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Roboto', sans-serif; font-size: 16px; box-sizing: border-box; transition: all 0.3s ease; } .form-group textarea { resize: vertical; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #d35400; box-shadow: 0 0 5px rgba(211, 84, 0, 0.3); } .required { color: #e74c3c; } .radio-group { display: flex; flex-direction: column; gap: 10px; } .radio-label { display: flex; align-items: center; gap: 10px; font-weight: normal; cursor: pointer; } .radio-label input { width: auto; } .checkbox-group { margin-top: 15px; } .checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: normal; cursor: pointer; } .checkbox-label input { width: auto; } .form-buttons { display: flex; gap: 15px; margin-top: 25px; } .submit-btn { background: #d35400; color: white; border: none; padding: 12px 25px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; } .submit-btn:hover { background: #e67e22; transform: scale(1.02); } .reset-btn { background: #95a5a6; color: white; border: none; padding: 12px 25px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; } .reset-btn:hover { background: #7f8c8d; } @media (max-width: 768px) { #order { padding: 15px; } .form-buttons { flex-direction: column; } .submit-btn, .reset-btn { width: 100%; } } .products-grid { text-align: center; font-size: 0; padding: 20px; } .product-card { display: inline-block; vertical-align: top; width: 300px; margin: 10px; font-size: 16px; } .product-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.15); transform: translateY(-4px); } .product-image { width: 100%; height: 200px; object-fit: cover; display: block; } .product-card:hover .product-image { transform: scale(1.05); } .product-content { padding: 12px; box-sizing: border-box; } .product-title { font-size: 20px; margin: 0 0 8px 0; color: #5a3921; } .product-description { font-size: 14px; color: #666; margin-bottom: 15px; line-height: 1.4; } .product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; } .price { font-size: 20px; font-weight: bold; color: #d35400; } .buy-btn { background: #d35400; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.3s ease; } .buy-btn:hover { transform: scale(1.05); } .buy-btn:active { transform: scale(0.95); } @media (max-width: 768px) { .product-card { width: calc(100% - 20px); margin: 10px auto; } .product-image { height: 220px; object-fit: cover; width: 100%; } .products-grid { text-align: center; font-size: 0; flex-direction: column; align-items: center; } } @media (max-width: 480px) { .product-footer { flex-direction: column; gap: 10px; } .buy-btn { width: 100%; } } .scroll-to-top{ position: fixed; bottom: 1.5rem; right: 1.5rem; background: rgba(0,0,0,0.5 5); backdrop-filter: blur(8px); color: white; border: none; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.8rem; cursor: pointer; display: inline-block; text-align: center; line-height: 3rem; transition: all 0.2s ease; z-index: 99; box-shadow: 0 2px 8px rgba(0,0,0,0.2); } .scroll-to-top:hover { background: rgba(0,0,0,0.8); transform: scale(1.05); } .scroll-to-top:active { transform: scale(0.95); }