718 lines
20 KiB
CSS
718 lines
20 KiB
CSS
/* Mobile-first: do NOT trap scroll inside the note container */
|
||
:host ::ng-deep .note-content-area {
|
||
overflow: visible;
|
||
-webkit-overflow-scrolling: touch;
|
||
touch-action: pan-y;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
:host ::ng-deep .note-content-area {
|
||
height: 100%;
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
scrollbar-gutter: stable both-edges;
|
||
}
|
||
}
|
||
|
||
/* Theme-aware subtle scrollbar for note area */
|
||
:host ::ng-deep .note-content-area {
|
||
scrollbar-width: thin; /* Firefox */
|
||
scrollbar-color: color-mix(in oklab, var(--scrollbar-thumb, rgba(148,163,184,0.45)) 80%, transparent) transparent; /* Firefox */
|
||
}
|
||
|
||
:host ::ng-deep .note-content-area::-webkit-scrollbar-thumb {
|
||
background: color-mix(in oklab, var(--scrollbar-thumb, rgba(148,163,184,0.45)) 80%, transparent);
|
||
border-radius: 9999px;
|
||
}
|
||
|
||
:host ::ng-deep .note-content-area::-webkit-scrollbar-thumb:hover {
|
||
background: color-mix(in oklab, var(--scrollbar-thumb, rgba(148,163,184,0.45)) 95%, transparent);
|
||
}
|
||
|
||
:host ::ng-deep .md-tag-group {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.4rem;
|
||
}
|
||
|
||
:host ::ng-deep .md-tag-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-width: 2.1rem;
|
||
padding: 0.25rem 0.55rem;
|
||
border-radius: 9999px;
|
||
border: none;
|
||
font-size: 0.72rem;
|
||
font-weight: 600;
|
||
letter-spacing: 0.03em;
|
||
color: #0f172a;
|
||
background: rgba(15, 118, 110, 0.12);
|
||
cursor: pointer;
|
||
transition: background 0.15s ease, transform 0.15s ease;
|
||
}
|
||
|
||
:host ::ng-deep .md-tag-badge:hover,
|
||
:host ::ng-deep .md-tag-badge:focus-visible {
|
||
transform: translateY(-1px);
|
||
background: rgba(15, 118, 110, 0.18);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .md-tag-badge {
|
||
background: rgba(45, 212, 191, 0.22);
|
||
color: #e2e8f0;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .md-tag-badge:hover,
|
||
:host-context(.dark) ::ng-deep .md-tag-badge:focus-visible {
|
||
background: rgba(45, 212, 191, 0.32);
|
||
}
|
||
|
||
:host ::ng-deep .md-tag-badge[data-origin="frontmatter"] {
|
||
opacity: 0.82;
|
||
}
|
||
|
||
:host ::ng-deep .md-tag-badge::before {
|
||
content: '🔖';
|
||
margin-right: 0.15rem;
|
||
opacity: 0.75;
|
||
}
|
||
|
||
:host ::ng-deep .md-tag-badge span {
|
||
display: inline;
|
||
}
|
||
|
||
:host ::ng-deep .md-tag-color-0 { background: rgba(190, 242, 100, 0.35); color: #3f6212; }
|
||
:host ::ng-deep .md-tag-color-1 { background: rgba(129, 230, 217, 0.35); color: #0f766e; }
|
||
:host ::ng-deep .md-tag-color-2 { background: rgba(196, 181, 253, 0.35); color: #6b21a8; }
|
||
:host ::ng-deep .md-tag-color-3 { background: rgba(248, 196, 113, 0.35); color: #b45309; }
|
||
:host ::ng-deep .md-tag-color-4 { background: rgba(248, 113, 113, 0.35); color: #b91c1c; }
|
||
:host ::ng-deep .md-tag-color-5 { background: rgba(129, 140, 248, 0.35); color: #4338ca; }
|
||
:host ::ng-deep .md-tag-color-6 { background: rgba(233, 213, 255, 0.35); color: #7e22ce; }
|
||
:host ::ng-deep .md-tag-color-7 { background: rgba(209, 250, 229, 0.35); color: #047857; }
|
||
:host ::ng-deep .md-tag-color-8 { background: rgba(165, 180, 252, 0.35); color: #1d4ed8; }
|
||
:host ::ng-deep .md-tag-color-9 { background: rgba(253, 224, 71, 0.35); color: #92400e; }
|
||
:host ::ng-deep .md-tag-color-10 { background: rgba(244, 114, 182, 0.35); color: #be185d; }
|
||
:host ::ng-deep .md-tag-color-11 { background: rgba(148, 163, 184, 0.35); color: #1f2937; }
|
||
|
||
:host-context(.dark) ::ng-deep .md-tag-color-0 { background: rgba(132, 204, 22, 0.35); color: #d9f99d; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-1 { background: rgba(45, 212, 191, 0.3); color: #d1fae5; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-2 { background: rgba(168, 85, 247, 0.28); color: #ede9fe; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-3 { background: rgba(245, 158, 11, 0.28); color: #fde68a; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-4 { background: rgba(248, 113, 113, 0.3); color: #fee2e2; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-5 { background: rgba(99, 102, 241, 0.3); color: #e0e7ff; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-6 { background: rgba(217, 70, 239, 0.28); color: #f5d0fe; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-7 { background: rgba(34, 197, 94, 0.3); color: #bbf7d0; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-8 { background: rgba(59, 130, 246, 0.28); color: #bfdbfe; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-9 { background: rgba(250, 204, 21, 0.28); color: #fef08a; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-10 { background: rgba(236, 72, 153, 0.3); color: #fbcfe8; }
|
||
:host-context(.dark) ::ng-deep .md-tag-color-11 { background: rgba(107, 114, 128, 0.3); color: #cbd5f5; }
|
||
|
||
:host ::ng-deep .metadata-panel__item .md-tag-badge {
|
||
cursor: default;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__actions {
|
||
display: flex;
|
||
justify-content: center;
|
||
margin-top: 0.6rem;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 0.35rem;
|
||
padding: 0.4rem 0.95rem;
|
||
border-radius: 9999px;
|
||
border: 1px solid rgba(15, 118, 110, 0.35);
|
||
background: rgba(15, 118, 110, 0.08);
|
||
color: #0f766e;
|
||
font-size: 0.78rem;
|
||
font-weight: 600;
|
||
letter-spacing: 0.03em;
|
||
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__toggle:hover,
|
||
:host ::ng-deep .metadata-panel__toggle:focus-visible {
|
||
background: rgba(15, 118, 110, 0.18);
|
||
border-color: rgba(15, 118, 110, 0.55);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel__toggle {
|
||
border-color: rgba(45, 212, 191, 0.35);
|
||
background: rgba(45, 212, 191, 0.18);
|
||
color: #5eead4;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel__toggle:hover,
|
||
:host-context(.dark) ::ng-deep .metadata-panel__toggle:focus-visible {
|
||
background: rgba(45, 212, 191, 0.28);
|
||
border-color: rgba(45, 212, 191, 0.55);
|
||
}
|
||
:host {
|
||
display: block;
|
||
min-height: 100vh;
|
||
background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 45%),
|
||
radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 40%);
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
:host {
|
||
height: 100vh;
|
||
overflow: hidden;
|
||
}
|
||
}
|
||
|
||
/* Global scrollbar rules moved to styles.css for true global scope */
|
||
|
||
.resize-handle {
|
||
width: 8px;
|
||
min-width: 8px;
|
||
background: linear-gradient(
|
||
to bottom,
|
||
transparent,
|
||
color-mix(in srgb, var(--brand) 60%, transparent),
|
||
transparent
|
||
);
|
||
cursor: col-resize;
|
||
transition: background 0.2s ease, width 0.2s ease, opacity 0.2s ease;
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
z-index: 30;
|
||
}
|
||
|
||
.resize-handle::after {
|
||
content: '';
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 50%;
|
||
width: 1px;
|
||
transform: translateX(-50%);
|
||
background: color-mix(in srgb, var(--brand-700) 75%, transparent);
|
||
opacity: 0;
|
||
transition: opacity 0.2s ease;
|
||
}
|
||
|
||
.resize-handle:hover,
|
||
.resize-handle:focus-visible,
|
||
.resize-handle:active {
|
||
width: 10px;
|
||
min-width: 10px;
|
||
background: linear-gradient(
|
||
to bottom,
|
||
transparent,
|
||
color-mix(in srgb, var(--brand-700) 70%, transparent),
|
||
transparent
|
||
);
|
||
}
|
||
|
||
.resize-handle:hover::after,
|
||
.resize-handle:focus-visible::after,
|
||
.resize-handle:active::after {
|
||
opacity: 1;
|
||
}
|
||
|
||
.resize-handle.pointer-events-none {
|
||
cursor: default;
|
||
background: transparent;
|
||
}
|
||
|
||
:host ::ng-deep .callout {
|
||
margin: 1.5rem 0;
|
||
padding: 1.25rem 1.5rem;
|
||
border-radius: 0.75rem;
|
||
border: 1px solid rgba(148, 163, 184, 0.4);
|
||
border-left-width: 0.35rem;
|
||
background: rgba(148, 163, 184, 0.1);
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
|
||
color: #1f2937;
|
||
transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .callout {
|
||
background: rgba(30, 41, 59, 0.45);
|
||
border-color: rgba(148, 163, 184, 0.35);
|
||
box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.1);
|
||
color: #e2e8f0;
|
||
}
|
||
|
||
:host ::ng-deep .callout__title {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
font-size: 0.85rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.08em;
|
||
text-transform: uppercase;
|
||
margin-bottom: 0.75rem;
|
||
}
|
||
|
||
:host ::ng-deep .callout__title::before {
|
||
content: "";
|
||
display: inline-flex;
|
||
width: 1.4rem;
|
||
height: 1.4rem;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 1rem;
|
||
border-radius: 9999px;
|
||
}
|
||
|
||
:host ::ng-deep .callout__body p {
|
||
margin: 0 0 0.75rem;
|
||
line-height: 1.6;
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
:host ::ng-deep .callout__body p:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
:host ::ng-deep .callout-note,
|
||
:host ::ng-deep .callout[data-callout-type="note"],
|
||
:host ::ng-deep .callout[data-callout-type="info"] {
|
||
background: rgba(59, 130, 246, 0.12);
|
||
border-color: rgba(59, 130, 246, 0.45);
|
||
color: #1e3a8a;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .callout-note,
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="note"],
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="info"] {
|
||
background: rgba(37, 99, 235, 0.28);
|
||
border-color: rgba(147, 197, 253, 0.55);
|
||
color: #dbeafe;
|
||
}
|
||
|
||
:host ::ng-deep .callout-note .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="note"] .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="info"] .callout__title::before {
|
||
content: "ℹ️";
|
||
}
|
||
|
||
:host ::ng-deep .callout-tip,
|
||
:host ::ng-deep .callout[data-callout-type="tip"],
|
||
:host ::ng-deep .callout[data-callout-type="todo"] {
|
||
background: rgba(16, 185, 129, 0.14);
|
||
border-color: rgba(16, 185, 129, 0.45);
|
||
color: #065f46;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .callout-tip,
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="tip"],
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="todo"] {
|
||
background: rgba(6, 95, 70, 0.32);
|
||
border-color: rgba(110, 231, 183, 0.55);
|
||
color: #bbf7d0;
|
||
}
|
||
|
||
:host ::ng-deep .callout-tip .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="tip"] .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="todo"] .callout__title::before {
|
||
content: "💡";
|
||
}
|
||
|
||
:host ::ng-deep .callout-warning,
|
||
:host ::ng-deep .callout[data-callout-type="warning"],
|
||
:host ::ng-deep .callout[data-callout-type="caution"] {
|
||
background: rgba(251, 191, 36, 0.18);
|
||
border-color: rgba(251, 191, 36, 0.5);
|
||
color: #78350f;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .callout-warning,
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="warning"],
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="caution"] {
|
||
background: rgba(217, 119, 6, 0.35);
|
||
border-color: rgba(253, 224, 71, 0.5);
|
||
color: #fde68a;
|
||
}
|
||
|
||
:host ::ng-deep .callout-warning .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="warning"] .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="caution"] .callout__title::before {
|
||
content: "⚠️";
|
||
}
|
||
|
||
:host ::ng-deep .callout-danger,
|
||
:host ::ng-deep .callout[data-callout-type="danger"],
|
||
:host ::ng-deep .callout[data-callout-type="error"] {
|
||
background: rgba(248, 113, 113, 0.18);
|
||
border-color: rgba(248, 113, 113, 0.5);
|
||
color: #7f1d1d;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .callout-danger,
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="danger"],
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="error"] {
|
||
background: rgba(185, 28, 28, 0.35);
|
||
border-color: rgba(252, 165, 165, 0.55);
|
||
color: #fecaca;
|
||
}
|
||
|
||
:host ::ng-deep .callout-danger .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="danger"] .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="error"] .callout__title::before {
|
||
content: "⛔";
|
||
}
|
||
|
||
:host ::ng-deep .callout-default,
|
||
:host ::ng-deep .callout[data-callout-type="default"] {
|
||
background: rgba(148, 163, 184, 0.18);
|
||
border-color: rgba(148, 163, 184, 0.45);
|
||
color: #1f2937;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .callout-default,
|
||
:host-context(.dark) ::ng-deep .callout[data-callout-type="default"] {
|
||
background: rgba(71, 85, 105, 0.38);
|
||
border-color: rgba(148, 163, 184, 0.5);
|
||
color: #e2e8f0;
|
||
}
|
||
|
||
:host ::ng-deep .callout-default .callout__title::before,
|
||
:host ::ng-deep .callout[data-callout-type="default"] .callout__title::before {
|
||
content: "🛈";
|
||
}
|
||
|
||
:host ::ng-deep .inline-code {
|
||
font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
||
font-size: 0.9rem;
|
||
background: rgba(15, 118, 110, 0.08);
|
||
border: 1px solid rgba(13, 148, 136, 0.2);
|
||
color: #0f766e;
|
||
padding: 0.1rem 0.35rem;
|
||
border-radius: 0.4rem;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .inline-code {
|
||
background: rgba(45, 212, 191, 0.12);
|
||
border-color: rgba(34, 197, 94, 0.25);
|
||
color: #5eead4;
|
||
}
|
||
|
||
:host ::ng-deep .code-block {
|
||
margin: 1.25rem auto;
|
||
border-radius: 0.75rem;
|
||
border: 1px solid var(--md-pre-border);
|
||
overflow: hidden;
|
||
background: color-mix(in oklab, var(--md-pre-bg) 92%, transparent);
|
||
box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.35);
|
||
width: fit-content;
|
||
max-width: 100%;
|
||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .code-block {
|
||
background: var(--md-pre-bg);
|
||
border-color: var(--md-pre-border);
|
||
box-shadow: 0 18px 48px -30px rgba(0, 0, 0, 0.55);
|
||
}
|
||
|
||
:host ::ng-deep .code-block__header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 0.75rem;
|
||
padding: 0.5rem 0.75rem;
|
||
background: color-mix(in oklab, var(--md-pre-bg) 85%, transparent);
|
||
border-bottom: 1px solid color-mix(in oklab, var(--md-pre-border) 85%, transparent);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .code-block__header {
|
||
background: color-mix(in oklab, var(--md-pre-bg) 92%, transparent);
|
||
border-bottom: 1px solid var(--md-pre-border);
|
||
}
|
||
|
||
/* Header content: kind icon + label */
|
||
:host ::ng-deep .code-block__kind {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.4rem;
|
||
color: var(--md-pre-fg);
|
||
}
|
||
|
||
:host ::ng-deep .code-block__kind-icon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 1.25rem;
|
||
height: 1.25rem;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__kind-icon svg {
|
||
width: 1rem;
|
||
height: 1rem;
|
||
}
|
||
|
||
/* Kind-specific header accents (light) */
|
||
:host ::ng-deep .code-block--kind-code .code-block__header {
|
||
background: linear-gradient(90deg,
|
||
color-mix(in oklab, var(--md-syntax-2) 12%, transparent) 0%,
|
||
transparent 60%);
|
||
}
|
||
|
||
:host ::ng-deep .code-block--kind-shell .code-block__header {
|
||
background: linear-gradient(90deg,
|
||
color-mix(in oklab, var(--md-syntax-4) 12%, transparent) 0%,
|
||
transparent 60%);
|
||
}
|
||
|
||
:host ::ng-deep .code-block--kind-mermaid .code-block__header {
|
||
background: linear-gradient(90deg,
|
||
color-mix(in oklab, var(--md-syntax-3) 12%, transparent) 0%,
|
||
transparent 60%);
|
||
}
|
||
|
||
/* Dark mode keeps subtle tint but relies more on border color */
|
||
:host-context(.dark) ::ng-deep .code-block--kind-code .code-block__header {
|
||
background: linear-gradient(90deg,
|
||
color-mix(in oklab, var(--md-syntax-2) 14%, transparent) 0%,
|
||
transparent 60%);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .code-block--kind-shell .code-block__header {
|
||
background: linear-gradient(90deg,
|
||
color-mix(in oklab, var(--md-syntax-4) 14%, transparent) 0%,
|
||
transparent 60%);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .code-block--kind-mermaid .code-block__header {
|
||
background: linear-gradient(90deg,
|
||
color-mix(in oklab, var(--md-syntax-3) 14%, transparent) 0%,
|
||
transparent 60%);
|
||
}
|
||
|
||
/* Icon color per kind */
|
||
:host ::ng-deep .code-block--kind-code .code-block__kind-icon { color: var(--md-syntax-2); }
|
||
:host ::ng-deep .code-block--kind-shell .code-block__kind-icon { color: var(--md-syntax-4); }
|
||
:host ::ng-deep .code-block--kind-mermaid .code-block__kind-icon { color: var(--md-syntax-3); }
|
||
|
||
:host ::ng-deep .code-block__controls {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.4rem;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__controls span {
|
||
display: inline-block;
|
||
width: 0.6rem;
|
||
height: 0.6rem;
|
||
border-radius: 999px;
|
||
background: rgba(148, 163, 184, 0.6);
|
||
}
|
||
|
||
:host ::ng-deep .code-block__controls span:nth-child(1) {
|
||
background: #ef4444;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__controls span:nth-child(2) {
|
||
background: #f59e0b;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__controls span:nth-child(3) {
|
||
background: #22c55e;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
margin-left: auto;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__language-badge {
|
||
font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
||
font-size: 0.72rem;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.08em;
|
||
padding: 0.25rem 0.7rem;
|
||
border-radius: 999px;
|
||
background: color-mix(in oklab, var(--md-pre-bg) 75%, transparent);
|
||
color: var(--md-pre-fg);
|
||
border: 1px solid color-mix(in oklab, var(--md-pre-border) 70%, transparent);
|
||
cursor: pointer;
|
||
transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__language-badge:hover,
|
||
:host ::ng-deep .code-block__language-badge:focus-visible {
|
||
transform: translateY(-1px);
|
||
background: color-mix(in oklab, var(--md-pre-bg) 85%, transparent);
|
||
}
|
||
|
||
:host ::ng-deep .code-block__copy-feedback {
|
||
font-size: 0.68rem;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.12em;
|
||
color: var(--md-pre-fg);
|
||
opacity: 0;
|
||
transition: opacity 0.2s ease;
|
||
}
|
||
|
||
:host ::ng-deep .code-block.copied {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 26px 60px -28px rgba(15, 23, 42, 0.55);
|
||
}
|
||
|
||
:host ::ng-deep .code-block.copied .code-block__copy-feedback {
|
||
opacity: 1;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__body {
|
||
background: var(--md-pre-bg);
|
||
margin: 0;
|
||
padding: 0.9rem 1rem;
|
||
overflow: auto;
|
||
max-width: 100%;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__body code {
|
||
display: block;
|
||
font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
||
font-size: 0.9rem;
|
||
line-height: 1.6;
|
||
color: var(--md-pre-fg);
|
||
min-width: max-content;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__body::-webkit-scrollbar {
|
||
height: 10px;
|
||
}
|
||
|
||
:host ::ng-deep .code-block__body::-webkit-scrollbar-thumb {
|
||
background: color-mix(in oklab, var(--md-pre-border) 30%, transparent);
|
||
border-radius: 999px;
|
||
}
|
||
|
||
|
||
:host ::ng-deep .metadata-panel {
|
||
margin-bottom: 2.2rem;
|
||
padding: 0.2rem 0 0.2rem 0.8rem;
|
||
border-left: 3px solid rgba(15, 118, 110, 0.5);
|
||
display: block;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel {
|
||
border-left-color: rgba(45, 212, 191, 0.65);
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__grid {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.55rem;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__item {
|
||
display: grid;
|
||
grid-template-columns: auto 1fr;
|
||
align-items: center;
|
||
gap: 0.6rem;
|
||
padding: 0.35rem 0;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__icon {
|
||
font-size: 0.95rem;
|
||
width: 1.6rem;
|
||
height: 1.6rem;
|
||
border-radius: 0.45rem;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: rgba(15, 118, 110, 0.12);
|
||
color: #0f766e;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel__icon {
|
||
background: rgba(45, 212, 191, 0.18);
|
||
color: #5eead4;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__details {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.15rem;
|
||
min-width: 0;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__label {
|
||
font-size: 0.68rem;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
font-weight: 600;
|
||
color: rgba(15, 23, 42, 0.55);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel__label {
|
||
color: rgba(226, 232, 240, 0.7);
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__value,
|
||
:host ::ng-deep .metadata-panel__link {
|
||
font-size: 0.9rem;
|
||
font-weight: 500;
|
||
color: #0f172a;
|
||
word-break: break-word;
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel__value,
|
||
:host-context(.dark) ::ng-deep .metadata-panel__link {
|
||
color: #e2e8f0;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__link {
|
||
text-decoration: none;
|
||
border-bottom: 1px solid rgba(15, 118, 110, 0.25);
|
||
padding-bottom: 0.02rem;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__link:hover,
|
||
:host ::ng-deep .metadata-panel__link:focus-visible {
|
||
border-color: rgba(15, 118, 110, 0.6);
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__image {
|
||
width: 78px;
|
||
max-width: 100%;
|
||
border-radius: 0.45rem;
|
||
object-fit: cover;
|
||
border: 1px solid rgba(148, 163, 184, 0.32);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel__image {
|
||
border-color: rgba(71, 85, 105, 0.5);
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__value--boolean {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.3rem;
|
||
font-weight: 600;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__boolean-indicator {
|
||
width: 0.85rem;
|
||
height: 0.85rem;
|
||
border-radius: 0.24rem;
|
||
border: 2px solid rgba(15, 118, 110, 0.32);
|
||
background: transparent;
|
||
}
|
||
|
||
:host ::ng-deep .metadata-panel__boolean-indicator.is-checked {
|
||
background: rgba(15, 118, 110, 0.28);
|
||
border-color: rgba(15, 118, 110, 0.55);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel__boolean-indicator {
|
||
border-color: rgba(45, 212, 191, 0.4);
|
||
}
|
||
|
||
:host-context(.dark) ::ng-deep .metadata-panel__boolean-indicator.is-checked {
|
||
background: rgba(45, 212, 191, 0.28);
|
||
border-color: rgba(45, 212, 191, 0.5);
|
||
}
|