Fix all the build errors
This commit is contained in:
parent
7ba65229b6
commit
34ec240dc0
6 changed files with 63 additions and 27 deletions
22
assets/css/typography.css
Normal file
22
assets/css/typography.css
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{{/*
|
||||
typography.css
|
||||
Eryn Wells <eryn@erynwells.me>
|
||||
vim: set sw=2 sts=2:
|
||||
*/}}
|
||||
|
||||
{{- $fontSizeBase := 1 -}}
|
||||
{{- $fontSizeUnit := "rem" -}}
|
||||
{{- $fontSizeFactor := 1.200 -}}
|
||||
|
||||
{{- $scale := partial "size_scale.html" . -}}
|
||||
|
||||
:root {
|
||||
{{- range $scale -}}
|
||||
{{ $value := mul $fontSizeBase (math.Pow $fontSizeFactor .Value) }}
|
||||
--font-size-{{ .Name }}: {{ printf "%.3f" $value }}{{ $fontSizeUnit }};
|
||||
{{- end }}
|
||||
}
|
||||
|
||||
{{ range $scale }}
|
||||
.font-size-{{ .Name }} { font-size: var(--font-size-{{ .Name }}); }
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue