File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313}
1414
1515.logo ,
16- # menu {
16+ . menu {
1717 display : flex;
1818 margin : auto var (--gap );
1919}
3636 margin-inline-end : 8px ;
3737}
3838
39- button # theme-toggle {
39+ . theme-toggle {
4040 font-size : 26px ;
4141 margin : auto 4px ;
4242}
4343
44- [data-theme = "dark" ] # moon {
44+ [data-theme = "dark" ] . moon {
4545 display : none;
4646}
4747
48- [data-theme = "light" ] # sun {
48+ [data-theme = "light" ] . sun {
4949 display : none;
5050}
5151
52- # menu {
52+ . menu {
5353 list-style : none;
5454 word-break : keep-all;
5555 overflow-x : auto;
5656 white-space : nowrap;
5757}
5858
59- # menu li + li {
59+ . menu li + li {
6060 margin-inline-start : var (--gap );
6161}
6262
63- # menu a {
63+ . menu a {
6464 font-size : 16px ;
6565}
6666
67- # menu .active {
67+ . menu .active {
6868 font-weight : 500 ;
6969 border-bottom : 2px solid currentColor;
7070}
Original file line number Diff line number Diff line change 1- # searchbox input {
1+ . searchbox input {
22 padding : 4px 10px ;
33 width : 100% ;
44 color : var (--primary );
77 border-radius : var (--radius );
88}
99
10- # searchbox input : focus {
10+ . searchbox input : focus {
1111 border-color : var (--secondary );
1212}
1313
14- # searchResults li {
14+ . searchResults li {
1515 list-style : none;
1616 border-radius : var (--radius );
1717 padding : 10px ;
2020 font-weight : 500 ;
2121}
2222
23- # searchResults {
23+ . searchResults {
2424 margin : 10px 0 ;
2525 width : 100% ;
2626}
2727
28- # searchResults li : active {
28+ . searchResults li : active {
2929 transition : transform 0.1s ;
3030 transform : scale (0.98 );
3131}
3232
33- # searchResults a {
33+ . searchResults a {
3434 position : absolute;
3535 width : 100% ;
3636 height : 100% ;
3737 top : 0px ;
3838 left : 0px ;
3939}
4040
41- # searchResults .focus {
41+ . searchResults .focus {
4242 transform : scale (0.98 );
4343 border : 2px solid var (--tertiary );
4444}
Original file line number Diff line number Diff line change 4848 .button : active ,
4949 .post-entry : active ,
5050 .top-link ,
51- # searchResults .focus ,
52- # searchResults li : active {
51+ . searchResults .focus ,
52+ . searchResults li : active {
5353 transform : none;
5454 }
5555}
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ <h1>{{- (printf "%s " .Title ) | htmlUnescape -}}
2020 {{- end }}
2121</ header >
2222
23- < div id ="searchbox ">
23+ < div id ="searchbox " class =" searchbox " >
2424 < input id ="searchInput " autofocus placeholder ="{{ .Params.placeholder | default (printf "%s ↵ " .Title) }}"
2525 aria-label="search " type ="search " autocomplete ="off " maxlength ="64 ">
26- < ul id ="searchResults " aria-label ="search results "> </ ul >
26+ < ul id ="searchResults " class =" searchResults " aria-label ="search results "> </ ul >
2727</ div >
2828
2929{{- end }}{{/* end main */}}
Original file line number Diff line number Diff line change 3333 {{- end }}
3434 < div class ="logo-switches ">
3535 {{- if (not site.Params.disableThemeToggle) }}
36- < button id ="theme-toggle " accesskey ="t " title ="(Alt + T) " aria-label ="Toggle theme ">
37- < svg id ="moon " xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="18 " viewBox ="0 0 24 24 "
36+ < button id ="theme-toggle " class =" theme-toggle " accesskey ="t " title ="(Alt + T) " aria-label ="Toggle theme ">
37+ < svg class ="moon " xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="18 " viewBox ="0 0 24 24 "
3838 fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round "
3939 stroke-linejoin ="round ">
4040 < path d ="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z "> </ path >
4141 </ svg >
42- < svg id ="sun " xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="18 " viewBox ="0 0 24 24 "
42+ < svg class ="sun " xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="18 " viewBox ="0 0 24 24 "
4343 fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round "
4444 stroke-linejoin ="round ">
4545 < circle cx ="12 " cy ="12 " r ="5 "> </ circle >
8181 </ div >
8282 </ div >
8383 {{- $currentPage := . }}
84- < ul id ="menu ">
84+ < ul id ="menu " class =" menu " >
8585 {{- range site.Menus.main }}
8686 {{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }}
8787 {{- $page_url:= $currentPage.Permalink | absLangURL }}
You can’t perform that action at this time.
0 commit comments