File tree Expand file tree Collapse file tree 2 files changed +65
-1
lines changed
_sass/minimal-mistakes/minimal-mistakes Expand file tree Collapse file tree 2 files changed +65
-1
lines changed Original file line number Diff line number Diff line change 22
22
</ ul >
23
23
{% if site.search == true %}
24
24
< button class ="search__toggle " type ="button ">
25
- < span id ="searchHint " class =""> {{ site.data.ui-text[site.locale].search_label | default: "Toggle search (Shift + Ctrl + F or ESC to close)" }}</ span >
25
+ < span id ="searchHint " class =""> {{ site.data.ui-text[site.locale].search_label | default: "Toggle search (Shift + Ctrl
26
+ + F or ESC to close)" }}</ span >
26
27
< i class ="fas fa-search "> </ i >
27
28
</ button >
28
29
{% endif %}
30
+ {% if site.skin_switchable == true %}
31
+ < span class ="skin__toggle_img "> < i class ="fa fa-sun-o "> </ i > </ span >
32
+ < button class ="skin__toggle " type ="button ">
33
+ <!-- <span id="skinHint" class="">{{ site.data.ui-text[site.locale].search_label | default: "Toggle search (Shift + Ctrl
34
+ + F or ESC to close)" }}</span> -->
35
+ < i class ="fa fa-toggle-off "> </ i >
36
+ </ button >
37
+ < span class ="skin__toggle_img "> < i class ="fa fa-moon-o "> </ i > </ span >
38
+ {% endif %}
29
39
< button class ="greedy-nav__toggle hidden " type ="button ">
30
40
< span class ="visually-hidden "> {{ site.data.ui-text[site.locale].menu_label | default: "Toggle menu" }}</ span >
31
41
< div class ="navicon "> </ div >
Original file line number Diff line number Diff line change 96
96
font-weight : 700 ;
97
97
}
98
98
}
99
+
100
+ .skin__toggle {
101
+ position : relative ;
102
+ display : inline-block ;
103
+ margin-left : 1rem ;
104
+ margin-right : 1rem ;
105
+ height : $nav-toggle-height ;
106
+ border : 0 ;
107
+ outline : none ;
108
+ color : $primary-color ;
109
+ background-color : transparent ;
110
+ cursor : pointer ;
111
+ -webkit-transition : 0.2s ;
112
+ transition : 0.2s ;
113
+
114
+ & :hover {
115
+ color : mix (#000 , $primary-color , 25% );
116
+ }
117
+ }
118
+
119
+ .skin-icon {
120
+ width : 100% ;
121
+ height : 100% ;
122
+ }
123
+
124
+ .skin__toggle_img {
125
+ position : relative ;
126
+ display : inline-block ;
127
+ margin-left : 0rem ;
128
+ margin-right : 0rem ;
129
+ width : calc ($nav-toggle-height * 0.75 );
130
+ height : calc ($nav-toggle-height * 0.75 );
131
+ border : 0 ;
132
+ outline : none ;
133
+ color : $primary-color ;
134
+ background-color : transparent ;
135
+ -webkit-transition : 0.2s ;
136
+ transition : 0.2s ;
137
+
138
+ & :hover {
139
+ color : mix (#000 , $primary-color , 25% );
140
+ }
141
+ }
142
+
143
+ #skinHint {
144
+ display : none ;
145
+ position : absolute ;
146
+ top : 50% ;
147
+ transform : translateY (-50% );
148
+ left : -110px ;
149
+ max-width : 100px ;
150
+ font-size : 12px ;
151
+ margin-left : 10px ;
152
+ }
You can’t perform that action at this time.
0 commit comments