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.
// 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
// project.
// Colours and variables.
@import 'colors';
// Variables.
@import 'variables';
@import 'extra';

View file

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

View file

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