/
MashkoA
/
web-nodejs
Обзор
Документация
Войти
/
MashkoA
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
public/lab9/task1/styles.css
365 строк
7 KB
umarovazizjohn
9 labs omg
23 апр 2026, 09:57
23 апр 2026, 09:57
6dff9fc
Код
Авторство
О чём код?
* { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; box-sizing: border-box; } body { background-color: #1a2e1a; /* тёмно-зелёный фон */ color: white; min-height: 100vh; padding: 2em 1em; display: flex; flex-direction: column; align-items: center; } h1 { text-align: center; margin-bottom: 1em; color: #e0f0e0; /* светло-зелёный */ font-size: clamp(1.5rem, 3vw, 2.2rem); text-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.3); } h2 { color: #e0f0e0; margin-bottom: 1em; text-align: center; font-size: 1.5rem; } h3 { color: #e0f0e0; margin-bottom: 1em; font-size: 1.2rem; text-align: center; } .main-container { display: flex; flex-direction: column; gap: 2em; max-width: 100rem; width: 100%; } .columns-container { display: flex; gap: 2em; align-items: flex-start; } .column { flex: 1; min-width: 0; } .column-wide { flex: 2; min-width: 0; } .content-container { background: #2e5a2e; /* основной зелёный */ border-radius: 1.25em; padding: 2em; box-shadow: 0 0.5em 1.5625em rgba(0, 0, 0, 0.3); border: 0.125em solid #6b9e6b; /* светлая зелёная граница */ text-align: center; height: 100%; } .content-container-wide { background: #2e5a2e; border-radius: 1.25em; padding: 2em; box-shadow: 0 0.5em 1.5625em rgba(0, 0, 0, 0.3); border: 0.125em solid #6b9e6b; text-align: center; width: 100%; } /* Стили для формы */ .product-form { text-align: left; margin: 0 auto; max-width: none; } .form-section { background-color: rgba(30, 70, 30, 0.85); /* полупрозрачный тёмно-зелёный */ border: 0.125em solid #6b9e6b; border-radius: 0.9375em; padding: 1.5em; margin-bottom: 1.5em; } .input-group { display: flex; flex-direction: column; gap: 1em; } .form-label { display: flex; flex-direction: column; gap: 0.5em; color: #e0f0e0; font-weight: 500; } .form-input { background-color: rgba(30, 70, 30, 0.85); border: 0.125em solid #6b9e6b; border-radius: 0.9375em; padding: 0.75em 1em; color: white; font-size: 1rem; transition: all 0.3s ease; box-shadow: 0 0.25em 0.625em rgba(60, 120, 60, 0.5); width: 100%; } .form-input:focus { outline: none; border-color: #b0d6b0; box-shadow: 0 0 0 0.1875em rgba(176, 214, 176, 0.3); } .form-actions { display: flex; justify-content: center; gap: 1em; margin-top: 2em; flex-wrap: wrap; } .btn { padding: 0.75em 1.5em; border: none; border-radius: 0.9375em; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; min-width: 140px; } .btn-submit { background: #3d8c40; /* насыщенный зелёный */ color: white; box-shadow: 0 0.25em 0.625em rgba(76, 175, 80, 0.4); } .btn-submit:hover { background: #4caf50; transform: translateY(-0.125em); box-shadow: 0 0.375em 0.75em rgba(76, 175, 80, 0.6); } .btn-delete { background: #6b8e23; /* оливково-зелёный для удаления */ color: white; box-shadow: 0 0.25em 0.625em rgba(107, 142, 35, 0.4); padding: 0.5em 1em; min-width: auto; font-size: 0.9rem; } .btn-delete:hover { background: #556b2f; transform: translateY(-0.125em); box-shadow: 0 0.375em 0.75em rgba(107, 142, 35, 0.6); } /* Стили для списка товаров */ .product-list { text-align: left; } .products-list { display: flex; flex-direction: column; gap: 1.5em; } .product-card { background-color: rgba(30, 70, 30, 0.85); border: 0.125em solid #6b9e6b; border-radius: 0.9375em; padding: 1.5em; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; box-shadow: 0 0.25em 0.625em rgba(0, 0, 0, 0.3); margin-bottom: 0.5em; } .product-card:hover { border-color: #b0d6b0; transform: translateY(-0.125em); box-shadow: 0 0.375em 0.75em rgba(0, 0, 0, 0.4); } .product-info { flex: 1; } .product-title { font-size: 1.2rem; font-weight: 600; color: #e0f0e0; margin-bottom: 0.5em; } .product-details { display: flex; gap: 1.5em; flex-wrap: wrap; } .product-price { font-weight: bold; color: #4caf50; font-size: 1.1rem; } .product-amount { color: #c0e0c0; /* мягкий светло-зелёный */ } .product-actions { display: flex; gap: 1em; } .loading { text-align: center; color: #c0e0c0; font-style: italic; padding: 2em; } .error { color: #d4a017; /* золотисто-жёлтый для ошибок */ background-color: rgba(212, 160, 23, 0.1); border: 0.0625em solid #d4a017; border-radius: 0.625em; padding: 1em; text-align: center; font-weight: 500; margin-bottom: 1em; } .success { color: #4caf50; background-color: rgba(76, 175, 80, 0.1); border: 0.0625em solid #4caf50; border-radius: 0.625em; padding: 1em; text-align: center; font-weight: 500; margin-bottom: 1em; } /* Стили для контейнера статистики */ .stats-container { max-width: 100rem; width: 100%; margin-bottom: 2em; } .stats-content { text-align: center; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2em; margin-top: 1em; } .stat-item { background-color: rgba(30, 70, 30, 0.85); border: 0.125em solid #6b9e6b; border-radius: 0.9375em; padding: 1.5em; text-align: center; transition: all 0.3s ease; } .stat-item:hover { border-color: #b0d6b0; transform: translateY(-0.125em); } .stat-value { font-size: 2rem; font-weight: bold; color: #e0f0e0; margin-bottom: 0.5em; } .stat-label { color: #c0e0c0; font-size: 1rem; } /* Стили для поиска */ .search-section { margin-bottom: 2em; } .search-container { display: flex; gap: 1em; align-items: center; justify-content: center; margin-top: 1em; flex-wrap: wrap; } .search-input { background-color: rgba(30, 70, 30, 0.85); border: 0.125em solid #6b9e6b; border-radius: 0.9375em; padding: 0.75em 1em; color: white; font-size: 1rem; transition: all 0.3s ease; box-shadow: 0 0.25em 0.625em rgba(60, 120, 60, 0.5); min-width: 300px; } .search-input:focus { outline: none; border-color: #b0d6b0; box-shadow: 0 0 0 0.1875em rgba(176, 214, 176, 0.3); } .btn-search { background: #2e8b57; /* морской зелёный */ color: white; box-shadow: 0 0.25em 0.625em rgba(46, 139, 87, 0.4); } .btn-search:hover { background: #3cb371; transform: translateY(-0.125em); box-shadow: 0 0.375em 0.75em rgba(46, 139, 87, 0.6); } .btn-clear { background: #b8860b; /* тёмно-золотой для сброса */ color: white; box-shadow: 0 0.25em 0.625em rgba(184, 134, 11, 0.4); } .btn-clear:hover { background: #d4a017; transform: translateY(-0.125em); box-shadow: 0 0.375em 0.75em rgba(184, 134, 11, 0.6); }