diff options
-rw-r--r-- | assets/_shortcodes.scss | 8 | ||||
-rw-r--r-- | assets/book.scss | 5 | ||||
-rw-r--r-- | layouts/docs/baseof.html | 2 | ||||
-rw-r--r-- | layouts/posts/baseof.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/expand.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/tabs.html | 2 |
6 files changed, 4 insertions, 17 deletions
diff --git a/assets/_shortcodes.scss b/assets/_shortcodes.scss index 70842b5..38e105f 100644 --- a/assets/_shortcodes.scss +++ b/assets/_shortcodes.scss @@ -31,10 +31,6 @@ padding: $padding-16; } - .book-expand-expander { - display: none; - } - input[type="checkbox"]:checked + .book-expand-content { display: block; } @@ -60,10 +56,6 @@ cursor: pointer; } - .book-tabs-radio { - display: none; - } - .book-tabs-content { order: 999; //Move content blocks to the end width: 100%; diff --git a/assets/book.scss b/assets/book.scss index dfbfa17..5922ab0 100644 --- a/assets/book.scss +++ b/assets/book.scss @@ -54,11 +54,6 @@ img { vertical-align: baseline; } -// hide menu checkbox with CSS -#menu-control { - display: none; -} - aside nav ul { padding: 0; margin: 0; diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index f35a6dc..eac72f1 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -7,7 +7,7 @@ </head> <body> - <input type="checkbox" id="menu-control" /> + <input type="checkbox" class="hidden" id="menu-control" /> <main class="flex container"> <aside class="book-menu fixed"> diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html index 9821118..8d8c30a 100644 --- a/layouts/posts/baseof.html +++ b/layouts/posts/baseof.html @@ -7,7 +7,7 @@ </head> <body> - <input type="checkbox" id="menu-control" /> + <input type="checkbox" class="hidden" id="menu-control" /> <main class="flex container"> <aside class="book-menu fixed"> {{ partial "docs/menu" . }} diff --git a/layouts/shortcodes/expand.html b/layouts/shortcodes/expand.html index d6b7522..4519767 100644 --- a/layouts/shortcodes/expand.html +++ b/layouts/shortcodes/expand.html @@ -4,7 +4,7 @@ <span>{{ default "Expand" (.Get 0) }}</span> <span>{{ default "↕" (.Get 1) }}</span> </div> - <input type="checkbox" class="book-expand-expander" /> + <input type="checkbox" class="hidden" /> <div class="book-expand-content markdown-inner"> {{ .Inner | markdownify }} </div> diff --git a/layouts/shortcodes/tabs.html b/layouts/shortcodes/tabs.html index c49b141..9431af5 100644 --- a/layouts/shortcodes/tabs.html +++ b/layouts/shortcodes/tabs.html @@ -4,7 +4,7 @@ <div class="book-tabs"> {{ range $index, $tab := .Scratch.Get $group }} - <input type="radio" class="book-tabs-radio" name="{{ $group }}" id="{{ printf "%s-%d" $group $index }}" {{ if not $index }}checked="checked"{{ end }} /> + <input type="radio" class="hidden" name="{{ $group }}" id="{{ printf "%s-%d" $group $index }}" {{ if not $index }}checked="checked"{{ end }} /> <label for="{{ printf "%s-%d" $group $index }}"> {{ $tab.Name }} </label> |