Only load css colours variables ones.

This commit is contained in:
Fredrik Jonsson 2025-03-24 22:20:53 +01:00
commit fbb8fb8bef
4 changed files with 16 additions and 6 deletions

View file

@ -1 +1,8 @@
// Site custom styles and colours. This file loads last. // Site custom styles and colours. This file loads last.
// Override colours like this
// :root {
// --color-brand: red;
// --color-brand-alt: blue;
// --color-brand-dark: green;
// }

View file

@ -5,8 +5,7 @@
// file is in charge of importing all the other partials needed for the // file is in charge of importing all the other partials needed for the
// project. // project.
// Colours and variables. // Variables.
@import 'colors';
@import 'variables'; @import 'variables';
@import 'extra'; @import 'extra';

View file

@ -4,7 +4,11 @@
@import 'init'; @import 'init';
// Declaring global CSS variables in :root. // Declaring CSS colour variables in :root.
@import 'colors';
// Declaring CSS misc variables in :root.
@import 'root'; @import 'root';
@ -60,10 +64,10 @@
@import 'navigation/navbar/navbar'; @import 'navigation/navbar/navbar';
@import 'navigation/pager/pager'; @import 'navigation/pager/pager';
// Zen // Zen styles
@import 'zen'; @import 'zen';
// Custom // Custom styles
@import 'custom'; @import 'custom';

View file

@ -12,8 +12,8 @@
{{ $mobile_style = $mobile_style | fingerprint -}} {{ $mobile_style = $mobile_style | fingerprint -}}
{{ $print_style = $print_style | fingerprint -}} {{ $print_style = $print_style | fingerprint -}}
{{ end -}} {{ end -}}
<link rel="stylesheet" href="{{ $main_style.RelPermalink }}">
{{ if $.Param "mobilemenu" -}} {{ if $.Param "mobilemenu" -}}
<link rel="stylesheet" href="{{ $mobile_style.RelPermalink }}" media="screen"> <link rel="stylesheet" href="{{ $mobile_style.RelPermalink }}" media="screen">
{{ end -}} {{ end -}}
<link rel="stylesheet" href="{{ $main_style.RelPermalink }}">
<link rel="stylesheet" href="{{ $print_style.RelPermalink }}" media="print"> <link rel="stylesheet" href="{{ $print_style.RelPermalink }}" media="print">