theme: IE11 compat for theme switch #178

This commit is contained in:
Sören Weber 2022-02-13 12:49:45 +01:00
parent 8385ea78b4
commit 5ff752e441
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
2 changed files with 28 additions and 15 deletions

View file

@ -14,6 +14,21 @@
{{- range .Site.Params.custom_css }} {{- range .Site.Params.custom_css }}
<link href="{{(printf "%s" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet"> <link href="{{(printf "%s" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
{{- end }} {{- end }}
<style>
:root #header + #content > #left > #rlblock_left{
display:none !important;
}
{{- if .Site.Params.disableInlineCopyToClipBoard }}
:not(pre) > code.copy-to-clipboard-inline + span.copy-to-clipboard {
display: none;
}
:not(pre) > code.copy-to-clipboard-inline {
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
border-right-width: 1px;
}
{{- end }}
</style>
<script> <script>
// we need to define this script in the head to avoid flickering an // we need to define this script in the head to avoid flickering an
// page load if the user has selected a non default variant // page load if the user has selected a non default variant
@ -66,19 +81,4 @@
} }
} }
</script> </script>
<style>
:root #header + #content > #left > #rlblock_left{
display:none !important;
}
{{- if .Site.Params.disableInlineCopyToClipBoard }}
:not(pre) > code.copy-to-clipboard-inline + span.copy-to-clipboard {
display: none;
}
:not(pre) > code.copy-to-clipboard-inline {
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
border-right-width: 1px;
}
{{- end }}
</style>
<script src="{{"js/jquery.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script> <script src="{{"js/jquery.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>

View file

@ -1395,6 +1395,9 @@ h6 a {
display: block; display: block;
float: left; float: left;
} }
#sidebar .select-container span {
display: none;
}
.select-style { .select-style {
border: 0; border: 0;
@ -1416,10 +1419,20 @@ h6 a {
outline: none; outline: none;
} }
.select-style select::-ms-expand {
display: none;
}
.select-style :hover { .select-style :hover {
cursor: pointer; cursor: pointer;
} }
.select-style option {
color: #000000;
padding: 0;
margin: 0;
}
@media only all and (max-width: 47.938em) { @media only all and (max-width: 47.938em) {
#breadcrumbs .links, #top-github-link-text { #breadcrumbs .links, #top-github-link-text {
display: none; display: none;