Skip to content

Commit 1f55c3d

Browse files
committed
Refine progressive docs theme styles
1 parent bae6d95 commit 1f55c3d

2 files changed

Lines changed: 54 additions & 18 deletions

File tree

docs/styles/global.css

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -529,17 +529,13 @@ body,
529529
}
530530

531531
.docs-site.docs-theme-dark .docs-topbar {
532-
background: rgba(7, 17, 29, 0.94);
532+
background: var(--docs-paper);
533533
}
534534

535535
.docs-site.docs-level-8 .docs-topbar {
536536
background: rgba(7, 17, 29, 0.94);
537537
}
538538

539-
.docs-site.docs-theme-dark .docs-brand img {
540-
filter: brightness(0) invert(1);
541-
}
542-
543539
.docs-site.docs-level-8 .docs-brand img {
544540
filter: brightness(0) invert(1);
545541
}
@@ -790,6 +786,10 @@ body,
790786
box-shadow: var(--docs-shadow);
791787
}
792788

789+
.docs-example-card {
790+
color: var(--black);
791+
}
792+
793793
.docs-paths {
794794
display: grid;
795795
gap: 32px;
@@ -817,6 +817,10 @@ body,
817817
background: #0c1724;
818818
}
819819

820+
.docs-site.docs-theme-dark.docs-level-5 .docs-paths a {
821+
background: #15110C;
822+
}
823+
820824
.docs-layout {
821825
display: grid;
822826
gap: 28px;
@@ -917,6 +921,13 @@ body,
917921
color: #d6e2ee;
918922
}
919923

924+
925+
.docs-site.docs-theme-dark.docs-level-5 .docs-article p,
926+
.docs-site.docs-theme-dark.docs-level-5 .docs-article li,
927+
.docs-site.docs-theme-dark.docs-level-5 .docs-article td {
928+
color: #ffe0ad;
929+
}
930+
920931
.docs-article a {
921932
color: var(--docs-blue);
922933
font-weight: 700;
@@ -1363,8 +1374,7 @@ body,
13631374
min-height: 58px;
13641375
}
13651376

1366-
.docs-site.docs-level-3 .docs-card-grid a strong,
1367-
.docs-site.docs-level-3 .docs-paths a strong {
1377+
.docs-site.docs-level-3 .docs-card-grid a strong {
13681378
background: linear-gradient(#ffffff, #e9eef4);
13691379
border-bottom: 1px solid var(--docs-line);
13701380
margin: -22px -22px 10px;
@@ -1448,6 +1458,15 @@ body,
14481458
--docs-code: #080812;
14491459
}
14501460

1461+
@media (max-width: 1024px) {
1462+
.docs-layout {
1463+
grid-template-columns: 300px 1fr;
1464+
}
1465+
.docs-toc {
1466+
display: none;
1467+
}
1468+
}
1469+
14511470
@media (max-width: 920px) {
14521471
.docs-topbar {
14531472
grid-template-columns: 1fr auto auto auto;
@@ -1545,8 +1564,7 @@ body,
15451564
text-decoration: none;
15461565
}
15471566

1548-
.docs-sidebar,
1549-
.docs-toc {
1567+
.docs-sidebar {
15501568
display: none;
15511569
}
15521570
}

public/styles/global.css

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -529,17 +529,13 @@ body,
529529
}
530530

531531
.docs-site.docs-theme-dark .docs-topbar {
532-
background: rgba(7, 17, 29, 0.94);
532+
background: var(--docs-paper);
533533
}
534534

535535
.docs-site.docs-level-8 .docs-topbar {
536536
background: rgba(7, 17, 29, 0.94);
537537
}
538538

539-
.docs-site.docs-theme-dark .docs-brand img {
540-
filter: brightness(0) invert(1);
541-
}
542-
543539
.docs-site.docs-level-8 .docs-brand img {
544540
filter: brightness(0) invert(1);
545541
}
@@ -790,6 +786,10 @@ body,
790786
box-shadow: var(--docs-shadow);
791787
}
792788

789+
.docs-example-card {
790+
color: var(--black);
791+
}
792+
793793
.docs-paths {
794794
display: grid;
795795
gap: 32px;
@@ -817,6 +817,10 @@ body,
817817
background: #0c1724;
818818
}
819819

820+
.docs-site.docs-theme-dark.docs-level-5 .docs-paths a {
821+
background: #15110C;
822+
}
823+
820824
.docs-layout {
821825
display: grid;
822826
gap: 28px;
@@ -917,6 +921,13 @@ body,
917921
color: #d6e2ee;
918922
}
919923

924+
925+
.docs-site.docs-theme-dark.docs-level-5 .docs-article p,
926+
.docs-site.docs-theme-dark.docs-level-5 .docs-article li,
927+
.docs-site.docs-theme-dark.docs-level-5 .docs-article td {
928+
color: #ffe0ad;
929+
}
930+
920931
.docs-article a {
921932
color: var(--docs-blue);
922933
font-weight: 700;
@@ -1363,8 +1374,7 @@ body,
13631374
min-height: 58px;
13641375
}
13651376

1366-
.docs-site.docs-level-3 .docs-card-grid a strong,
1367-
.docs-site.docs-level-3 .docs-paths a strong {
1377+
.docs-site.docs-level-3 .docs-card-grid a strong {
13681378
background: linear-gradient(#ffffff, #e9eef4);
13691379
border-bottom: 1px solid var(--docs-line);
13701380
margin: -22px -22px 10px;
@@ -1448,6 +1458,15 @@ body,
14481458
--docs-code: #080812;
14491459
}
14501460

1461+
@media (max-width: 1024px) {
1462+
.docs-layout {
1463+
grid-template-columns: 300px 1fr;
1464+
}
1465+
.docs-toc {
1466+
display: none;
1467+
}
1468+
}
1469+
14511470
@media (max-width: 920px) {
14521471
.docs-topbar {
14531472
grid-template-columns: 1fr auto auto auto;
@@ -1545,8 +1564,7 @@ body,
15451564
text-decoration: none;
15461565
}
15471566

1548-
.docs-sidebar,
1549-
.docs-toc {
1567+
.docs-sidebar {
15501568
display: none;
15511569
}
15521570
}

0 commit comments

Comments
 (0)