File tree 3 files changed +22
-8
lines changed
3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 70
70
display : none;
71
71
}
72
72
73
+ # theme-button {
74
+ position : absolute;
75
+ right : 30px ;
76
+ height : 24px ;
77
+ }
78
+
73
79
# theme-button .material-symbols-outlined {
74
- padding-top : 6px ;
75
80
color : var (--main-icon-color );
76
81
user-select : none;
77
82
cursor : pointer;
78
83
}
79
84
85
+ .light-theme # light-theme-button {
86
+ display : none;
87
+ }
88
+
89
+ .dark-theme # dark-theme-button {
90
+ display : none;
91
+ }
92
+
80
93
/*
81
94
Only show images that fit their theme using GitHub's syntax, see:
82
95
https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/
@@ -953,11 +966,6 @@ button {
953
966
padding-right : 60px ;
954
967
}
955
968
956
- # theme-button {
957
- position : absolute;
958
- right : 30px ;
959
- }
960
-
961
969
.tt-menu {
962
970
position : absolute;
963
971
top : 100% ;
Original file line number Diff line number Diff line change @@ -3126,9 +3126,12 @@ String _deduplicated_lib_templates_html__head_html(
3126
3126
<div class="toggle" id="theme-button">
3127
3127
<label for="theme">
3128
3128
<input type="checkbox" id="theme" value="light-theme">
3129
- <span class="material-symbols-outlined">
3129
+ <span id="dark-theme-button" class="material-symbols-outlined">
3130
3130
brightness_4
3131
3131
</span>
3132
+ <span id="light-theme-button" class="material-symbols-outlined">
3133
+ brightness_5
3134
+ </span>
3132
3135
</label>
3133
3136
</div>
3134
3137
</header>
Original file line number Diff line number Diff line change 60
60
< div class ="toggle " id ="theme-button ">
61
61
< label for ="theme ">
62
62
< input type ="checkbox " id ="theme " value ="light-theme ">
63
- < span class ="material-symbols-outlined ">
63
+ < span id =" dark-theme-button " class ="material-symbols-outlined ">
64
64
brightness_4
65
65
</ span >
66
+ < span id ="light-theme-button " class ="material-symbols-outlined ">
67
+ brightness_5
68
+ </ span >
66
69
</ label >
67
70
</ div >
68
71
</ header >
You can’t perform that action at this time.
0 commit comments