Compare commits

...

2 Commits

Author SHA1 Message Date
iGor milhit 83f45fefff
scss: improve the scss pipe
- Adds the fingerprint of the processed css files.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-12-07 07:52:31 +01:00
iGor milhit 0c6ae76ed9
scss: get rid of the webkit audio rounded corner
- Gets rid of the webkit audio rounded corner, to harmonize the style
  across web browsers.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-11-22 18:24:14 +01:00
2 changed files with 9 additions and 4 deletions

View File

@ -7,6 +7,11 @@
@use "@picocss/pico/scss/colors/index" as *;
/* To remove the rounded corner of the webkit audio player */
audio::-webkit-media-controls-enclosure {
border-radius: 0;
}
.audio,
.stream {
border: var(--pico-border-width) solid $purple-200 ;

View File

@ -18,12 +18,12 @@
"targetPath" "styles.css"
"includePaths" (slice "node_modules")
) -}}
{{- $styles := resources.Get "scss/main.scss" | toCSS $options | minify -}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
{{- $styles := resources.Get "scss/main.scss" | toCSS $options | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
{{- end }}
{{ $options := (dict "targetPath" "print.css" ) -}}
{{- $print := resources.Get "css/gutenberg.css" | toCSS $options | minify -}}
<link rel="stylesheet" href="{{ $print.Permalink }}" media="print">
{{- $print := resources.Get "css/gutenberg.css" | toCSS $options | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $print.Permalink }}" integrity="{{ $print.Data.Integrity }}" media="print">
{{ range .AlternativeOutputFormats }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}