mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +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 }}
|
||||
<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>
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue