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 }}
<link href="{{(printf "%s" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
{{- 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>
// we need to define this script in the head to avoid flickering an
// page load if the user has selected a non default variant
@ -66,19 +81,4 @@
}
}
</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>

View file

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