From 0a6c50810b3fb9d2032dd56d42a3f07535bd25fa Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Mon, 22 Jan 2024 21:41:16 +0100 Subject: [PATCH] Fix whitespace --- src/scss/components/_skip-link.scss | 37 +++++++++--------- src/scss/components/_variables.scss | 58 ++++++++++++++--------------- 2 files changed, 47 insertions(+), 48 deletions(-) diff --git a/src/scss/components/_skip-link.scss b/src/scss/components/_skip-link.scss index 6af03cb..3dc0fa0 100644 --- a/src/scss/components/_skip-link.scss +++ b/src/scss/components/_skip-link.scss @@ -1,20 +1,19 @@ body > a { - $link-offset: .3rem; - position: absolute; - inset-block-start: $link-offset; - inset-inline-start: $link-offset; - z-index: 99999; - padding: .4rem 1rem; - - &:not(:focus) { - size: 1px; - margin: -1px; - padding: 0; - white-space: nowrap; - border: 0; - clip: rect(0 0 0 0); - clip-path: inset(50%); - overflow: hidden; - } - - } \ No newline at end of file + $link-offset: .3rem; + position: absolute; + inset-block-start: $link-offset; + inset-inline-start: $link-offset; + z-index: 99999; + padding: .4rem 1rem; + + &:not(:focus) { + size: 1px; + margin: -1px; + padding: 0; + white-space: nowrap; + border: 0; + clip: rect(0 0 0 0); + clip-path: inset(50%); + overflow: hidden; + } +} \ No newline at end of file diff --git a/src/scss/components/_variables.scss b/src/scss/components/_variables.scss index 5019d4e..14041bb 100644 --- a/src/scss/components/_variables.scss +++ b/src/scss/components/_variables.scss @@ -1,31 +1,31 @@ :root { - --light-1: #efefef; - --dark-1: #1e1e1e; - --dark-2: #0f0f0f; - --primary: #C2B280; - --primary-light: #D3C7A2; - --primary-dark: #BAB298; - --secondary: #B3CF99; - --secondary-light: #C2D9AD; - --secondary-dark: #9FAF8F; - - --background: var(--primary-light); - --text: var(--dark-1); - --text-2: var(--dark-2); - - --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", sans-serif; - --font-italic: "Georgia", serif; - --font-code: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; - --font-size: 1.2rem; - --font-weight-semibold: 700; - --font-weight-bold: 900; - --leading: 1.45; - --gutter: clamp(1ch, 2.5vmax, 3ch); - --stack: clamp(1.25ex, 1ex + 2.5vmax, 1.75ex); - --line-length-small: 30ch; - --line-length: 75ch; - --line-length-large: 115ch; - --page-padding-inline: calc((100vw - min(var(--line-length), 80vw)) / 2); - --border-width: 1px; - --border-radius: 4px; + --light-1: #efefef; + --dark-1: #1e1e1e; + --dark-2: #0f0f0f; + --primary: #C2B280; + --primary-light: #D3C7A2; + --primary-dark: #BAB298; + --secondary: #B3CF99; + --secondary-light: #C2D9AD; + --secondary-dark: #9FAF8F; + + --background: var(--primary-light); + --text: var(--dark-1); + --text-2: var(--dark-2); + + --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", sans-serif; + --font-italic: "Georgia", serif; + --font-code: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; + --font-size: 1.2rem; + --font-weight-semibold: 700; + --font-weight-bold: 900; + --leading: 1.45; + --gutter: clamp(1ch, 2.5vmax, 3ch); + --stack: clamp(1.25ex, 1ex + 2.5vmax, 1.75ex); + --line-length-small: 30ch; + --line-length: 75ch; + --line-length-large: 115ch; + --page-padding-inline: calc((100vw - min(var(--line-length), 80vw)) / 2); + --border-width: 1px; + --border-radius: 4px; } \ No newline at end of file