Skip to content

Commit ef0a2f6

Browse files
authored
Fix alignment of logo, refactor css vars and tweak header (#8101)
1 parent 9579cd6 commit ef0a2f6

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

.vitepress/theme/custom.css

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@
1414

1515
/* Theme Variables */
1616
:root {
17+
--cake-red-500: #d33c43;
18+
--cake-red-700: #c8363d;
19+
--cake-red-900: #b02e34;
20+
1721
--cake-color-link: #2d7ea4;
18-
--cake-color-progress: #d33c43;
22+
--cake-color-progress: var(--cake-red-500);
1923
--vp-font-family-base: "IBM Plex Sans", Helvetica, Arial, sans-serif;
2024
--vp-font-family-body: "IBM Plex Sans", Helvetica, Arial, sans-serif;
21-
--vp-c-brand-1: #d33c43;
22-
--vp-c-brand-2: #c8363d;
23-
--vp-c-brand-3: #b02e34;
25+
--vp-c-brand-1: var(--cake-red-500);
26+
--vp-c-brand-2: var(--cake-red-700);
27+
--vp-c-brand-3: var(--cake-red-900);
2428
--vp-c-brand-soft: rgba(211, 60, 67, 0.14);
25-
--vp-c-red-1: #d33c43;
26-
--vp-c-red-2: #c8363d;
27-
--vp-c-red-3: #b02e34;
29+
--vp-c-red-1: var(--cake-red-500);
30+
--vp-c-red-2: var(--cake-red-700);
31+
--vp-c-red-3: var(--cake-red-900);
2832
--vp-custom-block-tip-bg: #d9edf7;
2933
--vp-custom-block-note-bg: #fcf8e3;
3034
--vp-custom-block-warning-bg: #f2dede;
@@ -35,8 +39,8 @@
3539
/* Dark Theme */
3640
.dark {
3741
--vp-c-brand-1: #ff6b6b;
38-
--vp-c-brand-2: #d33c43;
39-
--vp-c-brand-3: #c8363d;
42+
--vp-c-brand-2: var(--cake-red-500);
43+
--vp-c-brand-3: var(--cake-red-700);
4044
--vp-c-brand-soft: rgba(255, 107, 107, 0.16);
4145
--vp-c-bg: #1a1a1a;
4246
--vp-sidebar-bg-color: #0f0f0f;
@@ -50,6 +54,20 @@
5054
.VPHero .VPImage {
5155
filter: drop-shadow(-2px 4px 15px rgba(64, 64, 64, 0.3));
5256
}
57+
.VPNavBar .VPImage {
58+
margin-left: 8px;
59+
}
60+
.VPNavBar .wrapper {
61+
background: var(--vp-c-bg);
62+
border-bottom: 1px solid var(--vp-c-border);
63+
}
64+
.VPNavBar .title {
65+
border: 0;
66+
}
67+
/* Hide the divider line underneath the navbar on the right side */
68+
.VPNavBar .divider-line {
69+
display: none;
70+
}
5371

5472
.dark .VPHero .VPImage {
5573
filter: drop-shadow(-2px 4px 15px rgba(211, 60, 67, 0.2));
@@ -97,17 +115,14 @@
97115
color: #e2c99c;
98116
}
99117

100-
.custom-block.warning .custom-block-title:before,
101-
.custom-block.deprecated .custom-block-title:before {
102-
color: #e0b9b9;
103-
}
104-
105118
.custom-block.warning .custom-block-title:before {
106119
content: "W";
120+
color: #e0b9b9;
107121
}
108122

109123
.custom-block.deprecated .custom-block-title:before {
110124
content: "H";
125+
color: #e0b9b9;
111126
}
112127

113128
.custom-block.info .custom-block-title:before {

0 commit comments

Comments
 (0)