mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 11:05:16 +02:00
feat: add CSS postprocessing support
Enabled with env `WC_POST_CSS="true"`
This commit is contained in:
parent
468d327370
commit
362cb1510b
2 changed files with 8 additions and 1 deletions
|
@ -42,6 +42,10 @@
|
||||||
margin-right: -15px;
|
margin-right: -15px;
|
||||||
margin-left: -15px;
|
margin-left: -15px;
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
padding: 0.8rem 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.docs-search .form-control:focus {
|
.docs-search .form-control:focus {
|
||||||
|
@ -127,7 +131,7 @@
|
||||||
/* Docs links. */
|
/* Docs links. */
|
||||||
|
|
||||||
.docs-toggle {
|
.docs-toggle {
|
||||||
line-height: 1;
|
line-height: 1.5;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
color: $sta-primary;
|
color: $sta-primary;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
|
@ -158,6 +158,9 @@
|
||||||
{{- $style = $style | minify -}}
|
{{- $style = $style | minify -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ $style := slice $css_bundle_head $style | resources.Concat "css/wowchemy.css" }}
|
{{ $style := slice $css_bundle_head $style | resources.Concat "css/wowchemy.css" }}
|
||||||
|
{{- if eq (getenv "WC_POST_CSS") "true" -}}
|
||||||
|
{{- $style = $style | postCSS -}}
|
||||||
|
{{- end -}}
|
||||||
{{- if eq hugo.Environment "production" -}}
|
{{- if eq hugo.Environment "production" -}}
|
||||||
{{- $style = $style | fingerprint "md5" -}}
|
{{- $style = $style | fingerprint "md5" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue