From 964968be39f7d70c12c41eb77c51e94e1c2ccd6a Mon Sep 17 00:00:00 2001 From: Paul Twohey Date: Sat, 31 Aug 2019 18:38:16 -0700 Subject: [PATCH] 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';" --- assets/_shortcodes.scss | 8 -------- assets/book.scss | 5 ----- layouts/docs/baseof.html | 2 +- layouts/posts/baseof.html | 2 +- layouts/shortcodes/expand.html | 2 +- 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 @@ - +