/
leraaa
/
ttt
Обзор
Документация
Войти
/
leraaa
/
ttt
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
styles.css
328 строк
5 KB
nepa
Практические работы ПР №2-6
12 май 2026, 09:39
12 май 2026, 09:39
7229ec4
Код
Авторство
О чём код?
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; } nav ul { list-style: none; padding: 0; display: flex; flex-direction: row; } 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; } }