ytptube/ui/app/assets/css/tailwind.css
2026-06-19 18:39:35 +03:00

186 lines
4.1 KiB
CSS

@import 'tailwindcss';
@import '@nuxt/ui';
@layer base {
html,
body,
#__nuxt {
min-height: 100%;
}
body {
min-height: 100vh;
min-height: 100dvh;
}
html.bg-fanart {
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
}
html.simple-mode.bg-fanart,
html.simple-mode.bg-fanart body,
html.simple-mode.bg-fanart #__nuxt {
background-color: transparent !important;
}
html.simple-mode.bg-fanart body,
html.simple-mode.bg-fanart #__nuxt {
background-image: none !important;
}
}
@layer components {
.feature-meta-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 0.5rem;
}
@media (width >= 40rem) {
.feature-meta-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature-meta-grid > :last-child:nth-child(odd) {
grid-column: 1 / -1;
}
}
.shell-surface {
background:
radial-gradient(circle at top left, rgb(99 102 241 / 0.1), transparent 28%),
radial-gradient(circle at top right, rgb(245 158 11 / 0.08), transparent 22%),
linear-gradient(180deg, rgb(255 255 255 / 0.84), rgb(248 250 252 / 0.9));
backdrop-filter: blur(16px);
}
.dark .shell-surface {
background:
radial-gradient(circle at top left, rgb(99 102 241 / 0.12), transparent 26%),
radial-gradient(circle at top right, rgb(245 158 11 / 0.07), transparent 20%),
linear-gradient(180deg, rgb(9 12 18 / 0.84), rgb(17 24 39 / 0.9));
backdrop-filter: blur(16px);
}
.ytp-terminal {
display: block;
width: 100%;
box-sizing: border-box;
padding: 1rem;
background-color: var(--ui-bg-elevated);
color: var(--ui-text);
line-height: 1.7;
border-radius: 0.5rem;
border: 1px solid var(--ui-border);
}
.ytp-terminal > code {
display: block;
font-family: var(--font-mono, monospace);
}
.play-overlay {
position: relative;
display: block;
height: 100%;
width: 100%;
cursor: pointer;
overflow: hidden;
background: rgb(0 0 0 / 0.04);
}
.play-overlay img {
height: 100%;
width: 100%;
object-fit: cover;
transition: transform 0.22s ease;
}
.play-overlay::after {
content: '';
position: absolute;
inset: 0;
background: rgb(0 0 0 / 0.18);
transition: background-color 0.22s ease;
}
.play-overlay:hover::after {
background: rgb(0 0 0 / 0.34);
}
.play-overlay:hover img {
transform: scale(1.02);
}
.play-icon {
pointer-events: none;
position: absolute;
top: 50%;
left: 50%;
z-index: 1;
display: flex;
height: 3.5rem;
width: 3.5rem;
transform: translate(-50%, -50%);
align-items: center;
justify-content: center;
border: 1px solid rgb(255 255 255 / 0.62);
border-radius: 9999px;
background: rgb(0 0 0 / 0.24);
box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 0.16);
backdrop-filter: blur(2px);
transition:
transform 0.22s ease,
background-color 0.22s ease,
border-color 0.22s ease,
box-shadow 0.22s ease;
}
.play-overlay:hover .play-icon {
transform: translate(-50%, -50%) scale(1.05);
background: rgb(0 0 0 / 0.55);
border-color: rgb(255 255 255 / 0.82);
box-shadow: 0 0.75rem 1.75rem rgb(0 0 0 / 0.22);
}
.play-icon.embed-icon {
border-color: rgb(239 68 68 / 0.68);
background: rgb(127 29 29 / 0.3);
box-shadow:
0 0 0 1px rgb(239 68 68 / 0.2),
0 0.5rem 1.25rem rgb(0 0 0 / 0.16);
}
.play-overlay:hover .play-icon.embed-icon {
background: rgb(127 29 29 / 0.74);
border-color: rgb(239 68 68 / 0.95);
box-shadow:
0 0 0 1px rgb(239 68 68 / 0.3),
0 0.75rem 1.75rem rgb(0 0 0 / 0.22);
}
}
:root {
--ui-radius: 0.5rem;
--ui-container: 96rem;
--ui-header-height: 4.25rem;
}
html:not(.no-page-anim) .page-enter-active {
transition:
opacity 0.25s ease,
transform 0.25s ease;
}
html:not(.no-page-anim) .page-leave-active {
transition: opacity 0.1s ease;
}
html:not(.no-page-anim) .page-enter-from {
opacity: 0;
transform: translateY(-4px);
}
html:not(.no-page-anim) .page-leave-to {
opacity: 0;
}