mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-18 12:17:48 +00:00
The blog CSS selectors for dark mode used descendant selectors like [data-theme='dark'] .blog-wrapper which never matched because both data-theme and .blog-wrapper are applied to the same <html> element by Docusaurus. Fixed by using compound selectors (no space): [data-theme='dark'].blog-wrapper. Also added missing dark-mode overrides for: - pre/code blocks in blog posts - link colors in blog posts - marquee items, separators, and labels on blog list page - pagination links on blog list page - meta text and author separators on blog list page Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
284 lines
5.4 KiB
CSS
284 lines
5.4 KiB
CSS
/* ── Page shell ───────────────────────────────────────────────────────── */
|
|
.page {
|
|
max-width: 860px;
|
|
margin: 0 auto;
|
|
padding: 0 2rem;
|
|
}
|
|
|
|
/* ── Hero ─────────────────────────────────────────────────────────────── */
|
|
.hero {
|
|
padding: 3.5rem 0 0;
|
|
}
|
|
|
|
.eyebrow {
|
|
font-size: 0.68rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
color: #0ea5e9;
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
|
|
.heroTitle {
|
|
font-size: 2.75rem;
|
|
font-weight: 600;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.1;
|
|
color: #111827;
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
|
|
.heroSub {
|
|
font-size: 0.95rem;
|
|
color: #6b7280;
|
|
max-width: 540px;
|
|
line-height: 1.65;
|
|
margin: 0 0 1.25rem;
|
|
}
|
|
|
|
.hiringBtn {
|
|
display: inline-block;
|
|
background: #111827;
|
|
color: #fff !important;
|
|
font-size: 0.82rem;
|
|
font-weight: 500;
|
|
padding: 0.45rem 1rem;
|
|
border-radius: 6px;
|
|
text-decoration: none !important;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.hiringBtn:hover {
|
|
background: #000;
|
|
}
|
|
|
|
/* ── Marquee ──────────────────────────────────────────────────────────── */
|
|
.marqueeWrap {
|
|
margin: 2.5rem 0 0;
|
|
padding: 1.25rem 0;
|
|
border-top: 1px solid #f3f4f6;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.marqueeLabel {
|
|
text-align: center;
|
|
font-size: 0.62rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.14em;
|
|
color: #9ca3af;
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.marqueeOuter {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.fadeLeft {
|
|
pointer-events: none;
|
|
position: absolute;
|
|
left: 0; top: 0; bottom: 0;
|
|
width: 5rem;
|
|
background: linear-gradient(to right, var(--ifm-background-color, #fff), transparent);
|
|
z-index: 10;
|
|
}
|
|
|
|
.fadeRight {
|
|
pointer-events: none;
|
|
position: absolute;
|
|
right: 0; top: 0; bottom: 0;
|
|
width: 5rem;
|
|
background: linear-gradient(to left, var(--ifm-background-color, #fff), transparent);
|
|
z-index: 10;
|
|
}
|
|
|
|
.marqueeTrack {
|
|
display: flex;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
animation: marquee 28s linear infinite;
|
|
}
|
|
|
|
@keyframes marquee {
|
|
from { transform: translateX(0); }
|
|
to { transform: translateX(-50%); }
|
|
}
|
|
|
|
.marqueeItem {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
padding: 0 1.4rem;
|
|
font-size: 0.82rem;
|
|
color: #4b5563;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.marqueeIcon {
|
|
flex-shrink: 0;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.marqueeSep {
|
|
margin-left: 1.2rem;
|
|
color: #e5e7eb;
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* ── Post list ────────────────────────────────────────────────────────── */
|
|
.list {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.post {
|
|
padding: 2.25rem 0;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
}
|
|
|
|
.titleLink {
|
|
text-decoration: none !important;
|
|
color: inherit;
|
|
}
|
|
|
|
.title {
|
|
font-size: 1.4rem;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
letter-spacing: -0.01em;
|
|
color: #111827;
|
|
margin: 0 0 0.5rem;
|
|
transition: color 0.12s;
|
|
}
|
|
|
|
.titleLink:hover .title {
|
|
color: #0ea5e9;
|
|
}
|
|
|
|
.desc {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
line-height: 1.55;
|
|
margin: 0 0 0.6rem;
|
|
}
|
|
|
|
.meta {
|
|
font-size: 0.82rem;
|
|
color: #6b7280;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0;
|
|
}
|
|
|
|
.authorLink {
|
|
color: #374151;
|
|
font-weight: 500;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
text-decoration-color: #d1d5db;
|
|
}
|
|
|
|
.authorLink:hover {
|
|
color: #0ea5e9;
|
|
text-decoration-color: #0ea5e9;
|
|
}
|
|
|
|
.authorName {
|
|
color: #374151;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.authorSep {
|
|
margin: 0 0.3rem;
|
|
color: #d1d5db;
|
|
}
|
|
|
|
.metaDash {
|
|
margin: 0 0.35rem;
|
|
color: #d1d5db;
|
|
}
|
|
|
|
.date {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
/* ── Pagination ───────────────────────────────────────────────────────── */
|
|
.pagination {
|
|
padding: 1.5rem 0 4rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.pageLink {
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
color: #374151;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.pageLink:hover {
|
|
color: #0ea5e9;
|
|
}
|
|
|
|
/* ── Dark mode ────────────────────────────────────────────────────────── */
|
|
[data-theme='dark'] .heroTitle,
|
|
[data-theme='dark'] .title {
|
|
color: #f9fafb;
|
|
}
|
|
|
|
[data-theme='dark'] .heroSub,
|
|
[data-theme='dark'] .desc,
|
|
[data-theme='dark'] .date {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
[data-theme='dark'] .post,
|
|
[data-theme='dark'] .marqueeWrap {
|
|
border-color: #1f2937;
|
|
}
|
|
|
|
[data-theme='dark'] .authorLink,
|
|
[data-theme='dark'] .authorName {
|
|
color: #e5e7eb;
|
|
}
|
|
|
|
[data-theme='dark'] .hiringBtn {
|
|
background: #f9fafb;
|
|
color: #111827 !important;
|
|
}
|
|
|
|
[data-theme='dark'] .hiringBtn:hover {
|
|
background: #fff;
|
|
}
|
|
|
|
[data-theme='dark'] .marqueeItem {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
[data-theme='dark'] .marqueeSep {
|
|
color: #374151;
|
|
}
|
|
|
|
[data-theme='dark'] .marqueeLabel {
|
|
color: #6b7280;
|
|
}
|
|
|
|
[data-theme='dark'] .pageLink {
|
|
color: #d1d5db;
|
|
}
|
|
|
|
[data-theme='dark'] .pageLink:hover {
|
|
color: #38bdf8;
|
|
}
|
|
|
|
[data-theme='dark'] .meta {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
[data-theme='dark'] .metaDash,
|
|
[data-theme='dark'] .authorSep {
|
|
color: #4b5563;
|
|
}
|