File tree Expand file tree Collapse file tree 6 files changed +19
-29
lines changed Expand file tree Collapse file tree 6 files changed +19
-29
lines changed Original file line number Diff line number Diff line change 66 --font-mono : "Fira Mono" , monospace;
77 --pure-white : # ffffff ;
88 --primary-color : # b9c6d2 ;
9- --secondary-color : # d0dde9 ;
9+ --secondary-color : # 676778 ;
1010 --tertiary-color : # edf0f8 ;
1111 --accent-color : # ff3e00 ;
1212 --heading-color : rgba (0 , 0 , 0 , 0.7 );
@@ -20,12 +20,6 @@ body {
2020 min-height : 100vh ;
2121 margin : 0 ;
2222 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- );
2923}
3024
3125body ::before {
Original file line number Diff line number Diff line change 2121 role =" img"
2222 viewBox =" 0 0 448 512"
2323 class =" icon"
24- ><path
24+ >
25+ <path
2526 fill =" currentColor"
2627 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 >
2930 </div >
3031 <a href =" {baseUrl }/" class =" home-link" >
3132 <img src ={logo } alt =" Logo" />
8889 header {
8990 display : flex ;
9091 justify-content : space-between ;
91- position : sticky ;
92+ padding : 0.5em 2em ;
93+ position : fixed ;
9294 top : 0 ;
95+ width : calc (100% - 4em );
9396 z-index : 100 ;
97+ background-color : white ;
98+ box-shadow : 0 2px 4px rgba (0 , 0 , 0 , 0.1 );
9499 }
95100
96101 .corner {
154159 height : 100% ;
155160 }
156161
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 );
167164 }
168165
169166 nav a {
Original file line number Diff line number Diff line change 2626 box-sizing : border-box ;
2727 border-right : 1px solid var (--background-without-opacity );
2828 overflow-y : auto ;
29+ background-color : var (--secondary-color );
2930 }
3031
3132 @media (max-width : 959px ) {
Original file line number Diff line number Diff line change 5252 }
5353 .sidebar-menu-item ,
5454 .sidebar-menu-item-title {
55- color : var ( --heading-color ) ;
55+ color : white ;
5656 }
5757 .sidebar-menu-item-title {
5858 padding : 0.25rem 1rem 0.25rem 1.25rem ;
6969 .sidebar-menu-item-title {
7070 position : relative ;
7171 }
72- .sidebar-menu-item.active ,
73- .sidebar-menu-item-title.active {
74- color : var (--accent-color );
75- }
7672 .sidebar-menu-item-title.active ::before {
7773 --size : 6px ;
7874 content : " " ;
8278 top : calc (50% - var (--size ));
8379 right : 0 ;
8480 border : var (--size ) solid transparent ;
85- border-right : var (--size ) solid var ( --accent-color ) ;
81+ border-right : var (--size ) solid white ;
8682 }
87-
8883 a .sidebar-menu-item-title :not (.active ) {
8984 transition : color 0.2s linear ;
9085 }
Original file line number Diff line number Diff line change 4545<Footer {frontmatter } {fileInfo } />
4646
4747<style >
48+ main {
49+ margin-top : 64px ;
50+ }
4851 main :not (.hidden-menu ) {
4952 padding-left : 20rem ;
5053 }
Original file line number Diff line number Diff line change 44/* theme */
55: root {
66 --primary-color : # ffffff ;
7- --secondary-color : # ffffff ;
7+ --secondary-color : # 676778 ;
88 --tertiary-color : # edf0f8 ;
99 --background-without-opacity : rgba (255 , 255 , 255 , 0.95 );
1010}
You can’t perform that action at this time.
0 commit comments