dzen.nstarikov.ru/dzen-assistant/admin/src/index.css
2026-06-27 14:07:10 +03:00

286 lines
6.1 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 99%;
--foreground: 224 13% 12%;
--card: 0 0% 100%;
--card-foreground: 224 13% 12%;
--primary: 11 86% 55%;
--primary-foreground: 0 0% 100%;
--secondary: 210 16% 93%;
--secondary-foreground: 224 13% 12%;
--muted: 210 16% 94%;
--muted-foreground: 220 8% 43%;
--accent: 210 16% 92%;
--accent-foreground: 224 13% 12%;
--destructive: 0 84% 60%;
--destructive-foreground: 0 0% 100%;
--border: 210 14% 88%;
--input: 210 14% 88%;
--ring: 11 86% 55%;
--radius: 0.5rem;
}
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
font-feature-settings: "rlig" 1, "calt" 1;
}
}
@layer components {
.modal-overlay {
animation: modal-overlay-in 140ms ease-out both;
}
.modal-panel {
animation: modal-panel-in 170ms cubic-bezier(0.16, 1, 0.3, 1) both;
transform-origin: center;
}
.article-preview {
@apply text-zinc-900;
}
.article-preview > :where(p, h2, h3, ul, ol) {
@apply mx-auto max-w-3xl;
}
.article-preview p {
@apply mt-4 text-lg leading-8;
}
.article-preview h2 {
@apply mx-auto mt-10 max-w-3xl text-3xl font-bold leading-tight tracking-normal;
}
.article-preview h3 {
@apply mx-auto mt-8 max-w-3xl text-2xl font-semibold leading-tight tracking-normal;
}
.article-preview figure {
@apply my-8 w-full;
}
.article-preview img {
@apply aspect-video w-full rounded-md border bg-muted object-cover;
}
.article-preview figcaption {
@apply mx-auto mt-2 max-w-3xl text-sm leading-6 text-muted-foreground;
}
.article-preview .premium-cta {
@apply mt-10 rounded-lg border border-amber-700 bg-zinc-950 p-6 text-zinc-50;
}
.article-preview .premium-cover {
@apply m-0 mb-8 w-full;
}
.article-preview .premium-cover + h2 {
@apply mt-8;
}
.article-preview .premium-cover figcaption {
@apply mb-6;
}
.article-preview .premium-cta h2 {
@apply mt-0 text-zinc-50;
}
.article-preview .premium-cta p {
@apply text-zinc-200;
}
.article-preview .premium-cta a {
@apply font-bold text-amber-300 underline underline-offset-4;
}
.article-preview .video-embed {
@apply mt-10 border-t pt-8;
}
.article-preview .video-embed h2 {
@apply mx-auto max-w-3xl text-3xl font-bold leading-tight tracking-normal;
}
.article-preview .video-embed__frame {
@apply mt-4 aspect-video w-full overflow-hidden rounded-md border bg-zinc-950;
}
.article-preview iframe {
@apply block h-full w-full;
}
.article-preview strong {
@apply font-semibold;
}
.article-preview blockquote {
@apply mx-auto mt-6 max-w-3xl border-l-4 border-zinc-300 pl-5 text-lg italic leading-8 text-zinc-700;
}
.article-preview ul,
.article-preview ol {
@apply mt-4 pl-6 text-lg leading-8;
}
.article-preview li {
@apply mt-2;
}
.article-editor {
@apply min-h-[420px] cursor-text rounded-md outline-none transition-colors;
}
.article-editor:hover {
@apply bg-amber-50/25;
}
.article-editor:focus {
@apply bg-amber-50/40 outline-none ring-1 ring-amber-200;
}
.article-editor :where(p, h2, h3, figcaption, li) {
@apply outline-none;
}
.article-editor :where(p, h2, h3, figcaption, li):focus {
@apply rounded-sm bg-amber-50/60;
}
.article-editor figure {
@apply cursor-text;
}
.article-editor img {
@apply cursor-pointer select-auto transition-shadow;
}
.article-editor img:hover {
@apply shadow-[0_0_0_3px_rgba(245,158,11,0.25)];
}
.article-editorjs {
@apply min-h-[520px] rounded-md px-0 py-2;
}
.article-editorjs .codex-editor {
@apply text-zinc-900;
}
.article-editorjs .codex-editor__redactor {
padding-bottom: 120px !important;
}
.article-editorjs .ce-block__content,
.article-editorjs .ce-toolbar__content {
max-width: 768px;
}
.article-editorjs .ce-paragraph {
@apply text-lg leading-8;
}
.article-editorjs .ce-header {
@apply font-bold leading-tight tracking-normal text-zinc-950;
}
.article-editorjs h2.ce-header {
@apply text-3xl;
}
.article-editorjs h3.ce-header {
@apply text-2xl;
}
.article-editorjs .cdx-quote {
@apply border-l-4 border-zinc-300 pl-5;
}
.article-editorjs .cdx-quote__text {
@apply min-h-0 text-lg italic leading-8 text-zinc-700;
}
.article-editorjs .image-tool__image {
@apply relative overflow-hidden rounded-md border bg-muted;
}
.article-editorjs .image-tool__image-picture {
@apply aspect-video w-full object-cover;
}
.article-editorjs .ce-block.is-random-frame-loading .image-tool__image::after {
content: "";
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
background:
linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 0.42) 46%, rgb(255 255 255 / 0.72) 50%, rgb(255 255 255 / 0.42) 54%, transparent 100%),
rgb(250 250 250 / 0.34);
background-size: 220% 100%;
animation: random-frame-wave 1.15s ease-in-out infinite;
}
.article-editorjs .ce-block.is-random-frame-loading .image-tool__image::before {
content: "Подбираю кадр";
position: absolute;
left: 50%;
top: 50%;
z-index: 3;
transform: translate(-50%, -50%);
border-radius: 999px;
border: 1px solid rgb(255 255 255 / 0.68);
background: rgb(24 24 27 / 0.72);
padding: 0.45rem 0.8rem;
color: white;
font-size: 0.8125rem;
font-weight: 600;
line-height: 1;
letter-spacing: 0;
box-shadow: 0 12px 30px rgb(0 0 0 / 0.22);
backdrop-filter: blur(8px);
}
.article-editorjs .image-tool__caption {
@apply mx-auto mt-2 max-w-3xl border-0 px-0 text-sm leading-6 text-muted-foreground shadow-none;
}
}
@keyframes modal-overlay-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes modal-panel-in {
from {
opacity: 0;
transform: translateY(8px) scale(0.985);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes random-frame-wave {
from {
background-position: 140% 0;
}
to {
background-position: -80% 0;
}
}