/
leraaa
/
koloboki
Обзор
Документация
Войти
/
leraaa
/
koloboki
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
styles.css
1 204 строки
21 KB
leraaa
практики 2-11
18 май 2026, 12:56
Верифицирован
18 май 2026, 12:56
b7a8d64
Код
Авторство
О чём код?
body { font-family: 'Roboto', Arial, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; } header, footer { background-color: #f8f1e5; padding: 20px; text-align: center; } main { flex: 1; padding: 20px; } nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; } nav li { margin: 0 10px; } nav a { color: #5a3921; font-weight: bold; } nav a:hover { background-color: #5a3921; color: #fff; } .shadowtext { text-shadow: 10px 10px 20px black, 10 10 1em red; color: white; font-size: 2em; } a { color: #8b4513; text-decoration: none; } a:hover { text-decoration: underline; } h1 { font-size: 2.5rem; color: #5a3921; text-shadow: 1px 1px 2px black, 0 0 1em rgb(0, 102, 255); color: rgb(0, 0, 0); font-size: 2em; } h2 { font-size: 1.8rem; border-bottom: 2px solid #8b4513; padding-bottom: 5px; } ul { padding-left: 20px; } li { margin-bottom: 5px; } h1, h2 { font-family: 'Playfair Display', serif; } html { scroll-behavior: smooth; } body { background-color: #f7e9d1; } p { line-height: 1.8; text-indent: 25px; letter-spacing: 0.5px; word-spacing: 1px; } img { border: 2px solid #8b4513; border-radius: 10px; } .highlight { text-transform: uppercase; font-weight: bold; } @font-face { font-family: 'RobotoLocal'; src: url('fonts/Roboto-Regular.ttf') format('truetype'); } @font-face { font-family: 'OpenSansLocal'; src: url('fonts/OpenSans-Regular.ttf') format('truetype'); } body { font-family: 'OpenSansLocal', 'Roboto', Arial, sans-serif; } h1, h2 { font-family: 'RobotoLocal', 'Playfair Display', serif; } .principles-list { list-style-type: square; } .assortment-list { list-style-type: upper-roman; } .bread-list ul { list-style: none; padding-left: 25px; } .bread-list ul li::before { content: "🍞 "; margin-right: 8px; } .pastry-list ul { list-style: none; padding-left: 25px; } .pastry-list ul li::before { content: "🥐 "; margin-right: 8px; } .contacts-list { background-color: #f8f1e5; padding: 20px; border-radius: 15px; border: 1px solid #8b4513; } .contacts-list dt { font-weight: bold; color: #5a3921; margin-top: 10px; } .contacts-list dd { margin-left: 20px; margin-bottom: 10px; padding: 5px 10px; background-color: #fff; border-radius: 8px; } .contacts-list dt:first-of-type { margin-top: 0; } .advantages-list { list-style: none; padding-left: 0; } .advantages-list li::before { content: "✓"; color: #d35400; margin-right: 10px; } .advantages-list li:hover { transform: translateX(10px); transition: transform 0.3s ease; color: #d35400; } #gallery { padding: 20px; background-color: #fef9f0; text-align: center; } .gallery-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 20px; } .gallery-item { width: 250px; text-align: center; background-color: #fff; padding: 15px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.3s ease; } .gallery-item:hover { transform: scale(1.05); } .gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; } .gallery-item p { margin-top: 10px; font-weight: bold; color: #5a3921; } #menu { padding: 20px; background-color: #fef9f0; } .table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .menu-table { width: 100%; border-collapse: collapse; font-family: 'Roboto', sans-serif; min-width: 600px; background-color: #fff; } .menu-table caption { text-align: center; font-size: 1rem; padding: 12px; color: #5a3921; font-style: italic; background-color: #fef9f0; caption-side: top; } .menu-table th { padding: 14px; text-align: center; background-color: #5a3921; color: white; font-weight: bold; border: 1px solid #6b4a2e; } .menu-table td { padding: 12px; text-align: left; border: 1px solid #e0c8a8; vertical-align: top; } .category-cell { background-color: #8b5a2b !important; color: white; font-size: 1.2rem; font-weight: bold; text-align: center; vertical-align: middle; width: 130px; } .menu-table tbody tr:nth-child(even) { background-color: #fef8f0; } .menu-table tbody tr:nth-child(odd) { background-color: #ffffff; } .menu-table tbody tr:hover { background-color: #ffe4c4 !important; transition: background-color 0.3s ease; cursor: pointer; } .menu-table tfoot td { background-color: #f8f1e5; text-align: center; padding: 12px; font-weight: bold; color: #5a3921; border: 1px solid #e0c8a8; } @media (max-width: 768px) { .category-cell { font-size: 1rem; width: 100px; } .menu-table th, .menu-table td { padding: 8px; font-size: 14px; } } nav ul ul, nav ul ul li { margin: 0; padding: 0; list-style: none; } nav > ul { display: flex; justify-content: center; background-color: #5a3921; border-radius: 10px; padding: 0; margin: 0; list-style: none; } nav > ul > li { position: relative; margin: 0; } nav > ul > li > a { display: inline-block; padding: 12px 20px; color: white; text-decoration: none; font-weight: bold; } nav > ul > li > a:hover { background-color: #8b4513; border-radius: 5px; } nav ul ul { display: none; position: absolute; top: 100%; left: 0; background-color: rgb(255, 255, 255); border: 1px solid #6e5252; border-radius: 8px; min-width: 200px; padding: 5px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 999; } nav ul ul li { display: block; margin: 0; } nav ul ul li a { display: block; padding: 10px 15px; color: #5a3921; text-decoration: none; font-size: 14px; } nav ul ul li a:hover { background-color: #68443b8a; } nav > ul > li:hover > ul { display: block; } nav ul ul { opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; transform: translateY(-10px); } nav > ul > li:hover > ul { opacity: 1; transform: translateY(0); } nav ul ul::before { content: ""; position: absolute; top: -10px; left: 20px; border: 5px solid transparent; border-bottom-color: white; } .order-section { max-width: 800px; margin: 0 auto; padding: 20px; } .order-section h2 { text-align: center; color: #5a3921; } .order-section > p { text-align: center; color: #666; margin-bottom: 30px; } .order-form { background-color: #fef9f0; padding: 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } fieldset { border: 1px solid #8b4513; border-radius: 10px; padding: 20px; margin-bottom: 20px; } legend { font-weight: bold; color: #5a3921; padding: 0 10px; font-size: 1.1rem; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #333; } .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; transition: all 0.3s ease; } .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); } .form-group input:valid, .form-group select:valid { border-color: #2ecc71; } .form-group input:invalid:not(:placeholder-shown) { border-color: #e74c3c; } .radio-group { display: flex; flex-direction: column; gap: 10px; } .radio-group label, .checkbox-group label { display: flex; align-items: center; gap: 10px; font-weight: normal; cursor: pointer; } .radio-group input, .checkbox-group input { width: auto; cursor: pointer; } .form-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 25px; } .submit-btn { background-color: #d35400; color: white; border: none; padding: 12px 25px; border-radius: 30px; cursor: pointer; font-size: 1rem; font-weight: bold; transition: background 0.3s ease; } .submit-btn:hover { background-color: #a04000; } .reset-btn { background-color: #95a5a6; color: white; border: none; padding: 12px 25px; border-radius: 30px; cursor: pointer; font-size: 1rem; font-weight: bold; transition: background 0.3s ease; } .reset-btn:hover { background-color: #7f8c8d; } .required-note { font-size: 0.8rem; color: #999; margin-top: 15px; text-align: center; } @media (max-width: 600px) { .order-form { padding: 15px; } .form-buttons { flex-direction: column; } .submit-btn, .reset-btn { width: 100%; } } input:focus { outline: none; border-color: #d35400; box-shadow: 0 0 5px rgba(211, 84, 0, 0.5); } /* Сетка карточек */ .products-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; padding: 1.5rem; } .product-card { width: 300px; background: #fff; border: 1px solid #e0c8a8; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; box-sizing: border-box; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } .badge { position: absolute; top: 12px; right: 12px; background: #e74c3c; color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: bold; z-index: 10; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .product-image { width: 100%; height: 200px; object-fit: contain; background: #fef9f0; transition: transform 0.3s ease; } .product-card:hover .product-image { transform: scale(1.02); } .product-content { padding: 1rem; } .product-title { font-size: 1.2rem; font-weight: bold; color: #5a3921; margin-bottom: 0.5rem; } .product-description { font-size: 0.875rem; color: #666; line-height: 1.4; margin-bottom: 1rem; } .product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; } .price { font-size: 1.25rem; font-weight: bold; color: #d35400; } .buy-btn { background: #d35400; color: white; border: none; padding: 0.5rem 1rem; border-radius: 25px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; } .buy-btn:hover { background: #a04000; transform: scale(1.05); } .buy-btn:active { transform: scale(0.95); } nav { position: sticky; top: 0; z-index: 100; background-color: #5a3921; border-radius: 0; } nav ul { margin: 0; } .scroll-top { position: fixed; bottom: 20px; right: 20px; background: rgba(90, 57, 33, 0.7); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.5rem; transition: all 0.3s ease; z-index: 1000; } .scroll-top:hover { background: rgba(90, 57, 33, 1); transform: scale(1.1); } @media (max-width: 768px) { .product-card { width: 100%; margin: 0.5rem 0; } .product-image { height: 220px; object-fit: cover; } .products-grid { gap: 1rem; padding: 1rem; } .product-title { font-size: 1rem; } .price { font-size: 1.1rem; } .buy-btn { padding: 0.4rem 0.8rem; font-size: 0.875rem; } } @media (max-width: 480px) { .product-footer { flex-direction: column; gap: 0.5rem; } .buy-btn { width: 100%; } } .products-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; padding: 1.5rem; } .product-card { display: flex; flex-direction: column; width: 100%; max-width: 300px; background: #fff; border: 1px solid #e0c8a8; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } .product-figure { margin: 0; padding: 0; position: relative; overflow: hidden; } .product-image { width: 100%; height: 200px; object-fit: contain; background: #fef9f0; transition: transform 0.3s ease; } .product-card:hover .product-image { transform: scale(1.02); } .product-figure figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: white; padding: 5px; text-align: center; font-size: 0.8rem; transform: translateY(100%); transition: transform 0.3s ease; } .product-card:hover .product-figure figcaption { transform: translateY(0); } .product-content { padding: 1rem; display: flex; flex-direction: column; flex: 1; } .product-title { font-size: 1.2rem; font-weight: bold; color: #5a3921; margin-bottom: 0.5rem; } .product-description { font-size: 0.875rem; color: #666; line-height: 1.4; margin-bottom: 1rem; flex: 1; } .product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; } .price { font-size: 1.25rem; font-weight: bold; color: #d35400; } .buy-btn { background: #d35400; color: white; border: none; padding: 0.5rem 1rem; border-radius: 25px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; } .buy-btn:hover { background: #a04000; transform: scale(1.05); } @media (min-width: 1024px) { .products-grid { gap: 2rem; } .product-card { max-width: 280px; } } @media (max-width: 768px) { .products-grid { gap: 1rem; padding: 1rem; } .product-card { max-width: calc(50% - 0.5rem); } } @media (max-width: 480px) { .product-card { max-width: 100%; } .product-footer { flex-direction: column; gap: 0.5rem; } .buy-btn { width: 100%; } } #about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; } #about > * { background-color: #fff; padding: 1rem; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); } #about h2 { grid-column: 1 / -1; text-align: center; } .products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; padding: 1.5rem; } .product-card { display: grid; grid-template-rows: auto auto 1fr auto; background: #fff; border: 1px solid #e0c8a8; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } .badge { position: absolute; top: 12px; right: 12px; background: #e74c3c; color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: bold; z-index: 10; } .product-figure { margin: 0; padding: 0; position: relative; overflow: hidden; } .product-image { width: 100%; height: 200px; object-fit: contain; background: #fef9f0; transition: transform 0.3s ease; } .product-card:hover .product-image { transform: scale(1.02); } .product-figure figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: white; padding: 5px; text-align: center; font-size: 0.8rem; transform: translateY(100%); transition: transform 0.3s ease; } .product-card:hover .product-figure figcaption { transform: translateY(0); } .product-content { padding: 1rem; display: grid; gap: 0.5rem; } .product-title { font-size: 1.2rem; font-weight: bold; color: #5a3921; margin: 0; } .product-description { font-size: 0.875rem; color: #666; line-height: 1.4; } .product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.5rem; } .price { font-size: 1.25rem; font-weight: bold; color: #d35400; } .buy-btn { background: #d35400; color: white; border: none; padding: 0.5rem 1rem; border-radius: 25px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; } .buy-btn:hover { background: #a04000; transform: scale(1.05); } .table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .price-table, .menu-table { width: 100%; border-collapse: collapse; font-family: 'Roboto', sans-serif; } .price-table th, .price-table td, .menu-table th, .menu-table td { padding: 12px; text-align: left; border: 1px solid #e0c8a8; } .price-table th, .menu-table th { background-color: #5a3921; color: white; } .gallery-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding: 1rem; } .gallery-item { text-align: center; background-color: #fff; padding: 1rem; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.3s ease; } .gallery-item:hover { transform: scale(1.03); } .gallery-item img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; } .gallery-item p { margin-top: 10px; font-weight: bold; color: #5a3921; } @media (max-width: 768px) { .products-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; padding: 1rem; } .product-footer { flex-direction: column; gap: 0.5rem; } .buy-btn { width: 100%; } } @media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } .price-table th, .price-table td, .menu-table th, .menu-table td { padding: 8px; font-size: 14px; } .order-form { padding: 15px; } .form-buttons { flex-direction: column; } .submit-btn, .reset-btn { width: 100%; } } body { font-family: 'Roboto', Arial, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; min-height: 100vh; display: grid; grid-template-areas: "header" "main" "footer"; grid-template-rows: auto 1fr auto; } header { grid-area: header; background-color: #f8f1e5; padding: 20px; text-align: center; } main { grid-area: main; padding: 20px; } footer { grid-area: footer; background-color: #f8f1e5; padding: 20px; text-align: center; }