/
dikfer
/
web-app
Обзор
Документация
Войти
/
dikfer
/
web-app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
styling.css
360 строк
6 KB
dikfer
update styling.css
07 мар 2025, 22:14
07 мар 2025, 22:14
e43a021
Код
Авторство
О чём код?
:root { --primary-hue: 250; --primary-sat: 89%; --primary-light: 59%; --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light)); --secondary: #ff6b6b; --background: #f8f9fa; --text: #2d3436; --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Poppins", sans-serif; background: var(--background); color: var(--text); min-height: 100vh; overflow-x: hidden; } .container { max-width: 800px; margin: 0 auto; padding: 2rem; } .screen { display: none; opacity: 0; transform: translateY(20px); transition: var(--transition); } .screen.active { display: block; opacity: 1; transform: translateY(0); } /* Welcome Screen */ .welcome-screen { text-align: center; padding: 4rem 1rem; } .hero-orb { width: 140px; height: 140px; background: url('media/fon.jpg') center/cover; border-radius: 50%; margin: 0 auto 2rem; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 15px 30px rgba(108, 99, 255, 0.2)); } .dynamic-gradient { background: linear-gradient(45deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; } /* Question Screen */ .test-screen { position: relative; } .progress-container { position: relative; width: 80px; height: 80px; margin: 0 auto; display: flex; justify-content: center; margin: 2rem auto; } .progress-ring { position: relative; width: 80px; height: 80px; } .progress-circle { fill: none; stroke: var(--primary); stroke-width: 6; stroke-dasharray: 251; stroke-dashoffset: 251; transform: rotate(-90deg); transform-origin: 50% 50%; transition: none; stroke-dashoffset: 226.1946710584651; } .progress-percent { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: 700; font-size: 1.2rem; color: var(--primary); } .question-card { background: #ffffff; padding: 2.5rem; border-radius: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); margin-bottom: 2rem; transform: translateY(0); transition: transform 0.3s ease; } .question-card:hover { transform: translateY(-5px); } .question-text { font-size: 1.4rem; margin-bottom: 2rem; line-height: 1.5; color: var(--text); text-align: center; } .options-grid { display: grid; gap: 1.2rem; } .option-btn { padding: 1.2rem 1.5rem; border: none; border-radius: 14px; background: #ffffff; color: var(--text); font-family: inherit; cursor: pointer; transition: var(--transition); border: 2px solid #e0e0e0; display: flex; align-items: center; gap: 1rem; font-size: 1rem; } .option-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); border-color: var(--primary); background: var(--primary); color: white; } .option-btn .emoji { font-size: 1.4rem; } /* Results Screen */ .results-screen { text-align: center; } .chart-container { background: white; padding: 2rem; border-radius: 24px; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); } .personality-badge { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 2rem; border-radius: 24px; margin: 2rem 0; position: relative; overflow: hidden; } .personality-badge::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient( 45deg, transparent, rgba(255, 255, 255, 0.1), transparent ); transform: rotate(45deg); animation: shine 3s infinite; } .type-title { font-size: 2rem; margin-bottom: 1rem; position: relative; z-index: 1; } .type-description { font-size: 1.1rem; line-height: 1.6; opacity: 0.9; position: relative; z-index: 1; } .result-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; } .neo-btn { padding: 1rem 2rem; border: none; border-radius: 50px; background: white; color: var(--primary); font-weight: 600; cursor: pointer; transition: var(--transition); box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1); display: flex; align-items: center; gap: 0.5rem; margin: auto; } .social-share-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 20px; border-radius: 12px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); z-index: 1000; display: none; } .share-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .close-share { background: none; border: none; font-size: 24px; cursor: pointer; padding: 0 8px; } .social-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; } .social-btn { border: none; background: none; padding: 12px; border-radius: 8px; cursor: pointer; transition: transform 0.2s; } .social-btn:hover { transform: scale(1.1); } .social-btn svg { width: 40px; height: 40px; } /* Platform-specific colors */ .facebook { color: #1877f2; } .twitter { color: #1da1f2; } .linkedin { color: #0a66c2; } .whatsapp { color: #25d366; } .pinterest { color: #e60023; } .reddit { color: #ff4500; } .neo-btn:hover { transform: translateY(-2px); box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1); } @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } } @keyframes shine { 0% { left: -50%; } 100% { left: 150%; } } @media (max-width: 768px) { .container { padding: 1rem; } .question-card { padding: 1.5rem; } .question-text { font-size: 1.2rem; } .option-btn { padding: 1rem; font-size: 0.95rem; } }