summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorPaul Twohey <twohey@users.noreply.github.com>2019-08-31 18:38:16 -0700
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-09-01 20:51:15 +0200
commit964968be39f7d70c12c41eb77c51e94e1c2ccd6a (patch)
tree49f1588411249a07038a05439a3b101cd78e5a10 /layouts/shortcodes
parent438f011ff52da9f09dfacd83c9693ee9ab07e7f8 (diff)
use class="hidden" instead of creating new classes
Use class "hidden" instead of styled classes to ensure that input elments stay hidden when the Content-Security-Policy header has "style-src 'self';"
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/expand.html2
-rw-r--r--layouts/shortcodes/tabs.html2
2 files changed, 2 insertions, 2 deletions
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>