Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Adam Matoušek
BLO👏GÍ👏SEK
Commits
1659d391
Verified
Commit
1659d391
authored
Oct 15, 2022
by
Adam Matoušek
Browse files
hide the theme selector using CSS rather than ‹hidden›
parent
95dafa39
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/blogisek.js
View file @
1659d391
...
...
@@ -30,5 +30,5 @@ if ( tsel ) {
document
.
firstElementChild
.
dataset
.
theme
=
t
;
};
}
tsel
.
hidden
=
false
;
tsel
.
style
=
null
;
}
templates/nav.tt
View file @
1659d391
<div>
<nav id=theme-selector hidden>
<nav id=theme-selector
style='visibility:
hidden
'
>
<button tabindex=0 data-theme=auto title='Motiv dle systému'></button>
<button tabindex=0 data-theme=light title='Světlý'></button>
<button tabindex=0 data-theme=dark title='Tmavý'></button>
<button tabindex=0 data-theme=mixed title='Smíšený'></button>
</nav>
<script>document.getElementById('theme-selector').hidden=0;</script>
<nav id=category-archives>
<header>Škatulky</header>
[%- INCLUDE archive a=categories %]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment