Attempt to implement a feature flag to toggle CSS layers on and off
This commit is contained in:
parent
4f63fab916
commit
4cedd992b8
4 changed files with 29 additions and 9 deletions
4
layouts/partials/css/layer.html
Normal file
4
layouts/partials/css/layer.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{- $enabled := partial "flag_is_enabled.html" "cssLayers" -}}
|
||||
{{ if $enabled -}}{{ printf "@layer %s {" . }}{{- end }}
|
||||
{{ .Inner }}
|
||||
{{ if $enabled -}}{{ `}` }}{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue