File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858< div class ="sidebar-bottom d-flex justify-content-around mt-4 ">
5959
6060 {% if site.theme_mode == "dual" %}
61- < span id ="mode-toggle-wrapper " class =" d-flex justify-content-center align-items-center " >
61+ < span id ="mode-toggle-wrapper ">
6262 {% include mode-toggle.html %}
6363 </ span >
6464 {% endif %}
Original file line number Diff line number Diff line change 1111@import " _fonts" ;
1212@import " _dark/dark-main" ;
1313
14+ @mixin sidebar-icon {
15+ color : rgba (255 , 255 , 255 , 0.5 );
16+ transition : color 0.35s ease-in-out ;
17+ user-select : none ;
18+ }
19+
20+ @mixin icon-round ($diameter ) {
21+ border : 1px solid ;
22+ border-radius : 50% ;
23+ width : $diameter ;
24+ height : $diameter ;
25+ }
26+
1427html , body {
1528 height : 100% ;
1629 font-size : 16px ;
4962}
5063
5164#sidebar a {
52- color : rgba (255 , 255 , 255 , 0.5 );
53- transition : color 0.35s ease-in-out ;
65+ @include sidebar-icon ;
5466}
5567
5668#sidebar .nav-item {
@@ -237,17 +249,20 @@ body {
237249}
238250
239251#mode-toggle-wrapper {
240- color : rgb ( 103 , 107 , 109 ) ;
252+ @include sidebar-icon ;
241253 font-size : 1.05rem ;
242- user-select : none ;
243- transition : color 0.35s ease-in-out ;
254+ text-align : center ;
244255}
245256
246- #sidebar # mode-toggle-wrapper> i ::after {
257+ #mode-toggle-wrapper ::after {
247258 content : " " ;
248- color : #525354 ;
249- border-right : 1px solid ;
250- padding-left : .6rem ;
259+ background : #525354 ;
260+ width : 1px ;
261+ height : 8px ;
262+ margin-left : 7px ;
263+ margin-right : -6px ;
264+ margin-bottom : 3px ;
265+ display : inline-block ;
251266}
252267
253268
@@ -1370,10 +1385,7 @@ table tbody td {
13701385 }
13711386
13721387 #sidebar .nav-link >i {
1373- border : 1px solid ;
1374- border-radius : 50% ;
1375- width : 1.65rem ;
1376- height : 1.65rem ;
1388+ @include icon-round (1.65rem );
13771389 line-height : 1rem ;
13781390 font-size : .6rem ;
13791391 padding : .5em 0 0 .1em ;
@@ -1382,7 +1394,7 @@ table tbody td {
13821394
13831395 .sidebar-bottom {
13841396 margin-left : 3.5rem ;
1385- margin-right : 4.5 rem ;
1397+ margin-right : 3 rem ;
13861398 font-size : 1.3rem ;
13871399 padding-bottom : 1rem ;
13881400 }
@@ -1403,7 +1415,17 @@ table tbody td {
14031415 }
14041416
14051417 #mode-toggle-wrapper {
1406- font-size : 1.6rem ;
1418+ font-size : .9rem ;
1419+ }
1420+
1421+ #mode-toggle-wrapper >i {
1422+ @include icon-round (2rem );
1423+ padding-top : 0.5rem ;
1424+ }
1425+
1426+ #mode-toggle-wrapper ::after {
1427+ height : 14px ;
1428+ margin-bottom : 0 ;
14071429 }
14081430
14091431 footer >div .d-flex {
You can’t perform that action at this time.
0 commit comments