File tree 6 files changed +19
-29
lines changed
6 files changed +19
-29
lines changed Original file line number Diff line number Diff line change 6
6
--font-mono : "Fira Mono" , monospace;
7
7
--pure-white : # ffffff ;
8
8
--primary-color : # b9c6d2 ;
9
- --secondary-color : # d0dde9 ;
9
+ --secondary-color : # 676778 ;
10
10
--tertiary-color : # edf0f8 ;
11
11
--accent-color : # ff3e00 ;
12
12
--heading-color : rgba (0 , 0 , 0 , 0.7 );
@@ -20,12 +20,6 @@ body {
20
20
min-height : 100vh ;
21
21
margin : 0 ;
22
22
background-color : var (--primary-color );
23
- background : linear-gradient (
24
- 180deg ,
25
- var (--primary-color ) 0% ,
26
- var (--secondary-color ) 10.45% ,
27
- var (--tertiary-color ) 41.35%
28
- );
29
23
}
30
24
31
25
body ::before {
Original file line number Diff line number Diff line change 21
21
role =" img"
22
22
viewBox =" 0 0 448 512"
23
23
class =" icon"
24
- ><path
24
+ >
25
+ <path
25
26
fill =" currentColor"
26
27
d =" M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"
27
- /></ svg
28
- >
28
+ />
29
+ </ svg >
29
30
</div >
30
31
<a href =" {baseUrl }/" class =" home-link" >
31
32
<img src ={logo } alt =" Logo" />
88
89
header {
89
90
display : flex ;
90
91
justify-content : space-between ;
91
- position : sticky ;
92
+ padding : 0.5em 2em ;
93
+ position : fixed ;
92
94
top : 0 ;
95
+ width : calc (100% - 4em );
93
96
z-index : 100 ;
97
+ background-color : white ;
98
+ box-shadow : 0 2px 4px rgba (0 , 0 , 0 , 0.1 );
94
99
}
95
100
96
101
.corner {
154
159
height : 100% ;
155
160
}
156
161
157
- li .active ::before {
158
- --size : 6px ;
159
- content : " " ;
160
- width : 0 ;
161
- height : 0 ;
162
- position : absolute ;
163
- top : 0 ;
164
- left : calc (50% - var (--size ));
165
- border : var (--size ) solid transparent ;
166
- border-top : var (--size ) solid var (--accent-color );
162
+ li .active > a {
163
+ color : var (--accent-color );
167
164
}
168
165
169
166
nav a {
Original file line number Diff line number Diff line change 26
26
box-sizing : border-box ;
27
27
border-right : 1px solid var (--background-without-opacity );
28
28
overflow-y : auto ;
29
+ background-color : var (--secondary-color );
29
30
}
30
31
31
32
@media (max-width : 959px ) {
Original file line number Diff line number Diff line change 52
52
}
53
53
.sidebar-menu-item ,
54
54
.sidebar-menu-item-title {
55
- color : var ( --heading-color ) ;
55
+ color : white ;
56
56
}
57
57
.sidebar-menu-item-title {
58
58
padding : 0.25rem 1rem 0.25rem 1.25rem ;
69
69
.sidebar-menu-item-title {
70
70
position : relative ;
71
71
}
72
- .sidebar-menu-item.active ,
73
- .sidebar-menu-item-title.active {
74
- color : var (--accent-color );
75
- }
76
72
.sidebar-menu-item-title.active ::before {
77
73
--size : 6px ;
78
74
content : " " ;
82
78
top : calc (50% - var (--size ));
83
79
right : 0 ;
84
80
border : var (--size ) solid transparent ;
85
- border-right : var (--size ) solid var ( --accent-color ) ;
81
+ border-right : var (--size ) solid white ;
86
82
}
87
-
88
83
a .sidebar-menu-item-title :not (.active ) {
89
84
transition : color 0.2s linear ;
90
85
}
Original file line number Diff line number Diff line change 45
45
<Footer {frontmatter } {fileInfo } />
46
46
47
47
<style >
48
+ main {
49
+ margin-top : 64px ;
50
+ }
48
51
main :not (.hidden-menu ) {
49
52
padding-left : 20rem ;
50
53
}
Original file line number Diff line number Diff line change 4
4
/* theme */
5
5
: root {
6
6
--primary-color : # ffffff ;
7
- --secondary-color : # ffffff ;
7
+ --secondary-color : # 676778 ;
8
8
--tertiary-color : # edf0f8 ;
9
9
--background-without-opacity : rgba (255 , 255 , 255 , 0.95 );
10
10
}
You can’t perform that action at this time.
0 commit comments