Skip to content

Commit 75737a4

Browse files
committed
Update h1 and h2 linear gradient
1 parent dfffd50 commit 75737a4

File tree

1 file changed

+29
-15
lines changed

1 file changed

+29
-15
lines changed

theme/index.css

+29-15
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
:root {
2-
/* Modify theme color */
3-
--rp-c-brand: #db4c38;
4-
--rp-c-brand-dark: #f96b6b;
5-
--rp-c-brand-darker: #f96b6b;
6-
--rp-c-brand-light: #f96b6b;
7-
--rp-c-brand-lighter: #f53939;
8-
/* Modify the width of the left sidebar */
9-
--rp-sidebar-width: 280px;
10-
/* Modify the width of the right outline column */
11-
--rp-aside-width: 256px;
12-
/* Modify the background of the code block title */
13-
/* --rp-code-title-bg: rgba(250, 192, 61, 0.15); */
14-
/* Modify the background of the code block content */
15-
/* --rp-code-block-bg: rgba(214, 188, 70, 0.05); */
16-
}
2+
/* Modify theme color */
3+
--rp-c-brand: #db4c38;
4+
--rp-c-brand-dark: #f96b6b;
5+
--rp-c-brand-darker: #f96b6b;
6+
--rp-c-brand-light: #f96b6b;
7+
--rp-c-brand-lighter: #f53939;
8+
/* Modify the width of the left sidebar */
9+
--rp-sidebar-width: 280px;
10+
/* Modify the width of the right outline column */
11+
--rp-aside-width: 256px;
12+
/* Modify the background of the code block title */
13+
/* --rp-code-title-bg: rgba(250, 192, 61, 0.15); */
14+
/* Modify the background of the code block content */
15+
/* --rp-code-block-bg: rgba(214, 188, 70, 0.05); */
16+
}
17+
18+
.rspress-doc > h1 {
19+
font-size: 2.3rem;
20+
font-weight: 700;
21+
background: linear-gradient(279deg, #ff8b00 35.21%, #f93920 63.34%);
22+
-webkit-background-clip: text;
23+
-webkit-text-fill-color: transparent;
24+
}
25+
.rspress-doc > h2 {
26+
font-weight: 700;
27+
background: linear-gradient(279deg, #ff8b00 35.21%, #f93920 63.34%);
28+
-webkit-background-clip: text;
29+
-webkit-text-fill-color: transparent;
30+
}

0 commit comments

Comments
 (0)