@@ -4,9 +4,27 @@ Variables to be used throughout site
44/*
55Set your website theme here.
66*/
7+ [data-theme = light ] {
8+ --primary-bg : # ffffff ;
9+ --secondary-bg : # 7dd4db ;
10+ --tertiary-bg : # 4fb9c1 ;
11+ --primary-fg : # 000000 ;
12+ --secondary-fg : # 9b4d5f ;
13+ --tertiary-fg : # b85b74 ;
14+ }
15+
16+ [data-theme = dark ] {
17+ --primary-bg : # 2e2c2c ;
18+ --secondary-bg : # 10555a ;
19+ --tertiary-bg : # 1c8991 ;
20+ --primary-fg : # ffffff ;
21+ --secondary-fg : # df6dc2 ;
22+ --tertiary-fg : # b925b2 ;
23+ }
24+
725.masthead {
826 position : relative;
9- border-bottom : 2px solid # 048594 ;
27+ border-bottom : 2px solid var ( --secondary-bg ) ;
1028 padding-left : 6% ;
1129}
1230.masthead nav {
@@ -24,7 +42,7 @@ Set your website theme here.
2442 display : inline-block;
2543}
2644.masthead nav .author-name-nav li a {
27- color : # b81149 ;
45+ color : var ( --secondary-fg ) ;
2846 text-decoration : none;
2947 font-size : 20px ;
3048 font-weight : bold;
@@ -44,7 +62,7 @@ Set your website theme here.
4462 display : inline-block;
4563}
4664.masthead nav .desktop-nav li a {
47- color : # 000000 ;
65+ color : var ( --primary-fg ) ;
4866 text-decoration : none;
4967 font-size : 20px ;
5068 font-weight : bold;
@@ -57,6 +75,23 @@ Set your website theme here.
5775 margin-right : 7px ;
5876 transition : color 0.3s ease;
5977}
78+ .masthead nav .theme-switch {
79+ margin-left : auto;
80+ margin-right : 1rem ;
81+ display : block;
82+ float : right;
83+ }
84+ .masthead nav .theme-switch .theme-toggle {
85+ background : none;
86+ border : none;
87+ color : var (--text-color );
88+ cursor : pointer;
89+ font-size : 1.2rem ;
90+ padding : 0.5rem ;
91+ }
92+ .masthead nav .theme-switch .theme-toggle .hover {
93+ opacity : 0.8 ;
94+ }
6095.masthead nav .mobile-nav {
6196 display : none;
6297}
@@ -80,7 +115,7 @@ Set your website theme here.
80115 display : block;
81116 }
82117 .masthead nav .mobile-nav li a {
83- color : # 000000 ;
118+ color : var ( --primary-fg ) ;
84119 text-decoration : none;
85120 font-size : 20px ;
86121 font-weight : bold;
0 commit comments