/
cfb_labs
/
cfblabs
Обзор
Документация
Войти
/
cfb_labs
/
cfblabs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
main
css/style.css
582 строки
10 KB
melbirino
Доработка
07 апр 2026, 20:19
07 апр 2026, 20:19
708d042
Код
Авторство
О чём код?
@font-face { font-family: 'PS2P-Regular'; src: url(../font/PressStart2P-Regular.ttf) format('truetype'); font-weight: normal; font-style: normal; font-display: swap; } * { padding: 0px; margin: 0px; border: none; } *, *::before, *::after { box-sizing: border-box; } a, a:link, a:visited { text-decoration: none; } a:hover { text-decoration: none; } aside, nav, footer, header, section, main { display: block; } h1, h2, h3, h4, h5, h6, p { font-size: inherit; font-weight: inherit; } ul, ul li { list-style: none; } img { vertical-align: top; } img, svg { max-width: 100%; height: auto; } address { font-style: normal; } input, textarea, button, select { font-family: inherit; font-size: inherit; color: inherit; background-color: transparent; } input::-ms-clear { display: none; } button, input[type="submit"] { display: inline-block; box-shadow: none; background-color: transparent; background: none; cursor: pointer; } input:focus, input:active, button:focus, button:active { outline: none; } button::-moz-focus-inner { padding: 0; border: 0; } label { cursor: pointer; } legend { display: block; } input[type='file'] { max-width: 100%; } body { background-color: black; color: white; font-family: 'PS2P-Regular', monospace; line-height: 1.4; overflow-x: hidden; } .page-wrapper { height: 100vh; display: flex; flex-direction: column; background-color: black; } .container { max-width: 1500px; margin: 0 auto; width: 100%; padding: 0 10px; position: relative; } .header { padding: 10px 0; flex-shrink: 0; position: relative; z-index: 1001; background-color: black; } .header .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; } .header-left { display: flex; justify-content: flex-start; } .logotipe-glav { display: flex; align-items: center; } .logo-link { display: flex; align-items: center; text-decoration: none; color: inherit; transition: opacity 0.2s; gap: 8px; } .logo-link:hover { opacity: 0.9; } .logo { width: 50px; height: 50px; object-fit: contain; } .title { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; font-size: 15px; color: white; min-width: 60px; } .header-center { display: inline-flex; justify-content: center; align-items: center; gap: 10px; background-color: rgba(255, 255, 255, 0.05); padding: 6px 12px; border-radius: 50px; border: 1px solid white; width: fit-content; margin: 0 auto; min-width: 0; } .crypto-price-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: white; white-space: nowrap; text-align: center; transition: color 0.2s; min-width: 0; } #tonPrice { transition: opacity 0.2s ease; will-change: opacity; overflow: hidden; text-overflow: ellipsis; } .crypto-icon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; border-radius: 50%; border: 1px solid white; } .language-switcher { display: flex; gap: 3px; align-items: center; cursor: pointer; flex-shrink: 0; } .lang-btn { font-size: 11px; font-weight: 300; cursor: pointer; transition: all 0.3s; padding: 3px 8px; border-radius: 8px; background: transparent; border: none; color: white; flex-shrink: 0; } .lang-btn:hover { background-color: rgba(255, 255, 255, 0.15); } .lang-btn.active { font-weight: 700; background-color: rgba(255, 255, 255, 0.25); } .lang-separator { font-size: 11px; color: rgba(255, 255, 255, 0.5); flex-shrink: 0; } .header-right { display: flex; align-items: center; justify-content: flex-end; gap: 15px; } .menu-burger { width: 50px; height: 50px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; z-index: 1002; } .menu-burger-line { width: 20px; height: 2px; background-color: white; border-radius: 45px; transition: all 0.3s; } .line { height: 1.5px; background-color: rgb(255, 255, 255); width: 100%; margin: 0; flex-shrink: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; right: 0; background-color: black; padding: 20px 0; border-bottom: 1.5px solid white; z-index: 1000; display: none; opacity: 0; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease; } .dropdown-menu.active { display: block; animation: fadeIn 0.3s forwards; } @keyframes fadeIn { to { opacity: 1; transform: translateY(0); } } .dropdown-menu ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; } .dropdown-menu a { color: white; text-decoration: none; font-size: 14px; padding: 10px 20px; transition: background-color 0.3s, color 0.3s; border-radius: 8px; display: block; text-align: center; min-width: 120px; } .dropdown-menu a:hover { background-color: rgba(255, 255, 255, 0.15); color: #fff; } .main-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; width: 100%; height: 100%; } .content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; } .content img { width: 100%; height: 100%; object-fit: contain; display: block; } .footer { flex-shrink: 0; padding: 0; } .footer .container { padding: 0 10px; } .footer_1 { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; padding: 10px 0; } .icon { width: 25px; height: 25px; border-radius: 50%; border: 1px solid white; background-color: white; transition: transform 0.2s; display: flex; align-items: center; justify-content: center; } .icon:hover { transform: scale(1.15); } .icon img { width: 16px; height: 16px; object-fit: contain; } .footer_2 { display: flex; justify-content: center; align-items: center; padding: 10px 0; } .copyright { font-size: 7px; color: white; text-align: center; } @media screen and (max-width: 768px) { .header .container { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; gap: 8px; align-items: center; padding: 0 5px; } .header-left { grid-column: 1; justify-content: flex-start; } .header-center { grid-column: 2; justify-content: center; padding: 4px 8px; margin: 0 auto; gap: 6px; min-width: 0; max-width: 50vw; } .header-right { grid-column: 3; justify-content: flex-end; } .logo { width: 32px; height: 32px; } .title { font-size: 10px; min-width: 40px; line-height: 1; } .crypto-price-item { font-size: 9px; gap: 3px; } .crypto-icon { width: 14px; height: 14px; } .lang-btn { font-size: 9px; padding: 2px 6px; } .lang-separator { font-size: 9px; } .menu-burger { width: 36px; height: 36px; } .menu-burger-line { width: 16px; height: 2px; } .main-content { padding: 0; } .content img { width: 100%; height: auto; max-height: 100%; object-fit: contain; } .dropdown-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: black; z-index: 999; padding: 80px 0 0 0; display: none; opacity: 0; transform: translateY(-20px); transition: opacity 0.3s ease, transform 0.3s ease; overflow-y: auto; } .dropdown-menu.active { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; animation: mobileMenuFadeIn 0.3s forwards; } @keyframes mobileMenuFadeIn { to { opacity: 1; transform: translateY(0); } } .dropdown-menu ul { flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 25px; padding: 0; } .dropdown-menu li { width: 100%; display: flex; justify-content: center; } .dropdown-menu a { font-size: 18px; padding: 15px 20px; width: auto; min-width: 200px; text-align: center; border: 1px solid transparent; } .dropdown-menu a:hover { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); } }