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';"
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user