Skip to content

Commit 433e2e8

Browse files
committed
fix: responsive
1 parent e5c976e commit 433e2e8

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

src/css/custom.css

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195

196196
/* Color mode toggle — clean sun/moon icon */
197197
.clean-color-toggle {
198-
display: flex;
198+
display: none;
199199
align-items: center;
200200
justify-content: center;
201201
width: 32px;
@@ -209,6 +209,12 @@
209209
transition: color 0.15s ease, background-color 0.15s ease;
210210
}
211211

212+
@media (min-width: 997px) {
213+
.clean-color-toggle {
214+
display: flex;
215+
}
216+
}
217+
212218
.clean-color-toggle:hover {
213219
color: #18181b;
214220
background-color: #f4f4f5;
@@ -431,7 +437,6 @@ html[class*="plugin-@scalar"] .main-wrapper {
431437
max-width: 100%;
432438
margin: 0;
433439
padding: 0;
434-
padding-top: 0 !important;
435440
}
436441

437442
html[class*="plugin-@scalar"] .footer {
@@ -495,23 +500,23 @@ html[class*="plugin-@scalar"] .uppercase.text-xs.font-medium.border {
495500
}
496501

497502
/* Beautiful numbered list styling (docs pages only, not Scalar) */
498-
.markdown > ol,
499-
.markdown > ol ol {
503+
html:not([class*="plugin-@scalar"]) .markdown > ol,
504+
html:not([class*="plugin-@scalar"]) .markdown > ol ol {
500505
list-style: none;
501506
counter-reset: item;
502507
padding-left: 0;
503508
}
504509

505-
.markdown > ol > li,
506-
.markdown > ol ol > li {
510+
html:not([class*="plugin-@scalar"]) .markdown > ol > li,
511+
html:not([class*="plugin-@scalar"]) .markdown > ol ol > li {
507512
counter-increment: item;
508513
position: relative;
509514
padding-left: 3rem;
510515
margin-bottom: 1.5rem;
511516
}
512517

513518
/* Vertical line connecting badges */
514-
.markdown > ol > li::after {
519+
html:not([class*="plugin-@scalar"]) .markdown > ol > li::after {
515520
content: '';
516521
position: absolute;
517522
left: 0.875rem;
@@ -521,13 +526,13 @@ html[class*="plugin-@scalar"] .uppercase.text-xs.font-medium.border {
521526
background: var(--ifm-toc-border-color);
522527
}
523528

524-
.markdown > ol > li:last-child::after {
529+
html:not([class*="plugin-@scalar"]) .markdown > ol > li:last-child::after {
525530
display: none;
526531
}
527532

528533
/* Circular number badge */
529-
.markdown > ol > li::before,
530-
.markdown > ol ol > li::before {
534+
html:not([class*="plugin-@scalar"]) .markdown > ol > li::before,
535+
html:not([class*="plugin-@scalar"]) .markdown > ol ol > li::before {
531536
content: counter(item);
532537
position: absolute;
533538
left: 0;
@@ -546,8 +551,8 @@ html[class*="plugin-@scalar"] .uppercase.text-xs.font-medium.border {
546551
z-index: 1;
547552
}
548553

549-
[data-theme='dark'] .markdown > ol > li::before,
550-
[data-theme='dark'] .markdown > ol ol > li::before {
554+
html[data-theme='dark']:not([class*="plugin-@scalar"]) .markdown > ol > li::before,
555+
html[data-theme='dark']:not([class*="plugin-@scalar"]) .markdown > ol ol > li::before {
551556
background: var(--ifm-color-primary-dark);
552557
color: #18181b;
553558
}

0 commit comments

Comments
 (0)