Switch to dart SCSS

This commit is contained in:
Christian Wolf 2025-01-17 17:24:39 +01:00
parent d9c7cc86e6
commit 48a5b852a1
2 changed files with 12 additions and 12 deletions

View File

@ -342,15 +342,16 @@ h1 {
// height: 250px; // height: 250px;
display: none; display: none;
@include media-large {
display: flex;
}
padding: 0 10px; padding: 0 10px;
border-right: 20px solid $color-red; border-right: 20px solid $color-red;
border-left: 20px solid $color-red; border-left: 20px solid $color-red;
position: relative; position: relative;
@include media-large {
display: flex;
}
> img { > img {
width: calc(100% - 20px); width: calc(100% - 20px);
@ -525,15 +526,15 @@ h1 {
.person { .person {
width: 100%; width: 100%;
@include media-large {
width: calc(50% - #{$gap-columns-persons} / 2);
}
height: 80px; height: 80px;
// margin: 10px 25px 10px 0; // margin: 10px 25px 10px 0;
display: flex; display: flex;
@include media-large {
width: calc(50% - #{$gap-columns-persons} / 2);
}
> .image { > .image {
flex: 60px 0 0; flex: 60px 0 0;
@ -664,12 +665,11 @@ h1 {
padding: 30px 5% 0; padding: 30px 5% 0;
box-sizing: border-box; box-sizing: border-box;
border-top: 1px solid $color-hor-line;
@include media-large { @include media-large {
display: none; display: none;
} }
border-top: 1px solid $color-hor-line;
.level-1 { .level-1 {
width: 100%; width: 100%;

View File

@ -11,7 +11,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ with .Keywords }}<meta name="keywords" content="{{ delimit . "," "," }}">{{ end }} {{ with .Keywords }}<meta name="keywords" content="{{ delimit . "," "," }}">{{ end }}
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }} {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "transpiler" "dartsass") }}
{{ $scss := resources.Get "css/main.scss" | css.Sass $options }} {{ $scss := resources.Get "css/main.scss" | css.Sass $options }}
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}" /> <link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}" />
{{ $title := print .Site.Title " | " .Title }} {{ $title := print .Site.Title " | " .Title }}