/
XPLAY
/
StylishAnimations
Обзор
Документация
Войти
/
XPLAY
/
StylishAnimations
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
assets/css/style.css
207 строк
4 KB
XPLAY
First commit
29 янв 2026, 16:32
29 янв 2026, 16:32
c2ea94c
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { width: 100%; background-image: linear-gradient(to bottom right,#333, #2b2b2b, #181818, #0e0d0d, #000); color: #fff; font-family: 'ShareTechMono-Regular'; font-size: 1rem; } header { display: inline-block; overflow: hidden; position: sticky; top: 1rem; left: 50%; padding-top: 0.5rem; padding-bottom: 0.5rem; padding-left: 1rem; padding-right: 1rem; margin-top: 1rem; margin-bottom: 1rem; border-radius: 1rem; backdrop-filter: blur(0.5rem); box-shadow: 0 0.25rem 0.75rem #00000066; z-index: 100; } .header-title { display: flex; flex-direction: row; gap: 0.75rem; justify-content: center; color: #da0000; } .header-title img { width: 1.75rem; height: 1.75rem; margin-top: auto; margin-bottom: auto; filter: drop-shadow(0 0.25rem 0.75rem #ff000066); } .header-title h1 { text-shadow: 0 0.25rem 0.75rem #ff000066; } main { max-width: 65rem; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: repeat(3, 20rem); justify-content: space-between; z-index: 50; } .card { width: 20rem; margin-bottom: 1.5rem; background-image: linear-gradient(to bottom left, #1b1b1b, #161616); border-radius: 1rem; box-shadow: 0 0.25rem 0.75rem #00000066; } .card-presentation { position: relative; min-height: 3rem; display: flex; justify-content: center; align-content: center; background-color: #ccc; border-radius: 1rem; overflow: hidden; } .card-description { margin-top: auto; margin-bottom: auto; padding-top: 1rem; padding-bottom: 1rem; padding-left: 1.25rem; padding-right: 1.25rem; text-align: center; font-size: 1.25rem; } button { margin: 2rem; padding: 1rem; font-size: 1rem; border-radius: 1rem; background-color: #fff; cursor: pointer; } .disappearing-button.fade-out { animation: fadeOut 1s ease forwards; pointer-events: none; } .rotatable-button { background-color: #00000000; border: 0; padding: 0.5rem; } .rotatable-button:hover img { transform: rotate(-35deg); } .rotatable-button img { width: 2.5rem; height: 2.5rem; transition: transform 0.3s ease; } .recolorable-button { transition: background-color 0.3s ease; } .squeezable-button { transition: transform 0.15s ease; } .squeezable-button:active { transform: scale(0.955); } .pulsating-button { animation: pulse 3s ease forwards infinite; } .rotating-button { background-color: #00000000; border: 0; padding: 0.5rem; } .rotating-button img { width: 2.5rem; height: 2.5rem; animation: rotate 2s ease forwards infinite; } .no-select { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: #00000000; -ms-user-select: none; } @media (max-width: 62rem) { body { font-size: 1.5rem; } header { top: 1.5rem; margin-top: 1.5rem; margin-bottom: 1.5rem; } .header-title img { width: 2.25rem; height: 2.25rem; } main { max-width: 47rem; grid-template-columns: repeat(2, 20rem); } button { font-size: 1.1rem; } .card { margin-bottom: 2rem; } .card-description { font-size: 1.5rem; } .rotatable-button { padding: 0.25rem; } .rotatable-button img { width: 2.75rem; height: 2.75rem; } .rotating-button { padding: 0.25rem; } .rotating-button img { width: 2.75rem; height: 2.75rem; } } @keyframes fadeOut { to { opacity: 0; transform: scale(0.85); } } @keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @font-face { font-family: 'ShareTechMono-Regular'; src: url(../font/ShareTechMono-Regular.otf) format('opentype'); }