mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
theme: IE11 compat for theme switch #178
This commit is contained in:
parent
8385ea78b4
commit
5ff752e441
2 changed files with 28 additions and 15 deletions
|
@ -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>
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue