diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-10-19 23:13:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-19 23:13:30 +0100 |
| commit | a1cabdeaaf3bade1bd0872bcafc52c81f1c31ce8 (patch) | |
| tree | cd9c075bbd590a65081cf2f97052a4087897cf55 /src | |
| parent | d26ea8906e2a2c96ecfdea48ab4f0c8343eabf50 (diff) | |
Optimise CSS (#17)
* Installs Sass
* installs concurrently
* Ports CSS to SCSS
* Gitignores CSS build output
* Moves public/main.css to scss/index.scss
* Fixes port to SCSS
* Use-ifies base styles
* Use-ifies layout styles
* Use-ifies modules styles
* Use-ifies variables
* Use-ifies utils
* Moves normalize to scss
* Implements a CSS minifying step with CSSO
---------
Co-authored-by: Joe Carstairs <jcarstairs@scottlogic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/layouts/Layout.astro | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 24d0198..a5315be 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -31,8 +31,13 @@ function qualifiedLocalisedPath(newLocale: Locale) { <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" href="/favicon.ico" /> <link rel="sitemap" href="/sitemap-index.xml" /> - <link rel="stylesheet" href="/normalize.css" /> - <link rel="stylesheet" href="/main.css" /> + <link rel="stylesheet" href="/css/index.css" /> + <link rel="stylesheet" href="/css/index.xs.css" media="(min-width: 16rem)" /> + <link rel="stylesheet" href="/css/index.sm.css" media="(min-width: 32rem)" /> + <link rel="stylesheet" href="/css/index.md.css" media="(min-width: 48rem)" /> + <link rel="stylesheet" href="/css/index.lg.css" media="(min-width: 64rem)" /> + <link rel="stylesheet" href="/css/index.xl.css" media="(min-width: 96rem)" /> + <link rel="stylesheet" href="/css/index.xl.css" media="(min-width: 120rem)" /> <link rel="alternate" type="application/rss+xml" |
