2020-07-13 21:26:05 +00:00
|
|
|
/*! posts.andrewgioia.com style definitions v1.0.0 */
|
|
|
|
|
|
|
|
// normalize
|
|
|
|
@import "../../node_modules/normalize.css/normalize";
|
|
|
|
|
|
|
|
// sass variables
|
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
:root {
|
2020-08-16 01:07:39 +00:00
|
|
|
--background: #{$tan-lt};
|
|
|
|
--background-accent: #{$white};
|
|
|
|
--border-accent: #{$tan-md};
|
|
|
|
--border-subdued: #{$white};
|
2020-07-13 21:26:05 +00:00
|
|
|
--font-size-base: #{$font-size-base};
|
2020-08-16 01:07:39 +00:00
|
|
|
--link-color: #{$blue-md};
|
|
|
|
--text-color: #{$navy-md};
|
|
|
|
--text-color-accent: #{$navy-dk};
|
|
|
|
--text-color-subdued: #{$tan-md};
|
2020-08-18 00:59:27 +00:00
|
|
|
--text-color-take: #{$sky-md};
|
2020-08-16 01:07:39 +00:00
|
|
|
--text-color-title: #{$purple-md};
|
|
|
|
--text-color-h3: #{$teal-md};
|
2020-07-13 21:26:05 +00:00
|
|
|
--screen-mobile: #{$screen-mobile};
|
|
|
|
--screen-tablet: #{$screen-tablet};
|
|
|
|
--screen-laptop: #{$screen-laptop};
|
|
|
|
--screen-display: #{$screen-display};
|
|
|
|
--screen-full: #{$screen-full};
|
|
|
|
}
|
|
|
|
|
|
|
|
// fonts
|
|
|
|
@import "icons";
|
|
|
|
|
|
|
|
// base styles
|
|
|
|
html {
|
|
|
|
font-size: var(--font-size-base);
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
align-items: center;
|
2020-08-16 01:07:39 +00:00
|
|
|
background: var(--background);
|
|
|
|
color: var(--text-color);
|
2020-07-13 21:26:05 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
font-family: $font-family-base;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
align-self: stretch;
|
2020-08-16 01:07:39 +00:00
|
|
|
border-top: 1vmax solid var(--border-subdued);
|
2020-08-18 00:59:27 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2020-07-13 21:26:05 +00:00
|
|
|
padding: 5vmin 6vmin 0;
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: max(2vmax, 1.25rem);
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
a {
|
2020-08-16 01:07:39 +00:00
|
|
|
color: var(--text-color);
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
2020-08-16 01:07:39 +00:00
|
|
|
color: var(--text-color-subdued);
|
2020-08-13 21:02:34 +00:00
|
|
|
|
|
|
|
&.slug {
|
|
|
|
text-transform: lowercase;
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
}
|
2020-08-18 00:59:27 +00:00
|
|
|
|
|
|
|
nav {
|
|
|
|
a {
|
|
|
|
color: var(--text-color);
|
|
|
|
display: inline-block;
|
|
|
|
font-size: max(1.5vmax, 1rem);
|
|
|
|
font-weight: 700;
|
|
|
|
margin-top: 0.25rem;
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: max(2.5vmax, 1rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
display: flex;
|
2020-08-19 19:04:04 +00:00
|
|
|
flex-direction: column;
|
2020-07-13 21:26:05 +00:00
|
|
|
max-width: var(--screen-display);
|
|
|
|
padding: max(5vmin, 2rem) 6vmin;
|
|
|
|
position: relative;
|
|
|
|
|
2020-08-18 00:59:27 +00:00
|
|
|
// content titles
|
2020-07-13 21:26:05 +00:00
|
|
|
aside {
|
|
|
|
margin: 0 7.5vmin max(2vmax, 1rem);
|
|
|
|
text-align: center;
|
|
|
|
|
2020-08-16 02:25:17 +00:00
|
|
|
img#banner {
|
|
|
|
display: none; // only showing this on phones
|
|
|
|
margin: 0 -6vmin 10vmin;
|
|
|
|
width: calc(100% + 12vmin);
|
|
|
|
}
|
|
|
|
|
2020-07-13 21:26:05 +00:00
|
|
|
h1 {
|
2020-08-16 01:07:39 +00:00
|
|
|
color: var(--text-color-title);
|
2020-07-13 21:26:05 +00:00
|
|
|
font-family: $font-family-title;
|
|
|
|
font-size: max(3.75vmax, 2rem);
|
|
|
|
font-weight: 800;
|
|
|
|
letter-spacing: -0.075rem;
|
2020-08-18 00:59:27 +00:00
|
|
|
line-height: 1.15;
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
time {
|
|
|
|
font-size: max(1.5vmax, 1rem);
|
|
|
|
font-weight: 900;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2020-08-18 00:59:27 +00:00
|
|
|
|
|
|
|
&.paginate { // full width for the arrows
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
margin: 0 0 max(2vmax, 1rem);
|
|
|
|
|
|
|
|
#next,
|
|
|
|
#previous {
|
|
|
|
flex-grow: 0;
|
|
|
|
padding-top: 2vmax;
|
|
|
|
width: 7.5vmax;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
border-radius: 100rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover svg {
|
|
|
|
background-color: var(--text-color-subdued);
|
|
|
|
stroke: var(--text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#next {
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
padding: 0.2vmax 0 .2vmax 0.4vmax;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#previous {
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
padding: 0.2vmax 0.4vmax .2vmax 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#meta {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
|
2020-08-18 00:59:27 +00:00
|
|
|
// content body
|
2020-07-13 21:26:05 +00:00
|
|
|
article {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2020-08-13 21:02:34 +00:00
|
|
|
h2 { // section titles, outset width
|
2020-08-16 01:07:39 +00:00
|
|
|
color: var(--text-color-accent);
|
2020-07-13 21:26:05 +00:00
|
|
|
font-size: max(2.25vmax, 1.5rem);
|
|
|
|
font-weight: 800;
|
|
|
|
letter-spacing: -0.05rem;
|
|
|
|
margin: 2vmax 10vmin 1vmax;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:02:34 +00:00
|
|
|
h3 { // subsection headers, body width
|
2020-08-16 01:07:39 +00:00
|
|
|
color: var(--text-color-h3);
|
2020-07-14 16:46:08 +00:00
|
|
|
font-size: max(2vmax, 1.375rem);
|
|
|
|
margin: 2vmax 10vmin 1vmax;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:02:34 +00:00
|
|
|
h4 { // highlighted sections, left aligned and bigger
|
|
|
|
font-size: max(1.75vmax, 1.25rem);
|
|
|
|
font-weight: 500;
|
|
|
|
font-weight: 800;
|
|
|
|
line-height: max(2.5vmax, 1.75rem);
|
|
|
|
margin: max(1vmax, 0.75rem) 0;
|
|
|
|
width: min(50vmax, 100%)
|
|
|
|
}
|
|
|
|
|
2020-07-13 21:26:05 +00:00
|
|
|
// skinny elements
|
|
|
|
p,
|
|
|
|
ul,
|
2020-07-14 16:46:08 +00:00
|
|
|
h3,
|
2020-07-13 21:26:05 +00:00
|
|
|
section,
|
|
|
|
blockquote {
|
|
|
|
width: min(50vmax, 100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
// lists
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
margin: max(1vmax, 0.75rem) 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin-left: max(3vmax, 1rem);
|
|
|
|
padding: 0 0 max(2vmax, 1rem) max(1vmax, 0.5rem);
|
|
|
|
|
|
|
|
p:first-child { // each li's first p needs reduced top margin
|
|
|
|
margin-top: max(0.5vmax, 0.5rem)
|
|
|
|
}
|
|
|
|
&:first-child p:first-child { // the first item's first p gets none
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
p:last-child { // every last para needs it's bottom margin removed too
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ul {
|
2020-08-13 21:02:34 +00:00
|
|
|
// default font-size on lists should be same as paragraphs
|
2020-07-13 21:26:05 +00:00
|
|
|
li {
|
|
|
|
font-size: max(1.375vmax, 1rem);
|
|
|
|
line-height: max(2vmax, 1.5rem);
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
section {
|
2020-08-13 21:02:34 +00:00
|
|
|
// for lists inside <sections>, like FNs, we'll make it a little smaller
|
2020-07-13 21:26:05 +00:00
|
|
|
ol li,
|
|
|
|
ol li p {
|
2020-08-13 21:02:34 +00:00
|
|
|
font-size: max(1.125vmax, 0.85rem);
|
|
|
|
line-height: max(1.5vmax, 1.375rem);
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:02:34 +00:00
|
|
|
// post images
|
2020-08-14 17:45:07 +00:00
|
|
|
figure {
|
2020-08-18 00:59:27 +00:00
|
|
|
margin: 2vmax 0;
|
2020-08-13 21:02:34 +00:00
|
|
|
max-width: 80vw;
|
2020-08-14 17:45:07 +00:00
|
|
|
picture,
|
2020-08-13 21:02:34 +00:00
|
|
|
img {
|
2020-08-18 00:59:27 +00:00
|
|
|
border-radius: 1rem;
|
2020-08-13 21:02:34 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// captions below post images
|
|
|
|
figcaption {
|
2020-08-14 16:23:35 +00:00
|
|
|
font-size: max(1.25vmax, 0.9rem);
|
2020-08-13 21:02:34 +00:00
|
|
|
font-style: italic;
|
2020-08-18 00:59:27 +00:00
|
|
|
padding: 1vmax 0;
|
2020-08-14 16:23:35 +00:00
|
|
|
text-align: center;
|
2020-08-13 21:02:34 +00:00
|
|
|
}
|
2020-07-14 16:46:08 +00:00
|
|
|
}
|
2020-08-18 00:59:27 +00:00
|
|
|
|
|
|
|
// home page
|
|
|
|
&#home {
|
2020-08-19 19:04:04 +00:00
|
|
|
overflow-x: hidden; // safety for thoughts side scroller
|
2020-08-18 00:59:27 +00:00
|
|
|
padding-top: max(10vmin, 2rem);
|
|
|
|
width: 80%;
|
2020-08-19 19:04:04 +00:00
|
|
|
|
|
|
|
// main page post list
|
|
|
|
ul.posts {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
li {
|
|
|
|
align-items: stretch;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding-bottom: max(2.5vmax, 1.1rem);
|
|
|
|
|
|
|
|
div {
|
|
|
|
flex: 0 1 auto; // don't grow, shrink if needed, auto size onload
|
|
|
|
font-size: max(2.5vmax, 1.1rem);
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
time {
|
|
|
|
flex: 0 0 auto; // don't grow, don't shrink. auto size onload
|
|
|
|
font-size: max(2vmax, 1rem);
|
|
|
|
font-weight: 900;
|
|
|
|
padding-top: 0.5vmax;
|
|
|
|
padding-left: 1vmax;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// main page thoughts scroller
|
|
|
|
ul.thoughts {
|
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
padding: 0.5vmax 0;
|
|
|
|
margin: 2.5vmax 0;
|
|
|
|
overflow-x: auto;
|
|
|
|
transform: translateX(calc(-1 * ((100vw - var(--screen-display)) / 2)));
|
|
|
|
white-space: nowrap;
|
|
|
|
width: 100vw;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: flex;
|
|
|
|
margin-right: max(2vmax, 1rem);
|
|
|
|
|
|
|
|
&:first-child { // push the first one right 1/2 the max column size by default
|
|
|
|
margin-left: calc((100vw - var(--screen-display)) / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
background: var(--background-accent);
|
|
|
|
border-radius: 1rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
font-size: max(1.5vmax, 1rem);
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: max(2vmax, 1rem);
|
|
|
|
top: 0;
|
|
|
|
transition: 150ms top ease-in-out;
|
|
|
|
white-space: normal;
|
|
|
|
width: 20vmax;
|
|
|
|
|
|
|
|
span {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
time {
|
|
|
|
color: var(--text-color);
|
|
|
|
font-size: max( 1.25vmax, 1rem);
|
|
|
|
font-weight: 800;
|
|
|
|
margin-top: max(1.75vmax, 1rem);
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
top: -0.5vmax;
|
|
|
|
}
|
|
|
|
}
|
2020-08-23 14:31:00 +00:00
|
|
|
|
|
|
|
// add some buffer to the last one in the list
|
|
|
|
&:last-child::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
width: 6vmin;
|
|
|
|
height: 100%;
|
|
|
|
right: 0;
|
|
|
|
}
|
2020-08-19 19:04:04 +00:00
|
|
|
}
|
|
|
|
}
|
2020-08-18 00:59:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// full post pages
|
|
|
|
&#post {
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
// short takes pages
|
|
|
|
&#thought {
|
|
|
|
align-items: center;
|
|
|
|
max-width: var(--screen-full);
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
color: var(--text-color-take);
|
|
|
|
font-size: max(2.5vmax, 2rem); // slightly smaller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// list pages
|
|
|
|
&#list {
|
|
|
|
align-items: center;
|
|
|
|
width: 80%;
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
align-self: center;
|
2020-08-19 19:04:04 +00:00
|
|
|
font-size: max(3.75vmax, 2rem);
|
|
|
|
font-weight: 800;
|
|
|
|
letter-spacing: -0.075rem;
|
|
|
|
line-height: 1.15;
|
|
|
|
margin: 2vmax 0 5vmax;
|
|
|
|
text-transform: capitalize;
|
2020-08-18 00:59:27 +00:00
|
|
|
}
|
2020-08-19 19:04:04 +00:00
|
|
|
|
2020-08-18 00:59:27 +00:00
|
|
|
section {
|
2020-08-19 19:04:04 +00:00
|
|
|
background: var(--background-accent);
|
|
|
|
border-radius: max(1.5vmax, 0.5rem);
|
|
|
|
border-left: max(1.5vmax, 0.5rem) solid var(--text-color-title);
|
|
|
|
margin-bottom: max(4vmax, 1.5rem);
|
|
|
|
padding: max(1.5vmax, 1rem) max(3vmax, 1.5rem);
|
|
|
|
position: relative;
|
2020-08-18 00:59:27 +00:00
|
|
|
|
2020-08-19 19:04:04 +00:00
|
|
|
time {
|
|
|
|
align-items: flex-end;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
font-size: max(3.75vmax, 1.75rem);
|
2020-08-18 00:59:27 +00:00
|
|
|
font-weight: 800;
|
2020-08-19 19:04:04 +00:00
|
|
|
letter-spacing: -0.075rem;
|
|
|
|
line-height: 1.15;
|
|
|
|
height: 5vmax;
|
|
|
|
justify-content: center;
|
|
|
|
opacity: 0.1;
|
|
|
|
position: absolute;
|
|
|
|
right: 1vmax;
|
|
|
|
top: 0;
|
|
|
|
width: 25vmax;
|
2020-08-18 00:59:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-family: $font-family-title;
|
2020-08-19 19:04:04 +00:00
|
|
|
font-size: max(2vmax, 1.75rem);
|
2020-08-18 00:59:27 +00:00
|
|
|
font-weight: 800;
|
|
|
|
letter-spacing: -0.05rem;
|
|
|
|
line-height: 1.1;
|
2020-08-19 19:04:04 +00:00
|
|
|
margin-top: max(1vmax, 0.75rem);
|
2020-08-18 00:59:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: max(1.375vmax, 1rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-size: max(1.375vmax, 1rem);
|
|
|
|
line-height: max(2vmax, 1.5rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// paragraphs
|
|
|
|
p {
|
|
|
|
font-size: max(1.375vmax, 1rem);
|
|
|
|
line-height: max(2vmax, 1.5rem);
|
|
|
|
margin: max(1vmax, 0.75rem) 0;
|
|
|
|
|
|
|
|
&.big { // larger highlight and intro paragraphs
|
|
|
|
font-size: max(1.75vmax, 1.25rem);
|
|
|
|
font-weight: 500;
|
|
|
|
line-height: max(2.5vmax, 1.75rem);
|
|
|
|
|
|
|
|
> strong {
|
|
|
|
font-weight: 800;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.swqm { // starts with a quotation mark
|
|
|
|
text-indent: min(-0.55vmax, -0.4rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// blockquotes
|
|
|
|
blockquote {
|
|
|
|
margin: max(1vmax, 0.75rem) 0;
|
|
|
|
|
|
|
|
p {
|
|
|
|
border-left: 1vmax solid var(--border-accent);
|
|
|
|
padding-left: 2vmax;
|
|
|
|
margin-top: 0 !important;
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
padding: max(1vmax, 0.75rem) 0 max(1vmax, 0.75rem) 2vmax;
|
|
|
|
width: auto !important;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-08-13 21:02:34 +00:00
|
|
|
}
|
2020-07-14 16:46:08 +00:00
|
|
|
|
2020-08-13 21:02:34 +00:00
|
|
|
// post footer info
|
|
|
|
footer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-08-18 00:59:27 +00:00
|
|
|
margin: max(5vmin, 2rem) 6vmin;
|
2020-08-13 21:02:34 +00:00
|
|
|
position: relative;
|
|
|
|
max-width: calc(100% - 12vmin);
|
|
|
|
width: 100%;
|
|
|
|
|
2020-08-18 00:59:27 +00:00
|
|
|
&.border {
|
|
|
|
border-top: max(0.25vmax, 0.25rem) solid var(--border-accent);
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
align-items: center;
|
|
|
|
background: var(--background);
|
|
|
|
border-radius: 100%;
|
|
|
|
color: var(--border-accent);
|
|
|
|
content: $icon-barracuda;
|
2020-07-14 16:46:08 +00:00
|
|
|
display: flex;
|
2020-08-18 00:59:27 +00:00
|
|
|
font-family: 'andrew';
|
|
|
|
font-size: max(3vmax, 2.5rem);
|
|
|
|
height: max(5vmax, 4rem);
|
2020-07-14 16:46:08 +00:00
|
|
|
justify-content: center;
|
2020-08-18 00:59:27 +00:00
|
|
|
left: 50%;
|
|
|
|
margin-left: min(-2.5vmax, -2rem);
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
top: min(-2.5vmax, -2rem);
|
|
|
|
width: max(5vmax, 4rem);
|
|
|
|
}
|
|
|
|
}
|
2020-07-14 16:46:08 +00:00
|
|
|
|
2020-08-18 00:59:27 +00:00
|
|
|
// bottom content, should be footer
|
|
|
|
section {
|
2020-08-18 14:41:28 +00:00
|
|
|
align-items: center;
|
2020-08-18 00:59:27 +00:00
|
|
|
align-self: stretch;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin-top: 5vmax;
|
|
|
|
position: relative;
|
2020-07-14 16:46:08 +00:00
|
|
|
|
2020-08-18 14:41:28 +00:00
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 1vmax;
|
|
|
|
}
|
|
|
|
|
2020-08-18 00:59:27 +00:00
|
|
|
span {
|
|
|
|
margin-left: 0.5vmax;
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
2020-08-18 00:59:27 +00:00
|
|
|
|
2020-08-18 14:41:28 +00:00
|
|
|
&.pb {
|
|
|
|
padding-bottom: 2vmax;
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-14 16:23:35 +00:00
|
|
|
// footnotes
|
2020-08-13 21:02:34 +00:00
|
|
|
section.footnotes {
|
|
|
|
ol {
|
|
|
|
margin-bottom: 0;
|
|
|
|
li:last-child {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-14 16:23:35 +00:00
|
|
|
a[href^="#fn:"]:before{ content: '[' }
|
|
|
|
a[href^="#fn:"]:after{ content: ']' }
|
2020-08-13 21:02:34 +00:00
|
|
|
|
2020-08-14 16:23:35 +00:00
|
|
|
// table of contents
|
2020-08-13 21:02:34 +00:00
|
|
|
#toc {
|
|
|
|
background: rgba(255,255,255,0.9);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-08-14 16:23:35 +00:00
|
|
|
min-height: 100vh;
|
|
|
|
position: fixed;
|
|
|
|
right: -35vw;
|
|
|
|
top: 0;
|
2020-08-13 21:02:34 +00:00
|
|
|
transition: 400ms 250ms right ease-in-out;
|
2020-08-14 16:23:35 +00:00
|
|
|
width: 35vw;
|
2020-08-13 21:02:34 +00:00
|
|
|
|
|
|
|
&::before {
|
2020-08-18 00:59:27 +00:00
|
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%0A%3E%3Cline x1='8' y1='6' x2='21' y2='6' /%3E%3Cline x1='8' y1='12' x2='21' y2='12' /%3E%3Cline x1='8' y1='18' x2='21' y2='18' /%3E%3Cline x1='3' y1='6' x2='3.01' y2='6' /%3E%3Cline x1='3' y1='12' x2='3.01' y2='12' /%3E%3Cline x1='3' y1='18' x2='3.01' y2='18' /%3E%3C/svg%3E%0A");
|
2020-08-13 21:02:34 +00:00
|
|
|
background-size: 75% 75%;
|
|
|
|
background-position: 0 50%;
|
|
|
|
background-repeat: no-repeat;
|
2020-08-18 00:59:27 +00:00
|
|
|
bottom: max(5vmin, 2rem);
|
2020-08-13 21:02:34 +00:00
|
|
|
content: '';
|
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
2020-08-18 00:59:27 +00:00
|
|
|
height: 4vmax;
|
|
|
|
left: -12vmin;
|
2020-08-13 21:02:34 +00:00
|
|
|
position: absolute;
|
|
|
|
transition-property: opacity, left;
|
|
|
|
transition-duration: 400ms;
|
|
|
|
transition-timing-function: ease-in-out;
|
|
|
|
transition-delay: 250ms;
|
2020-08-18 00:59:27 +00:00
|
|
|
width: 12vmin;
|
2020-08-13 21:02:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
opacity: 0;
|
|
|
|
left: -5vmax;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
nav#TableOfContents {
|
2020-08-14 16:23:35 +00:00
|
|
|
padding: 1vmax 3vmax 1vmax 1vmax;
|
2020-08-13 21:02:34 +00:00
|
|
|
height: calc(100vh - 2vmax);
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
ul { // first level
|
|
|
|
list-style: upper-roman;
|
|
|
|
ul { // second level
|
|
|
|
list-style: upper-alpha;
|
|
|
|
ul { // third level
|
|
|
|
list-style: decimal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
font-size: max(1.375vmax, 1rem);
|
|
|
|
line-height: max(1.75vmax, 1.375rem);
|
|
|
|
margin-bottom: max(1vmax, 0.75rem);
|
|
|
|
> a {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: max(1vmax, 0.75rem);
|
|
|
|
}
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 16:00:18 +00:00
|
|
|
a,
|
|
|
|
b {
|
2020-08-16 01:07:39 +00:00
|
|
|
color: var(--link-color);
|
2020-07-17 16:00:18 +00:00
|
|
|
font-style: normal;
|
2020-07-13 21:26:05 +00:00
|
|
|
position: relative;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
// novelty arrow
|
|
|
|
&.arrow::after {
|
|
|
|
color: inherit;
|
|
|
|
content: $icon-arrow;
|
|
|
|
display: block;
|
|
|
|
font-family: 'andrew';
|
|
|
|
font-size: 100%;
|
|
|
|
height: 100%;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2020-07-17 16:00:18 +00:00
|
|
|
-webkit-transform: translateY(-0.25rem) translateX(100%);
|
|
|
|
-moz-transform: translateY(-0.25rem) translateX(100%);
|
|
|
|
transform: translateY(-0.25rem) translateX(100%);
|
2020-07-13 21:26:05 +00:00
|
|
|
transition: opacity 150ms ease-in-out, margin-top 150ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
// back links move this to the left
|
|
|
|
&.arrow.back::after {
|
|
|
|
content: $icon-arrow-left;
|
|
|
|
left: 0;
|
2020-07-17 16:00:18 +00:00
|
|
|
-webkit-transform: translateY(-0.25rem) translateX(-1.25rem);
|
|
|
|
-moz-transform: translateY(-0.25rem) translateX(-1.25rem);
|
|
|
|
transform: translateY(-0.25rem) translateX(-1.25rem);
|
2020-07-13 21:26:05 +00:00
|
|
|
transition: opacity 150ms ease-in-out, margin-top 150ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
// show the arrow on hover
|
2020-07-17 16:00:18 +00:00
|
|
|
&.arrow:hover::after,
|
|
|
|
&.wa:hover b.arrow::after {
|
2020-07-13 21:26:05 +00:00
|
|
|
display: block;
|
|
|
|
margin-top: -3px;
|
|
|
|
opacity: 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
// back-to-top links
|
|
|
|
&#top {
|
|
|
|
display: block;
|
|
|
|
align-self: flex-end;
|
2020-08-18 00:59:27 +00:00
|
|
|
margin: 5vmin 10vmin 3vmin 0;
|
2020-07-13 21:26:05 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-18 00:59:27 +00:00
|
|
|
// specific link effects
|
2020-07-17 16:00:18 +00:00
|
|
|
p a:hover {
|
2020-08-16 01:07:39 +00:00
|
|
|
border-bottom: 2px solid var(--link-color);
|
2020-07-17 16:00:18 +00:00
|
|
|
}
|
2020-08-18 00:59:27 +00:00
|
|
|
header h1 a.arrow.back::after {
|
|
|
|
-webkit-transform: translateY(-0.5rem) translateX(min(-2vmax, -1.25rem));
|
2020-07-13 21:26:05 +00:00
|
|
|
-moz-transform: translateY(-0.5rem) translateX(min(-1.75vmax, -1.25rem));
|
|
|
|
transform: translateY(-0.5rem) translateX(min(-1.75vmax, -1.25rem));
|
|
|
|
}
|
|
|
|
|
2020-08-19 19:04:04 +00:00
|
|
|
// non-content lists
|
2020-07-13 21:26:05 +00:00
|
|
|
ul {
|
2020-08-19 19:04:04 +00:00
|
|
|
// post and thought tags
|
2020-07-14 16:46:08 +00:00
|
|
|
&.tags {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
2020-08-19 19:04:04 +00:00
|
|
|
list-style: none;
|
2020-07-14 16:52:27 +00:00
|
|
|
margin: 4vmax 0 0;
|
2020-07-14 16:46:08 +00:00
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
li a {
|
2020-08-16 01:07:39 +00:00
|
|
|
background: var(--background-accent);
|
2020-07-14 16:46:08 +00:00
|
|
|
border-radius: 1000rem;
|
|
|
|
display: block;
|
|
|
|
font-size: max(1.25vmax, 1rem);
|
|
|
|
margin: 0 1vmax 2vmax;
|
|
|
|
padding: 1vmax 2vmax;
|
|
|
|
|
|
|
|
&:hover {
|
2020-08-16 01:07:39 +00:00
|
|
|
background: var(--link-color);
|
2020-07-14 16:46:08 +00:00
|
|
|
border: none;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-19 19:04:04 +00:00
|
|
|
// tags that are just text
|
2020-08-18 00:59:27 +00:00
|
|
|
&.clean {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: start;
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 1vmax 0 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
li a {
|
|
|
|
color: var(--text-color);
|
|
|
|
font-size: max(1.25vmax, 1rem);
|
|
|
|
margin: 0 0.5vmax;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--text-color-accent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
|
2020-08-13 21:02:34 +00:00
|
|
|
// horizontal rules
|
|
|
|
hr {
|
|
|
|
border: none;
|
2020-08-16 01:07:39 +00:00
|
|
|
border-top: max(0.25vmax, 0.25rem) solid var(--border-accent);
|
2020-08-13 21:02:34 +00:00
|
|
|
margin: 3vmax 0;
|
|
|
|
}
|
|
|
|
|
2020-08-14 16:23:35 +00:00
|
|
|
// extras
|
|
|
|
span.tag {
|
2020-08-16 01:07:39 +00:00
|
|
|
background: var(--background-accent);
|
2020-08-14 16:23:35 +00:00
|
|
|
padding: 0.25vmax 1vmax;
|
|
|
|
}
|
|
|
|
|
2020-07-13 21:26:05 +00:00
|
|
|
// schemes
|
|
|
|
@import "dark";
|
|
|
|
|
|
|
|
// media queries
|
|
|
|
@import "media";
|