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 /scss/normalize.scss | |
| 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 'scss/normalize.scss')
| -rw-r--r-- | scss/normalize.scss | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/scss/normalize.scss b/scss/normalize.scss new file mode 100644 index 0000000..0130a0b --- /dev/null +++ b/scss/normalize.scss @@ -0,0 +1,116 @@ +:root, +html, +body, +main, +article, +section, +header, +footer, +button, +ol, +ul, +li, +dl, +dt, +dd, +p, +h1, +h2, +h3, +h4 { + margin: 0; + padding: 0; +} + +html { + -webkit-text-size-adjust: 100%; +} + +main { + display: block; +} + +hr { + box-sizing: content-box; + height: 0; + overflow: visible; +} + +pre { + font-family: monospace, monospace; + font-size: 1em; +} + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +b, +strong { + font-weight: bolder; +} + +small { + font-size: 80%; +} + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +img { + border-style: none; +} + +button, [type='button'], [type='reset'], [type='submit'] { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + text-transform: none; + overflow: visible; +} + +:is(button, [type='button'], [type='reset'], [type='submit'])::-moz-focus-inner { + border-style: none; + padding: 0; +} + +:is(button, [type='button'], [type='reset'], [type='submit']):-moz-focusring { + outline: 1px dotted ButtonText; +} + +details { + display: block; +} + +summary { + display: list-item; +} + +[hidden] { + display: none; +} + +a, :link, :visited { + background-color: transparent; + color: currentColor; + text-decoration: none; +} + +li { + list-style: none; +} |
