Skip to content

Commit

Permalink
builds with bulma 1.0.1 but browser dark mode changes some colours. R…
Browse files Browse the repository at this point in the history
…equires dart-sass binary (not npm install).
  • Loading branch information
domw95 committed Jul 27, 2024
1 parent 8696eee commit 332dc40
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 0 additions & 2 deletions assets/style.sass

This file was deleted.

2 changes: 2 additions & 0 deletions assets/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@use "../../bulma/sass";
@use "fresh/core";
20 changes: 11 additions & 9 deletions layouts/partials/css.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{{- $inServerMode := .Site.IsServer }}
{{- $sass := "style.sass" }}
{{- $cssTarget := "css/style.css" }}
{{- $cssOpts := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}
{{- $fontName := .Site.Params.font.name | default "Open Sans" }}
{{- $fontFace := replace $fontName " " "+" }}
{{- $fontSizes := delimit (.Site.Params.font.sizes | default (slice 300 400 600 700)) "," }}
{{- $fontUrl := printf "https://fonts.googleapis.com/css?family=%s:%s" $fontFace $fontSizes }}
<link rel="icon" type="image/png" href="{{ "images/favicon.png" | relURL }}" />
{{- $sass := "style.scss" }}
{{- $cssTarget := "css/style.css" }}
{{- $cssOpts := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true "transpiler" "dartsass") (dict
"targetPath" $cssTarget
"outputStyle" "compressed") }}
{{- $fontName := .Site.Params.font.name | default "Open Sans" }}
{{- $fontFace := replace $fontName " " "+" }}
{{- $fontSizes := delimit (.Site.Params.font.sizes | default (slice 300 400 600 700)) "," }}
{{- $fontUrl := printf "https://fonts.googleapis.com/css?family=%s:%s" $fontFace $fontSizes }}
<link rel="icon" type="image/png" href="{{ " images/favicon.png" | relURL }}" />
<link href="{{ $fontUrl }}" rel="stylesheet">
{{- if $inServerMode }}
{{- $css := resources.Get $sass | toCSS $cssOpts }}
Expand All @@ -15,4 +17,4 @@
{{- $css := resources.Get $sass | toCSS $cssOpts | minify | fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
{{- end }}
<link rel="stylesheet" type="text/css" href="{{ "css/icons.css" | relURL }}">
<link rel="stylesheet" type="text/css" href="{{ " css/icons.css" | relURL }}">

0 comments on commit 332dc40

Please sign in to comment.