@@ -220,14 +220,20 @@ details[open] {
220220 --inline-code-bg : # 191f26 ;
221221}
222222
223- . theme-dropdown {
223+ # settings {
224224 position : absolute;
225225 margin : 0.7em ;
226226 z-index : 10 ;
227+ display : flex;
228+ }
229+
230+ .menu-container {
231+ position : relative;
232+ width : 28px ;
227233}
228234
229235/* Applying the mdBook theme */
230- .theme-icon {
236+ .theme-icon , . settings-icon {
231237 text-align : center;
232238 width : 2em ;
233239 height : 2em ;
@@ -237,10 +243,10 @@ details[open] {
237243 user-select : none;
238244 cursor : pointer;
239245}
240- .theme-icon : hover {
246+ .theme-icon : hover , . settings-icon : hover {
241247 background : var (--theme-hover );
242248}
243- .theme-choice {
249+ .theme-choice , . settings-choice {
244250 display : none;
245251 list-style : none;
246252 border : 1px solid var (--theme-popup-border );
@@ -249,9 +255,46 @@ details[open] {
249255 background : var (--theme-popup-bg );
250256 padding : 0 0 ;
251257 overflow : hidden;
258+ position : absolute;
259+ }
260+
261+ .settings-dropdown {
262+ margin-left : 4px ;
263+ }
264+
265+ .settings-icon ::before {
266+ /* Wheel <https://www.svgrepo.com/svg/384069/settings-cog-gear> */
267+ content : url ('data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 12 12" \
268+ enable-background= "new 0 0 12 12" xmlns="http://www.w3.org/2000/svg">\
269+ <path d= "M10.25,6c0-0.1243286-0.0261841-0.241333-0.0366211-0.362915l1.6077881-1.5545654l\
270+ -1.25 -2.1650391 c0, 0 -1.2674561 , 0.3625488 -2.1323853 , 0.6099854 c-0.2034912-0.1431885-0.421875\
271+ -0.2639771 -0.6494751 -0.3701782 L7.25, 0 h-2.5 c0, 0 -0.3214111 , 1.2857666 -0.5393066 , 2.1572876 \
272+ C3.9830933 , 2.2634888 , 3.7647095 , 2.3842773 , 3.5612183 , 2.5274658 L1.428833, 1.9174805 \
273+ l-1.25 , 2.1650391 c0, 0 , 0.9641113 , 0.9321899 , 1.6077881 , 1.5545654 C1.7761841, 5.758667 , \
274+ 1.75 , 5.8756714 , 1.75 , 6 s0.0261841, 0.241333 , 0.0366211 , 0.362915 L0.178833, 7.9174805 l1.25, \
275+ 2.1650391 l2.1323853-0.6099854 c0.2034912, 0.1432495 , 0.421875 , 0.2639771 , 0.6494751 , 0.3701782 \
276+ L4.75 , 12 h2.5l0.5393066-2.1572876 c0.2276001-0.1062012, 0.4459839 -0.2269287 , 0.6494751 \
277+ -0.3701782 l2.1323853, 0.6099854 l1.25-2.1650391L10.2133789, 6.362915 C10.2238159, 6.241333 , \
278+ 10.25 , 6.1243286 , 10.25 , 6z M6, 7.5 C5.1715698, 7.5 , 4.5 , 6.8284302 , 4.5 , 6 S5.1715698, 4.5 , 6 , 4.5 S7.5\
279+ , 5.1715698 , 7.5 , 6 S6.8284302, 7.5 , 6 , 7.5 z" fill="black"/></svg>');
280+ width : 18px ;
281+ height : 18px ;
282+ display : block;
283+ filter : invert (0.7 );
284+ padding-left : 4px ;
285+ padding-top : 3px ;
286+ }
287+
288+ .settings-choice {
289+ padding : 4px ;
290+ width : 212px ;
291+ }
292+
293+ .settings-choice label {
294+ cursor : pointer;
252295}
253296
254- .theme-dropdown .open .theme-choice {
297+ .theme-dropdown .open .theme-choice , . settings-dropdown . open . settings-choice {
255298 display : block;
256299}
257300
0 commit comments