Verified Commit 1659d391 authored by Adam Matoušek's avatar Adam Matoušek
Browse files

hide the theme selector using CSS rather than ‹hidden›

parent 95dafa39
......@@ -30,5 +30,5 @@ if ( tsel ) {
document.firstElementChild.dataset.theme = t;
};
}
tsel.hidden = false;
tsel.style = null;
}
<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 %]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment