Adding Skeleventy-based site sources.
This commit is contained in:
parent
ac7f2e6002
commit
28a89401ff
79 changed files with 2183 additions and 0 deletions
4
sources/resources/scss/03-base/_index.scss
Normal file
4
sources/resources/scss/03-base/_index.scss
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
@import 'reset';
|
||||
@import 'typography';
|
||||
@import 'links';
|
||||
24
sources/resources/scss/03-base/_links.scss
Normal file
24
sources/resources/scss/03-base/_links.scss
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
//========== Links ==========//
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
transition: color v(transition-duration) v(transition-timing);
|
||||
|
||||
&:not([class]) {
|
||||
color: currentColor;
|
||||
border-bottom: v(border-size-thick) solid get-color('tertiary');
|
||||
padding-bottom: .1rem;
|
||||
text-decoration-skip-ink: auto;
|
||||
|
||||
&:hover {
|
||||
@include apply-utility('color', 'tertiary');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:focus {
|
||||
outline: 1px solid get-color('tertiary');
|
||||
outline-offset: .25rem;
|
||||
}
|
||||
|
||||
70
sources/resources/scss/03-base/_reset.scss
Normal file
70
sources/resources/scss/03-base/_reset.scss
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
|
||||
//========== Modern CSS reset inspired by https://github.com/hankchizljaw/modern-css-reset ==========//
|
||||
|
||||
/* Box sizing rules */
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Set core root defaults */
|
||||
html {
|
||||
min-height: 100%;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* Set core body defaults */
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* Remove default margin */
|
||||
body,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
figure,
|
||||
blockquote,
|
||||
dl,
|
||||
dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Make images easier to work with */
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* Inherit fonts for inputs and buttons */
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* Remove all animations and transitions for people that prefer not to see them */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove default padding and list styles on ul, ol elements with a class attribute */
|
||||
ul[class],
|
||||
ol[class] {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
49
sources/resources/scss/03-base/_typography.scss
Normal file
49
sources/resources/scss/03-base/_typography.scss
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
|
||||
//========== Typography ==========//
|
||||
|
||||
// set base font size
|
||||
body {
|
||||
font-size: v(text-500);
|
||||
}
|
||||
|
||||
// headings
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
@include apply-utility('leading', 'tight');
|
||||
letter-spacing: -.01rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
--gap: #{get-size('700')};
|
||||
font-size: v(text-900);
|
||||
margin: 0 0 v(gap);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: v(text-800);
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: v(text-700);
|
||||
}
|
||||
|
||||
.content {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
// sub-heading
|
||||
.sub-heading {
|
||||
font-size: v(text-700);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
// lists
|
||||
ol,
|
||||
ul {
|
||||
padding: 0 0 0 get-size('500');
|
||||
}
|
||||
|
||||
.highlight {
|
||||
background-color: get-color('highlighter');
|
||||
}
|
||||
Loading…
Reference in a new issue