You've already forked snikket-web-portal
195 lines
3.8 KiB
SCSS
195 lines
3.8 KiB
SCSS
/*
|
|
* Reset
|
|
*/
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
p,
|
|
ul,
|
|
li,
|
|
img,
|
|
figure,
|
|
figcaption,
|
|
table,
|
|
td,
|
|
tr,
|
|
thead,
|
|
tbody,
|
|
details,
|
|
summary {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
/* Text related colors */
|
|
--copy: #444444;
|
|
--copy-darker: #242424;
|
|
--copy-darker-2: #121212;
|
|
--copy-lighter: #6b6b6b;
|
|
--copy-lighter-2: #c4c4c4;
|
|
--hyperlink: #155bca;
|
|
|
|
/* Background related colors */
|
|
--bg: #fffaef;
|
|
|
|
/*
|
|
* Colors
|
|
*/
|
|
--primary-color: #ff94a1;
|
|
--primary-color-half-light: #ffc6c8;
|
|
--secondary-color: #97aa9b;
|
|
--secondary-color-half-light: #e5e6d9;
|
|
--secondary-color-light: #cbd2c4;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-family: Verdana, sans-serif;
|
|
text-align: left;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
background-color: var(--bg);
|
|
line-height: 1.5rem;
|
|
}
|
|
|
|
article,
|
|
section,
|
|
header,
|
|
footer {
|
|
a {
|
|
--transition-property: inherit;
|
|
--color: var(--copy);
|
|
--hover-color: var(--primary-color);
|
|
--hover-thickness: 0.2rem;
|
|
--text-decoration: underline;
|
|
--text-decoration-color: var(--color);
|
|
|
|
color: var(--color);
|
|
text-decoration: none;
|
|
|
|
&[href]:not([aria-disabled="true"], [aria-current="page"]) {
|
|
text-decoration: var(--text-decoration);
|
|
text-decoration-line: var(--text-decoration);
|
|
text-decoration-color: var(--text-decoration-color);
|
|
text-decoration-thickness: 1px;
|
|
text-decoration-skip-ink: none;
|
|
transition-property:
|
|
text-decoration-thickness, text-decoration-color,
|
|
var(--transition-property);
|
|
transition-duration: var(--transition-duration);
|
|
transition-timing-function: var(--transition-timing-function);
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
text-decoration-color: var(--hover-color);
|
|
text-decoration-thickness: var(--hover-thickness);
|
|
}
|
|
}
|
|
|
|
&[rel~="external"]:not(:has(img))::after {
|
|
display: inline-block;
|
|
content: "";
|
|
width: 12px;
|
|
height: 12px;
|
|
line-height: inherit;
|
|
vertical-align: middle;
|
|
background: var(--color);
|
|
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIj4KICAJPHBhdGggZmlsbD0iIzAwMDAwMCIgZD0iTTYgMWg1djVMOC44NiAzLjg1IDQuNyA4IDQgNy4zbDQuMTUtNC4xNnpNMiAzaDJ2MUgydjZoNlY4aDF2MmExIDEgMCAwIDEtMSAxSDJhMSAxIDAgMCAxLTEtMVY0YTEgMSAwIDAgMSAxLTEiLz4KPC9zdmc+");
|
|
margin-left: 0.2em;
|
|
}
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
> a {
|
|
color: var(--copy);
|
|
}
|
|
}
|
|
}
|
|
|
|
main.home {
|
|
padding: 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
max-width: 450px;
|
|
|
|
> header {
|
|
> img {
|
|
width: 250px;
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
|
|
> h1 {
|
|
text-align: center;
|
|
font-size: 3rem;
|
|
line-height: 3rem;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
> section {
|
|
text-align: center;
|
|
|
|
> p {
|
|
margin-bottom: 1.25rem;
|
|
text-wrap: balance;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
> footer {
|
|
> nav {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
gap: 1rem;
|
|
|
|
> a {
|
|
flex: 1 1 50%;
|
|
padding: 0.5rem 0.7rem;
|
|
border-radius: 0.2rem 0.5rem;
|
|
|
|
&[href]:not([aria-disabled="true"], [aria-current="page"]) {
|
|
transition-property:
|
|
background-color, text-decoration-thickness, text-decoration-color;
|
|
|
|
&:hover {
|
|
background-color: var(--secondary-color-half-light);
|
|
}
|
|
}
|
|
|
|
&[aria-current="page"] {
|
|
font-weight: 600;
|
|
background-color: var(--primary-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|