Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
219 changes: 113 additions & 106 deletions src/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,117 +1,124 @@
/* src/styles/main.css */
:root {
--colour-light: #EFEFEF;
--colour-dark: #222222;
--colour-link: darkcyan;
--colour-link-alt: yellow;
--type-size: 100%;
--type-stack: 'system', sans-serif;
--line-height: 1.9;
--character-width: 72ch;
}

@font-face {
font-family: system;
font-style: normal;
font-weight: 300;
src: local('.SFNSText-Light'),
local('.HelveticaNeueDeskInterface-Light'),
local('.LucidaGrandeUI'),
local('Ubuntu Light'),
local('Segoe UI Light'),
local('Roboto-Light'),
local('DroidSans'),
local('Tahoma');
}

body {
box-sizing: border-box;
background-color: var(--colour-light);
color: var(--colour-dark);
font-family: var(--type-stack);
font-size: var(--type-size);
line-height: var(--line-height);
max-width: var(--character-width);
margin: auto;
padding: 20px;
width: 100%;
}

a {
color: var(--colour-link);
font-weight: 600;
}

img {
height: auto;
width: 100%;
}
@layer reset, base;

footer {
padding: 2rem 0;
@layer reset {
@import "reset.css";
}

footer svg {
height: 1rem;
width: auto;
}

footer a svg path {
fill: var(--colour-link);
}

footer ul {
list-style: none;
text-align: right;
}

footer li {
display: inline-block;
padding: 0 5px;
}
@layer base {
:root {
--colour-light: #EFEFEF;
--colour-dark: #222222;
--colour-link: darkcyan;
--colour-link-alt: yellow;
--type-size: 100%;
--type-stack: 'system', sans-serif;
--line-height: 1.9;
--character-width: 72ch;
}

@media (prefers-color-scheme: dark) {
@font-face {
font-family: system;
font-style: normal;
font-weight: 300;
src: local('.SFNSText-Light'),
local('.HelveticaNeueDeskInterface-Light'),
local('.LucidaGrandeUI'),
local('Ubuntu Light'),
local('Segoe UI Light'),
local('Roboto-Light'),
local('DroidSans'),
local('Tahoma');
}

body {
background-color: var(--colour-dark);
color: var(--colour-light);
box-sizing: border-box;
background-color: var(--colour-light);
color: var(--colour-dark);
font-family: var(--type-stack);
font-size: var(--type-size);
line-height: var(--line-height);
max-width: var(--character-width);
margin: auto;
padding: 20px;
width: 100%;
}

a {
color: var(--colour-link-alt);
color: var(--colour-link);
font-weight: 600;
}


img {
height: auto;
width: 100%;
}

footer {
padding: 2rem 0;
}

footer svg {
height: 1rem;
width: auto;
}

footer a svg path {
fill: var(--colour-link-alt);
fill: var(--colour-link);
}

footer ul {
list-style: none;
text-align: right;
}

footer li {
display: inline-block;
padding: 0 5px;
}

@media (prefers-color-scheme: dark) {
body {
background-color: var(--colour-dark);
color: var(--colour-light);
}

a {
color: var(--colour-link-alt);
}

footer a svg path {
fill: var(--colour-link-alt);
}
}

/* Accessible skip-to-content link (classless) */
/* Target the page anchor used in templates: href="#main-content" */
a[href="#main-content"] {
position: absolute;
left: -999px;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px); /* legacy */
white-space: nowrap;
border: 0;
padding: 0;
}

a[href="#main-content"]:focus,
a[href="#main-content"]:focus-visible {
position: fixed;
top: 1rem;
left: 1rem;
width: auto;
height: auto;
overflow: visible;
clip: auto;
background: var(--colour-dark);
color: var(--colour-light);
padding: 0.25rem 0.5rem;
border-radius: 4px;
z-index: 1000;
text-decoration: none;
}
}

/* Accessible skip-to-content link (classless) */
/* Target the page anchor used in templates: href="#main-content" */
a[href="#main-content"] {
position: absolute;
left: -999px;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px); /* legacy */
white-space: nowrap;
border: 0;
padding: 0;
}

a[href="#main-content"]:focus,
a[href="#main-content"]:focus-visible {
position: fixed;
top: 1rem;
left: 1rem;
width: auto;
height: auto;
overflow: visible;
clip: auto;
background: var(--colour-dark);
color: var(--colour-light);
padding: 0.25rem 0.5rem;
border-radius: 4px;
z-index: 1000;
text-decoration: none;
}
Loading