Add tests for featured thumbnail generation; apply Pint formatting and related edits

This commit is contained in:
2026-05-06 18:55:40 +02:00
parent 7a8bc8e22a
commit 82f2b1f660
65 changed files with 11325 additions and 49545 deletions

View File

@@ -458,6 +458,420 @@
-webkit-user-select: text;
user-select: text;
cursor: text;
font-size: 1.05rem;
line-height: 1.85;
}
.news-rich-text-editor .ProseMirror {
color: rgb(226 232 240 / 0.92);
font-family: 'Libre Franklin', 'Inter', sans-serif;
font-size: 1.02rem;
line-height: 1.9;
}
.news-rich-text-editor .ProseMirror p {
padding-top: 0.18rem;
padding-bottom: 0.3rem;
}
.news-rich-text-editor .ProseMirror p:empty {
display: none;
}
.news-rich-text-editor .ProseMirror p + p {
margin-top: 1.5rem;
}
.news-rich-text-editor .ProseMirror h2,
.news-rich-text-editor .ProseMirror h3,
.news-rich-text-editor .ProseMirror h4,
.news-rich-text-editor .ProseMirror h5,
.news-rich-text-editor .ProseMirror h6 {
color: rgb(255 255 255);
font-weight: 600;
letter-spacing: -0.03em;
}
.news-rich-text-editor .ProseMirror h2 {
margin-top: 2.5rem;
margin-bottom: 1rem;
font-size: clamp(1.65rem, 1.2rem + 1vw, 2rem);
}
.news-rich-text-editor .ProseMirror h3 {
margin-top: 2rem;
margin-bottom: 0.75rem;
font-size: clamp(1.35rem, 1.05rem + 0.8vw, 1.6rem);
}
.news-rich-text-editor .ProseMirror h4,
.news-rich-text-editor .ProseMirror h5,
.news-rich-text-editor .ProseMirror h6 {
margin-top: 1.5rem;
margin-bottom: 0.6rem;
}
.news-rich-text-editor .ProseMirror ul,
.news-rich-text-editor .ProseMirror ol {
margin: 1.5rem 0;
padding-left: 1.5rem;
}
.news-rich-text-editor .ProseMirror ul {
list-style-type: disc;
}
.news-rich-text-editor .ProseMirror ol {
list-style-type: decimal;
}
.news-rich-text-editor .ProseMirror li {
color: rgb(255 255 255 / 0.72);
margin-bottom: 0.5rem;
}
.news-rich-text-editor .ProseMirror li::marker {
color: rgb(255 255 255 / 0.45);
}
.news-rich-text-editor .ProseMirror blockquote {
margin: 2rem 0;
border-left: 3px solid rgb(14 165 233 / 0.7);
background: rgb(255 255 255 / 0.03);
padding: 0.6rem 0 0.6rem 1.25rem;
color: rgb(255 255 255 / 0.68);
}
.news-rich-text-editor .ProseMirror hr {
margin: 2rem 0;
}
.rich-text-editor-viewport {
overflow-y: auto;
overscroll-behavior: contain;
border-bottom-left-radius: 0.75rem;
border-bottom-right-radius: 0.75rem;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.rich-text-editor-viewport .ProseMirror {
min-height: 100%;
}
.rich-text-editor-viewport .ProseMirror:focus {
outline: none;
}
.rich-text-editor-viewport .ProseMirror > :first-child {
margin-top: 0;
}
.rich-text-editor-viewport .ProseMirror > :last-child {
margin-bottom: 0;
}
.rich-text-editor-viewport::-webkit-scrollbar {
width: 10px;
}
.rich-text-editor-viewport::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.34);
}
.rich-text-editor-viewport::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(125, 211, 252, 0.35));
border: 2px solid rgba(15, 23, 42, 0.48);
border-radius: 999px;
}
.rich-text-editor-viewport::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, rgba(56, 189, 248, 0.36), rgba(125, 211, 252, 0.5));
}
.rich-text-editor-viewport::-webkit-scrollbar-corner {
background: transparent;
}
.tiptap .ProseMirror :is(p, div, h2, h3, hr) {
margin-bottom: 1.05em;
}
.tiptap .ProseMirror p {
font-size: 1.02rem;
line-height: 1.9;
}
.tiptap .ProseMirror h2 {
font-size: 1.75rem;
line-height: 1.18;
margin-top: 1.8em;
margin-bottom: 0.95em;
}
.tiptap .ProseMirror h3 {
font-size: 1.35rem;
line-height: 1.22;
margin-top: 1.5em;
margin-bottom: 0.85em;
}
.tiptap .ProseMirror hr {
margin-top: 1.75em;
margin-bottom: 1.75em;
}
.rich-image-node {
position: relative;
display: flex;
flex-direction: column;
gap: 0.75rem;
margin: 1.75rem auto;
max-width: 100%;
outline: none;
}
.rich-image-node.is-selected .rich-image-node__frame {
box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.45), 0 0 0 6px rgba(14, 165, 233, 0.12);
}
.rich-image-node__frame {
position: relative;
display: inline-flex;
max-width: 100%;
margin: 0 auto;
border-radius: 1.25rem;
}
.rich-image-node__img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
border-radius: 1.25rem;
object-fit: contain;
}
.rich-image-node__drag-handle,
.rich-image-node__resize-handle {
position: absolute;
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 999px;
background: rgba(8, 12, 20, 0.9);
color: rgb(241 245 249 / 0.95);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
cursor: grab;
}
.rich-image-node__drag-handle {
top: 0.75rem;
left: 0.75rem;
}
.rich-image-node__resize-handle {
right: 0.75rem;
bottom: 0.75rem;
cursor: nwse-resize;
}
.rich-image-node__caption {
max-width: min(100%, 46rem);
margin: 0 auto;
color: rgb(148 163 184 / 0.9);
font-size: 0.9rem;
line-height: 1.7;
text-align: center;
}
.rich-image-node__editor {
display: grid;
gap: 0.9rem;
padding: 0.9rem;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 1.1rem;
background: rgba(8, 12, 20, 0.92);
}
.rich-image-node.is-selected .rich-image-node__editor {
margin-inline: auto;
width: min(100%, 52rem);
}
.rich-compare-node {
position: relative;
display: flex;
flex-direction: column;
gap: 0.8rem;
margin: 1.75rem auto;
max-width: 100%;
outline: none;
}
.rich-compare-node.is-selected {
border-radius: 1.25rem;
}
.rich-compare-node.is-selected .rich-compare-node__grid,
.ProseMirror-selectednode.rich-compare-node .rich-compare-node__grid {
box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.45), 0 0 0 6px rgba(14, 165, 233, 0.12);
}
.rich-compare-node__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
width: 100%;
}
.rich-compare-node__tile {
position: relative;
overflow: hidden;
border-radius: 1.25rem;
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(8, 12, 20, 0.92);
box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}
.rich-compare-node__img {
display: block;
width: 100%;
height: auto;
object-fit: contain;
}
.rich-compare-node__badge {
position: absolute;
left: 0.75rem;
top: 0.75rem;
z-index: 1;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 999px;
background: rgba(8, 12, 20, 0.92);
color: rgb(226 232 240 / 0.9);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.12em;
line-height: 1;
padding: 0.45rem 0.65rem;
text-transform: uppercase;
}
.rich-compare-node__subtitle {
max-width: min(100%, 52rem);
margin: 0 auto;
color: rgb(148 163 184 / 0.9);
font-size: 0.92rem;
line-height: 1.7;
text-align: center;
}
.rich-compare-node__editor {
display: grid;
gap: 0.9rem;
padding: 0.9rem;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 1.1rem;
background: rgba(8, 12, 20, 0.92);
}
.rich-compare-node.is-selected .rich-compare-node__editor {
margin-inline: auto;
width: min(100%, 72rem);
}
.ProseMirror-selectednode.rich-image-node,
.rich-image-node.is-selected {
border-radius: 1.25rem;
}
.ProseMirror-selectednode.rich-image-node .rich-image-node__img {
outline: 2px solid rgba(125, 211, 252, 0.55);
outline-offset: 4px;
}
.tiptap .tableWrapper,
.rich-text-editor-viewport .tableWrapper {
margin: 1.5rem 0;
overflow-x: auto;
padding: 0.35rem;
border: 1px solid rgba(125, 211, 252, 0.3);
border-radius: 1rem;
background: rgba(8, 12, 20, 0.72);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 42px rgba(2, 6, 23, 0.22);
}
.tiptap table.rich-table,
.rich-text-editor-viewport .tableWrapper table {
width: 100%;
min-width: 100%;
border-collapse: separate;
border-spacing: 0;
table-layout: fixed;
overflow: hidden;
border: 1px solid rgba(125, 211, 252, 0.38);
border-radius: 0.8rem;
}
.tiptap table.rich-table th,
.tiptap table.rich-table td,
.rich-text-editor-viewport .tableWrapper th,
.rich-text-editor-viewport .tableWrapper td {
position: relative;
min-width: 120px;
padding: 0.85rem 0.95rem;
border: 1px solid rgba(148, 163, 184, 0.3) !important;
vertical-align: top;
background: rgba(255, 255, 255, 0.03);
}
.tiptap table.rich-table th,
.rich-text-editor-viewport .tableWrapper th {
background: rgba(14, 165, 233, 0.16);
color: rgb(241 245 249);
font-weight: 700;
}
.tiptap table.rich-table td p,
.tiptap table.rich-table th p,
.rich-text-editor-viewport .tableWrapper td p,
.rich-text-editor-viewport .tableWrapper th p {
margin: 0;
line-height: 1.65;
}
.tiptap table.rich-table .selectedCell,
.rich-text-editor-viewport .tableWrapper .selectedCell {
position: relative;
}
.tiptap table.rich-table .selectedCell::after,
.rich-text-editor-viewport .tableWrapper .selectedCell::after {
content: '';
position: absolute;
inset: 0;
background: rgba(56, 189, 248, 0.14);
pointer-events: none;
}
.tiptap table.rich-table .column-resize-handle,
.rich-text-editor-viewport .tableWrapper .column-resize-handle {
position: absolute;
top: 0;
right: -2px;
width: 4px;
height: 100%;
background: rgba(125, 211, 252, 0.82);
pointer-events: none;
box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.45);
}
.tiptap table.rich-table tr:nth-child(even) td,
.rich-text-editor-viewport .tableWrapper tr:nth-child(even) td {
background: rgba(255, 255, 255, 0.035);
}
.tiptap p.is-editor-empty:first-child::before {
@@ -483,6 +897,73 @@
overflow-x: auto;
}
.forum-code-block {
position: relative;
max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
margin: 1.4rem 0;
border: 1px solid rgba(56, 189, 248, 0.16);
border-radius: 1.15rem;
background:
linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0, rgba(15, 23, 42, 0.98) 3rem, rgba(2, 6, 23, 0.98) 3rem, rgba(2, 6, 23, 0.98) 100%);
box-shadow:
0 22px 58px rgba(2, 6, 23, 0.42),
inset 0 1px 0 rgba(56, 189, 248, 0.1);
scrollbar-width: thin;
scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.forum-code-block::-webkit-scrollbar {
height: 8px;
}
.forum-code-block::-webkit-scrollbar-track {
background: transparent;
}
.forum-code-block::-webkit-scrollbar-thumb {
background-color: rgba(255,255,255,0.16);
border-radius: 999px;
}
.forum-code-block::-webkit-scrollbar-thumb:hover {
background-color: rgba(255,255,255,0.28);
}
.forum-code-block code {
display: block;
min-width: max-content;
padding: 3.75rem 1.25rem 1.25rem;
color: rgb(226 232 240);
font-family: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
font-size: 0.92rem;
line-height: 1.75;
tab-size: 2;
}
.forum-code-block::before {
content: 'Code';
position: absolute;
top: 0.82rem;
left: 1.1rem;
z-index: 1;
border: 1px solid rgba(56, 189, 248, 0.2);
border-radius: 999px;
background: rgba(15, 23, 42, 0.92);
padding: 0.2rem 0.55rem;
color: rgb(125 211 252);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.09em;
text-transform: uppercase;
}
.forum-code-block .story-code-copy-button {
top: 0.78rem;
right: 1.05rem;
}
.tiptap pre code {
display: block;
background: none;
@@ -621,7 +1102,8 @@
.story-prose pre {
position: relative;
overflow: hidden;
overflow-x: auto;
overflow-y: hidden;
border-color: rgba(51, 65, 85, 0.95) !important;
background:
linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0, rgba(15, 23, 42, 0.98) 3rem, rgba(2, 6, 23, 0.98) 3rem, rgba(2, 6, 23, 0.98) 100%) !important;
@@ -629,6 +1111,30 @@
0 26px 75px rgba(2, 6, 23, 0.5),
inset 0 1px 0 rgba(56, 189, 248, 0.08);
padding: 4rem 1.5rem 1.5rem !important;
scrollbar-width: thin;
scrollbar-color: rgba(125, 211, 252, 0.34) rgba(15, 23, 42, 0.25);
}
.story-prose pre::-webkit-scrollbar {
height: 10px;
}
.story-prose pre::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.24);
}
.story-prose pre::-webkit-scrollbar-thumb {
border: 2px solid rgba(15, 23, 42, 0.28);
border-radius: 999px;
background: linear-gradient(90deg, rgba(56, 189, 248, 0.28), rgba(125, 211, 252, 0.48));
}
.story-prose pre::-webkit-scrollbar-thumb:hover {
background: linear-gradient(90deg, rgba(56, 189, 248, 0.42), rgba(125, 211, 252, 0.58));
}
.story-prose pre::-webkit-scrollbar-corner {
background: transparent;
}
.story-prose p {
@@ -737,12 +1243,14 @@
.story-prose figure iframe {
display: block;
width: 100%;
min-width: 100%;
max-width: 100%;
height: auto;
aspect-ratio: 16 / 9;
}
.news-rich-text-editor .news-embed,
.story-prose .news-embed {
width: 100%;
margin: 1.75rem 0;
overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.18);
@@ -798,10 +1306,377 @@
.story-prose .news-embed-video iframe {
display: block;
width: 100%;
max-width: 100%;
height: auto;
border: 0;
aspect-ratio: 16 / 9;
}
.academy-lesson-prose {
color: rgb(226 232 240 / 0.9);
font-family: 'Libre Franklin', 'Inter', sans-serif;
font-size: calc(clamp(0.88rem, 1.02rem + 0.28vw, 1.2rem) * var(--academy-lesson-font-scale, 1));
line-height: 1.74;
}
.academy-lesson-prose > :first-child {
margin-top: 0;
}
.academy-lesson-prose > :last-child {
margin-bottom: 0;
}
.academy-lesson-prose :is(p, li) {
color: rgb(226 232 240 / 0.9);
font-size: inherit;
line-height: inherit;
}
.academy-lesson-prose p {
margin-top: 0;
margin-bottom: 1.0rem;
text-wrap: pretty;
}
.academy-lesson-prose p + p {
margin-top: 0;
}
.academy-lesson-prose h2,
.academy-lesson-prose h3 {
position: relative;
text-wrap: balance;
scroll-margin-top: 7rem;
}
.academy-lesson-prose h2 {
margin-top: 3.35rem;
margin-bottom: 1.05rem;
font-size: clamp(2.08rem, 1.56rem + 1.12vw, 2.8rem);
line-height: 1.06;
font-weight: 800;
letter-spacing: -0.045em;
color: rgb(255 255 255);
}
.academy-lesson-prose h2::before {
content: '';
display: block;
width: 3.25rem;
height: 2px;
margin-bottom: 1rem;
border-radius: 999px;
background: linear-gradient(90deg, rgba(125, 211, 252, 0.95), rgba(125, 211, 252, 0.12));
}
.academy-lesson-prose h3 {
margin-top: 2.45rem;
margin-bottom: 0.9rem;
font-size: clamp(1.48rem, 1.22rem + 0.66vw, 1.9rem);
line-height: 1.18;
font-weight: 750;
letter-spacing: -0.03em;
color: rgb(248 250 252);
}
.academy-lesson-prose ul,
.academy-lesson-prose ol {
margin: 1rem 0 1.15rem;
padding-left: 0;
}
.academy-lesson-prose ul {
list-style: none;
}
.academy-lesson-prose ol {
list-style: none;
counter-reset: lesson-ordered-list;
}
.academy-lesson-prose ul li,
.academy-lesson-prose ol li {
position: relative;
margin: 0;
padding-left: 1.95rem;
line-height: 1.64;
}
.academy-lesson-prose ul li + li,
.academy-lesson-prose ol li + li {
margin-top: 0.14rem;
}
.academy-lesson-prose ul li::before {
content: '';
position: absolute;
top: 0.82em;
left: 0.2rem;
width: 0.55rem;
height: 0.55rem;
border-radius: 999px;
background: linear-gradient(180deg, rgba(125, 211, 252, 0.95), rgba(56, 189, 248, 0.65));
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}
.academy-lesson-prose ol li::before {
counter-increment: lesson-ordered-list;
content: counter(lesson-ordered-list);
position: absolute;
top: 0.16rem;
left: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.2rem;
height: 1.2rem;
border: 1px solid rgba(125, 211, 252, 0.24);
border-radius: 999px;
background: rgba(56, 189, 248, 0.09);
color: rgb(224 242 254);
font-size: 0.72rem;
font-weight: 700;
line-height: 1;
}
.academy-lesson-prose li > p:last-child {
margin-bottom: 0;
}
.academy-lesson-prose li > p:first-child {
margin-top: 0;
}
.academy-lesson-prose li > p + p {
margin-top: 0.25rem;
}
.academy-lesson-prose hr {
position: relative;
height: 1px;
margin: 2.9rem 0;
border: 0;
background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.34), rgba(148, 163, 184, 0));
}
.academy-lesson-prose hr::after {
content: '';
position: absolute;
left: 50%;
top: 50%;
width: 0.7rem;
height: 0.7rem;
transform: translate(-50%, -50%) rotate(45deg);
border: 1px solid rgba(125, 211, 252, 0.3);
background: rgba(15, 23, 42, 0.9);
box-shadow: 0 0 0 8px rgba(15, 23, 42, 0.9);
}
.academy-lesson-prose table {
width: 100%;
margin: 2rem 0;
border-collapse: separate;
border-spacing: 0;
border: 1px solid rgba(125, 211, 252, 0.28);
border-radius: 1rem;
overflow: hidden;
background: rgba(8, 12, 20, 0.72);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 42px rgba(2, 6, 23, 0.2);
}
.academy-lesson-prose th,
.academy-lesson-prose td {
min-width: 120px;
padding: 0.9rem 1rem;
border: 1px solid rgba(148, 163, 184, 0.28);
vertical-align: top;
background: rgba(255, 255, 255, 0.03);
}
.academy-lesson-prose th {
background: rgba(14, 165, 233, 0.14);
color: rgb(248 250 252);
font-weight: 700;
}
.academy-lesson-prose td p,
.academy-lesson-prose th p {
margin: 0;
line-height: 1.65;
}
.academy-lesson-prose tbody tr:nth-child(even) td {
background: rgba(255, 255, 255, 0.02);
}
.academy-lesson-prose pre {
margin: .4rem 0;
padding: 0.5rem !important;
border-color: rgba(56, 189, 248, 0.16) !important;
background:
linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0, rgba(15, 23, 42, 0.98) 3rem, rgba(2, 6, 23, 0.98) 3rem, rgba(2, 6, 23, 0.98) 100%) !important;
box-shadow:
0 28px 78px rgba(2, 6, 23, 0.56),
inset 0 1px 0 rgba(56, 189, 248, 0.1);
}
.academy-lesson-prose pre code,
.academy-lesson-prose pre code.hljs,
.academy-lesson-prose pre code[class*='language-'] {
color: rgb(226 232 240);
font-size: 0.92rem;
line-height: 1.8;
tab-size: 2;
}
.academy-lesson-prose pre::after {
inset: 3rem 0 auto 0;
background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.26), rgba(56, 189, 248, 0));
}
.academy-lesson-prose pre[data-language]::before {
top: 0.8rem;
left: 1.2rem;
}
.academy-lesson-prose > img,
.academy-lesson-prose figure,
.academy-lesson-prose video,
.academy-lesson-prose iframe {
display: block;
width: 100%;
margin: 2.15rem 0;
}
.academy-lesson-prose > img,
.academy-lesson-prose figure img,
.academy-lesson-prose video,
.academy-lesson-prose iframe {
overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.12);
border-radius: 1.5rem;
background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
box-shadow: 0 24px 55px rgba(2, 6, 23, 0.34);
}
.academy-lesson-prose iframe,
.academy-lesson-prose video,
.academy-lesson-prose figure iframe,
.academy-lesson-prose figure video {
aspect-ratio: 16 / 9;
}
.academy-code-copy-button {
top: 0.78rem;
right: 1.1rem;
}
.academy-lesson-prose figure {
overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.12);
border-radius: 1.75rem;
background: rgba(15, 23, 42, 0.72);
padding: 0.55rem;
}
.academy-lesson-prose figure img,
.academy-lesson-prose figure iframe,
.academy-lesson-prose figure video {
margin: 0;
}
.academy-lesson-prose figcaption {
padding: 0.9rem 0.45rem 0.25rem;
color: rgb(148 163 184 / 0.92);
font-size: 0.92rem;
line-height: 1.7;
text-align: center;
}
.academy-lesson-prose a {
color: rgb(125 211 252);
text-decoration-thickness: 1.5px;
text-underline-offset: 0.18em;
}
.academy-lesson-toc-link {
display: flex;
align-items: flex-start;
gap: 0.8rem;
border-radius: 1rem;
padding: 0.8rem 0.9rem;
color: rgb(226 232 240 / 0.88);
font-size: 0.96rem;
line-height: 1.55;
text-decoration: none;
transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.academy-lesson-toc-link:hover {
background: rgba(255, 255, 255, 0.05);
color: rgb(255 255 255);
}
.academy-lesson-toc-link-active {
background: rgba(56, 189, 248, 0.12);
color: rgb(255 255 255);
box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18);
}
.academy-lesson-toc-link-active .academy-lesson-toc-link-indicator {
background: linear-gradient(180deg, rgba(125, 211, 252, 1), rgba(56, 189, 248, 0.9));
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}
.academy-lesson-toc-link-subtle {
padding-left: 1.55rem;
color: rgb(148 163 184 / 0.95);
font-size: 0.9rem;
}
.academy-lesson-toc-link-indicator {
width: 0.45rem;
height: 0.45rem;
margin-top: 0.48rem;
flex: 0 0 auto;
border-radius: 999px;
background: linear-gradient(180deg, rgba(125, 211, 252, 0.95), rgba(56, 189, 248, 0.68));
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}
.academy-lesson-toc-link-subtle .academy-lesson-toc-link-indicator {
width: 0.35rem;
height: 0.35rem;
margin-top: 0.56rem;
background: rgba(148, 163, 184, 0.72);
box-shadow: none;
}
.academy-lesson-prose strong {
color: rgb(255 255 255);
font-weight: 750;
}
.academy-lesson-prose em {
color: rgb(226 232 240 / 0.94);
}
@media (max-width: 768px) {
.academy-lesson-prose {
font-size: calc(clamp(1.02rem, 0.98rem + 0.18vw, 1.1rem) * var(--academy-lesson-font-scale, 1));
line-height: 1.78;
}
.academy-lesson-prose h2 {
margin-top: 2.8rem;
}
.academy-lesson-prose h3 {
margin-top: 2.15rem;
}
}
.news-editor-outline .ProseMirror :is(p, div, figure, blockquote, ul, ol, li, h2, h3, pre, hr) {
position: relative;
outline: 1px dashed rgba(56, 189, 248, 0.24);
@@ -821,7 +1696,7 @@
.news-editor-outline .ProseMirror hr::before {
position: absolute;
top: -0.55rem;
left: 0.1rem;
right: 0.1rem;
z-index: 2;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: 0.35rem;
@@ -968,6 +1843,7 @@
.story-prose pre code.hljs,
.story-prose pre code[class*='language-'] {
display: block;
min-width: max-content;
overflow-x: auto;
background: transparent;
padding: 0;