diff --git a/assets/sass/mobilemenu.css b/assets/sass/mobilemenu.scss similarity index 94% rename from assets/sass/mobilemenu.css rename to assets/sass/mobilemenu.scss index 3b2b46f..3d80c94 100644 --- a/assets/sass/mobilemenu.css +++ b/assets/sass/mobilemenu.scss @@ -1,4 +1,6 @@ -/* The mobile navigation stylesheet for this theme. */ +// The mobile navigation stylesheet for this theme. + +@import 'init'; .mobile-nav { position: absolute; @@ -127,7 +129,7 @@ &__toggle, &__hamburger > rect, &__sheet { - /* Add some transitions unless user prefer less motion. */ + // Add some transitions unless user prefer less motion. @media (prefers-reduced-motion: no-preference) { transition: all 130ms ease-in; diff --git a/assets/sass/print.css b/assets/sass/print.scss similarity index 75% rename from assets/sass/print.css rename to assets/sass/print.scss index 6440130..cf172fc 100644 --- a/assets/sass/print.css +++ b/assets/sass/print.scss @@ -1,6 +1,9 @@ -/* The print stylesheet for this theme. */ +// The print stylesheet for this theme. + +@import 'init'; .pager, +%pager, .mobile-nav, aside, nav, @@ -26,13 +29,13 @@ footer { width: 100%; } - /* Underline all links. */ + // Underline all links. :link, :visited { text-decoration: underline; } - /* Add visible title after abbreviations. */ + // Add visible title after abbreviations. abbr[title] { &::after { content: ' (' attr(title) ')'; diff --git a/layouts/_partials/head/styles.html b/layouts/_partials/head/styles.html index 7ce4a27..87e0aad 100644 --- a/layouts/_partials/head/styles.html +++ b/layouts/_partials/head/styles.html @@ -5,8 +5,8 @@ {{ $mobile_options := merge $main_options (dict "targetPath" "css/mobilemenu.css") -}} {{ $print_options := merge $main_options (dict "targetPath" "css/print.css") -}} {{ $main_style := resources.Get "sass/styles.scss" | toCSS $main_options -}} -{{ $mobile_style := resources.Get "sass/mobilemenu.css" | toCSS $mobile_options -}} -{{ $print_style := resources.Get "sass/print.css" | toCSS $print_options -}} +{{ $mobile_style := resources.Get "sass/mobilemenu.scss" | toCSS $mobile_options -}} +{{ $print_style := resources.Get "sass/print.scss" | toCSS $print_options -}} {{ if ne hugo.Environment "development" -}} {{ $main_style = $main_style | fingerprint -}} {{ $mobile_style = $mobile_style | fingerprint -}}