mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-11 01:31:37 -05:00
Hide code block copy button when JavaScript is disabled
This commit is contained in:
3
assets/css/noscript.css
Normal file
3
assets/css/noscript.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.code-copy-button {
|
||||||
|
display: none;
|
||||||
|
}
|
@@ -6,6 +6,12 @@
|
|||||||
{{ with resources.Get "css/bobastyle.css" | fingerprint "sha512" }}
|
{{ with resources.Get "css/bobastyle.css" | fingerprint "sha512" }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with resources.Get "css/noscript.css" | fingerprint "sha512" }}
|
||||||
|
<noscript>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
</noscript>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with resources.Get "css/syntax.css" | fingerprint "sha512" }}
|
{{ with resources.Get "css/syntax.css" | fingerprint "sha512" }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user