/
Cooolprogrammers
/
web-nodejs-labs
Обзор
Документация
Войти
/
Cooolprogrammers
/
web-nodejs-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
public/lab8/task1/style.css
678 строк
13 KB
darkvoid6@mail.ru
ЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫ
18 дек 2025, 07:59
18 дек 2025, 07:59
f2c4f06
Код
Авторство
О чём код?
:root { --primary-color: #10b981; /* Emerald 500 */ --primary-dark: #047857; /* Emerald 700 */ --secondary-color: #22d3ee; /* Cyan 400 */ --accent-color: #8b5cf6; /* Violet 500 */ --bg-body: #0f172a; /* Slate 900 */ --bg-surface: #1e293b; /* Slate 800 */ --bg-surface-light: #334155; /* Slate 700 */ --text-main: #f1f5f9; /* Slate 100 */ --text-muted: #94a3b8; /* Slate 400 */ --text-green: #10b981; /* Emerald 500 */ --border-color: #475569; /* Slate 600 */ --border-glow: rgba(16, 185, 129, 0.3); --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5); --shadow-glow: 0 0 15px rgba(16, 185, 129, 0.2); --radius-md: 8px; --radius-lg: 12px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; background-image: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 20%), radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.03) 0%, transparent 20%); } .container { max-width: 1280px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-body); } /* * HEADER */ .header { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: var(--text-green); padding: 40px 30px; border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-md), var(--shadow-glow); position: relative; z-index: 10; overflow: hidden; } .header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary-color), transparent); animation: scanline 4s linear infinite; } .header h1 { font-size: 2.2em; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.025em; text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); background: linear-gradient(90deg, var(--text-green), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .header p { opacity: 0.9; font-size: 1.1em; color: var(--text-muted); font-weight: 300; max-width: 600px; } .main-content { flex: 1; padding: 40px 30px; width: 100%; max-width: 1200px; margin: 0 auto; } /* * FORM LAYOUT */ .form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; } .form-column { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); position: relative; overflow: hidden; transition: all 0.3s ease; } .form-column:hover { border-color: var(--primary-color); box-shadow: var(--shadow-md), var(--shadow-glow); transform: translateY(-2px); } /* Visual distinction via Top Border Accents */ .personal-column { border-top: 4px solid var(--primary-color); } .additional-column { border-top: 4px solid var(--secondary-color); } .form-section { margin-bottom: 35px; } .form-section:last-child { margin-bottom: 0; } .form-section h2 { font-size: 1.25em; font-weight: 700; margin-bottom: 25px; color: var(--text-green); padding-bottom: 15px; border-bottom: 1px solid var(--border-color); position: relative; } .form-section h2::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 50px; height: 2px; background: var(--primary-color); } /* * INPUTS & LABELS */ .input-group.vertical { display: flex; flex-direction: column; gap: 20px; } .input-field { margin-bottom: 20px; } .input-field:last-child { margin-bottom: 0; } label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-green); font-size: 0.95em; letter-spacing: 0.5px; } .section-label { font-size: 1.05em !important; margin-bottom: 15px !important; color: var(--primary-color) !important; text-transform: uppercase; letter-spacing: 1px; } input[type="text"], select { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 1em; font-family: inherit; background: var(--bg-surface-light); color: var(--text-main); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } input[type="text"]:hover, select:hover { border-color: var(--primary-color); background: #2d3748; } input[type="text"]:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); background: #2d3748; transform: translateY(-1px); } /* * RADIO BUTTONS */ .radio-options { display: flex; gap: 25px; flex-wrap: wrap; } .radio-option { display: flex; align-items: center; cursor: pointer; font-weight: 500; color: var(--text-main); user-select: none; padding: 5px 0; } .radio-option input { display: none; } .radio-custom { width: 20px; height: 20px; border: 2px solid var(--border-color); border-radius: 50%; margin-right: 10px; position: relative; transition: all 0.2s ease; background: var(--bg-surface-light); } .radio-option:hover .radio-custom { border-color: var(--primary-color); box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); } /* Checked State Radio */ .radio-option input:checked + .radio-custom { border-color: var(--primary-color); background: var(--primary-color); box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); } .radio-option input:checked + .radio-custom::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; background: white; border-radius: 50%; animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); } /* * CHECKBOXES */ .checkbox-option { display: flex; align-items: center; cursor: pointer; font-weight: 500; color: var(--text-main); user-select: none; margin-bottom: 10px; padding: 5px 0; } .checkbox-option:last-child { margin-bottom: 0; } .checkbox-option.large { font-size: 1em; } .checkbox-option input { display: none; } .checkmark { width: 22px; height: 22px; border: 2px solid var(--border-color); border-radius: 6px; margin-right: 12px; position: relative; transition: all 0.3s ease; background: var(--bg-surface-light); } .checkbox-option:hover .checkmark { border-color: var(--primary-color); box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); } /* Checked State Checkbox */ .checkbox-option input:checked + .checkmark { background: var(--primary-color); border-color: var(--primary-color); box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); } .checkbox-option input:checked + .checkmark::after { content: ''; position: absolute; top: 45%; left: 50%; width: 5px; height: 10px; border: solid var(--bg-surface); border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); } /* * PROJECT SUB-SECTION */ .project-section { background: rgba(30, 41, 59, 0.5); padding: 20px; border-radius: var(--radius-md); border: 1px dashed var(--border-color); transition: all 0.3s ease; } .project-section:hover { border-color: var(--primary-color); background: rgba(16, 185, 129, 0.05); } /* * BUTTONS & ACTIONS */ .form-actions { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--border-color); } .btn { padding: 14px 24px; border: none; border-radius: var(--radius-md); font-size: 1em; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: inherit; letter-spacing: 0.5px; text-transform: uppercase; position: relative; overflow: hidden; } .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); transition: left 0.5s; } .btn:hover::before { left: 100%; } .btn-save { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; width: 100%; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); } .btn-save:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6); } .action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .btn-action { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border-color); } .btn-action:hover { background: var(--bg-surface-light); color: var(--primary-color); border-color: var(--primary-color); transform: translateY(-2px); } /* * DATA TABLE SECTION */ .data-section { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); transition: all 0.3s ease; } .data-section:hover { box-shadow: var(--shadow-md), var(--shadow-glow); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); } .section-header h2 { font-size: 1.4em; font-weight: 700; color: var(--text-green); background: linear-gradient(90deg, var(--text-green), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .counter { background: rgba(16, 185, 129, 0.1); color: var(--text-green); padding: 6px 12px; border-radius: 999px; font-size: 0.85em; font-weight: 700; border: 1px solid rgba(16, 185, 129, 0.3); } .table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-surface-light); } .data-table { width: 100%; border-collapse: collapse; font-size: 0.95em; } .data-table th { background: rgba(30, 41, 59, 0.8); color: var(--text-green); padding: 16px 20px; text-align: left; font-weight: 600; text-transform: uppercase; font-size: 0.75em; letter-spacing: 1px; border-bottom: 2px solid var(--primary-color); position: relative; } .data-table th::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--secondary-color); animation: expandWidth 2s ease-in-out infinite alternate; } .data-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-color); color: var(--text-main); transition: all 0.2s; } .data-table tbody tr { transition: all 0.2s; } .data-table tbody tr:hover td { background: rgba(16, 185, 129, 0.05); color: var(--text-green); transform: translateX(2px); } .data-table tbody tr:last-child td { border-bottom: none; } /* * FOOTER */ .footer { background: var(--bg-surface); color: var(--text-muted); padding: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; border-top: 1px solid var(--border-color); margin-top: auto; position: relative; } .footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-color), transparent); } .back-link { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: all 0.3s ease; position: relative; padding-bottom: 2px; } .back-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s ease; } .back-link:hover { color: var(--secondary-color); } .back-link:hover::after { width: 100%; } .hidden { display: none; } /* Animation Keyframes */ @keyframes popIn { 0% { transform: translate(-50%, -50%) scale(0); } 80% { transform: translate(-50%, -50%) scale(1.2); } 100% { transform: translate(-50%, -50%) scale(1); } } @keyframes scanline { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } @keyframes expandWidth { 0% { width: 0%; } 100% { width: 100%; } } /* * RESPONSIVENESS */ @media (max-width: 968px) { .form-layout { grid-template-columns: 1fr; gap: 30px; } .main-content { padding: 20px; } .radio-options { flex-direction: column; gap: 15px; align-items: flex-start; } .action-buttons { grid-template-columns: 1fr; } } @media (max-width: 768px) { .header { padding: 30px 20px; } .header h1 { font-size: 1.8em; } .footer { flex-direction: column; gap: 15px; text-align: center; } .section-header { flex-direction: column; align-items: flex-start; gap: 10px; } .data-table th, .data-table td { padding: 12px 15px; } } /* Terminal-like scrollbar */ ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: var(--bg-surface); } ::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }