Move custom style declaration to baseof
This ensures that custom style takes precedent over theme styles. Useful when overriding theme styles for, e.g., single page. Signed-off-by: Marek Pikuła <[email protected]>
This commit is contained in:
@@ -4,6 +4,12 @@
|
|||||||
<head>
|
<head>
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
{{- block "head" . }} {{- end }}
|
{{- block "head" . }} {{- end }}
|
||||||
|
|
||||||
|
<!-- Custom Styles -->
|
||||||
|
{{ if .Site.Params.customCSS }}
|
||||||
|
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/style.css">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{{- block "title" . }} {{- end }}
|
{{- block "title" . }} {{- end }}
|
||||||
</title>
|
</title>
|
||||||
@@ -33,4 +39,4 @@
|
|||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -40,11 +40,6 @@
|
|||||||
<!-- theme -->
|
<!-- theme -->
|
||||||
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/theme.css" media="all">
|
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/theme.css" media="all">
|
||||||
|
|
||||||
<!-- Custom Styles -->
|
|
||||||
{{ if .Site.Params.customCSS }}
|
|
||||||
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/style.css">
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }};
|
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }};
|
||||||
@@ -78,11 +73,11 @@
|
|||||||
width: 8px;
|
width: 8px;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
background: #b0b0b0;
|
background: #b0b0b0;
|
||||||
@@ -96,4 +91,4 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{{ partial "head/extensions.html" . }}
|
{{ partial "head/extensions.html" . }}
|
||||||
|
|||||||
Reference in New Issue
Block a user