/*!
* LICENSE - style only: CC BY-NC-SA
* @link https://creativecommons.org/licenses/by-nc-sa/3.0/
* Graphics copyright of Max Spuling
*
* Title: Ye Olde Book
* Author: Max Spuling
* Website: https://maxspuling.de/
* Twitter: @TillyWater
*
* View on Style Stage:
* @link https://stylestage.dev/styles/ye-olde-book/
*/
/*
* All SVG graphics from https://freesvg.org/
*
*/
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Tangerine&display=swap");
/*
* [Modified] Modern CSS Reset
* @link https://github.com/hankchizljaw/modern-css-reset
*/
/* Box sizing rules */
*,
*::before,
*::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
}
html {
overflow-x: hidden;
scroll-behavior: smooth;
}
/* Set core body defaults */
body {
min-height: 100lvh;
font-size: 100%;
text-rendering: optimizeSpeed;
overflow-x: hidden;
}
/* Make images easier to work with */
img {
display: block;
max-width: 100%;
}
/* 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) {
* {
-webkit-animation-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
-webkit-animation-iteration-count: 1 !important;
animation-iteration-count: 1 !important;
-webkit-transition-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
:root {
--clr-bg: #f0e9b2;
--clr-link: darkblue;
--clr-accent: darkred;
--ff-serif: "IM Fell English", serif;
--ff-script: "Tangerine", cursive;
--divider: url('data:image/svg+xml;utf8, ')
no-repeat center;
--divider-big: url('data:image/svg+xml;utf8, ')
no-repeat center;
}
body {
background: var(--clr-bg);
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
text-align: center;
}
h1,
h2:not(header > .container > h2),
h3:not(#contribute > .container > h3),
h4,
h5,
h6 {
text-transform: uppercase;
letter-spacing: 0.2em;
}
ul {
list-style-type: none;
}
strong {
font-weight: normal;
font-style: italic;
}
body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
font-family: var(--ff-serif);
font-size: 1.2rem;
}
main p,
.page-footer {
width: 100%;
}
header,
nav,
main,
aside,
.page-footer {
width: min(65ch, 100%);
padding: 0 2ch;
}
a {
color: currentColor;
text-decoration: none;
}
.skip-link::before {
content: "\261e";
font-size: 150%;
margin-right: 0.2em;
}
.skip-link {
position: absolute;
-webkit-transform: translateY(-120%);
transform: translateY(-120%);
-webkit-transition: -webkit-transform 0.5s;
transition: -webkit-transform 0.5s;
transition: transform 0.5s;
transition: transform 0.5s, -webkit-transform 0.5s;
}
.skip-link:focus {
-webkit-transform: translateY(0);
transform: translateY(0);
}
header > .container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: distribute;
justify-content: space-around;
height: 100vh;
padding: 1em 0;
text-align: center;
}
header h1 {
font-size: 4.5rem;
text-transform: uppercase;
line-height: 1;
letter-spacing: 0.18em;
}
header h2 {
font-variant: initial;
font-family: var(--ff-serif);
max-width: 30ch;
}
header p {
line-height: 1.6;
}
header p a:first-of-type {
font-family: var(--ff-serif);
display: block;
font-variant: small-caps;
font-size: 1.5rem;
letter-spacing: 0.25em;
}
header p a:last-of-type {
font-style: italic;
}
.link-github {
width: 100%;
padding: 1em;
border-style: double none;
}
.link-github::after {
content: ".";
}
.link-github svg {
display: inline-block;
vertical-align: top;
width: 1em;
margin-right: 0.2em;
fill: currentColor;
}
nav > ul {
counter-reset: table-of-contents;
margin-bottom: 5em;
}
nav > ul > li + li {
margin-top: 0.7em;
}
nav > ul > li {
display: grid;
grid-template-columns: auto 1fr auto;
-webkit-column-gap: 0.2em;
-moz-column-gap: 0.2em;
column-gap: 0.2em;
-webkit-box-align: end;
-ms-flex-align: end;
align-items: end;
}
nav > ul > li > a {
grid-column: 1;
color: var(--clr-link);
}
nav > ul > li::before {
grid-column: 2;
grid-row: 1;
content: "";
border-bottom: 0.15em dotted;
-webkit-transform: translateY(-350%);
transform: translateY(-350%);
}
nav > ul > li::after {
grid-column: 3;
counter-increment: table-of-contents;
content: counter(table-of-contents);
}
main > .container {
margin-bottom: 5em;
}
main {
margin: 1em 0;
line-height: 1.5;
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
article a,
.link-guidelines,
.link-allstyles,
aside.profile a {
font-style: italic;
color: var(--clr-link);
}
article::before,
aside::before,
.page-footer::before {
display: block;
content: "";
background: var(--divider);
height: 1.2em;
grid-column: 2;
}
section.container > h2 {
font-size: 1.7rem;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.15em;
margin: 1em 0 0.7em;
}
section.container:first-of-type > h2 {
font-size: 2.3rem;
}
section.container p {
position: relative;
}
@media (min-width: 1000px) {
:root {
--fs-marg: 1.4rem;
--lh-marg: 1;
}
article {
display: initial;
counter-reset: link-count;
}
#about {
--href: "";
}
[id] > section.container {
grid-column: 2;
display: grid;
grid-template-columns: 1fr min(65ch, 100%) 1fr;
}
[id] > section.container > *:is(h2, h3),
.link-guidelines,
.link-allstyles {
grid-column: span 3;
}
blockquote,
[id] > section.container > *:is(p, ul, ol) {
grid-column: 2;
position: relative;
}
section.container p > a {
--href: attr(href);
counter-increment: link-count;
}
section.container p:not(blockquote > p) > a::after {
font-family: var(--ff-script);
font-size: var(--fs-marg);
font-style: initial;
line-height: var(--lh-marg);
text-indent: 0;
content: var(--href);
position: absolute;
top: 0;
left: calc(100% + 1em);
color: var(--clr-accent);
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
section.container p:not(blockquote > p) > a:not(:first-of-type)::after {
top: calc(var(--fs-marg) * 2 + calc(var(--lh-marg) * 1rem));
}
section.container p:not(blockquote > p) > a:not([href^="http"])::after {
content: "https://stylestage.dev" var(--href);
}
}
section.container p + p {
margin-top: 0.3em;
text-indent: 1.5em;
}
section.container:last-of-type {
margin-bottom: 3em;
}
article[id]:not([id="guidelines"]) > .container > h2 + p:first-letter {
font-size: 4rem;
float: left;
margin-right: 0.1em;
}
blockquote {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 1.5em;
font-size: 1.4rem;
text-align: center;
margin: 2em 0;
padding: 0 2em;
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
blockquote::before,
blockquote::after {
content: "";
display: block;
width: 12em;
height: 3em;
background: var(--divider-big);
}
blockquote p {
text-align: center;
}
#about > section:nth-child(2) > p:nth-of-type(2) {
text-indent: initial;
padding-top: 0.7em;
}
#about ul {
margin: 0.5em 0 2em;
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
#about li::before {
content: "\2767";
margin: 0 0.4em;
display: inline-block;
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
@media (min-width: 640px) {
#about ul {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
}
}
#guidelines h3 {
font-style: italic;
letter-spacing: 0.1em;
text-align: center;
margin: 1.5em 0 0.5em;
}
#guidelines h3::before,
#guidelines h3::after {
content: "";
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 3.7em;
height: 2em;
margin: 0 1rem;
-webkit-transform: translateY(-0.7rem);
transform: translateY(-0.7rem);
background: url('data:image/svg+xml;utf8, ')
no-repeat;
}
#guidelines h3::after {
-webkit-transform: translateY(-0.7rem) scaleX(-1);
transform: translateY(-0.7rem) scaleX(-1);
}
.link-guidelines,
.link-allstyles,
aside.profile a:not(span > a) {
text-align: center;
font-size: 1.3rem;
display: block;
margin: 1em auto;
}
.link-guidelines::before,
.link-guidelines::after,
.link-allstyles::before,
.link-allstyles::after,
aside.profile a:not(span > a)::before,
aside.profile a:not(span > a)::after {
display: inline-block;
content: "\261E";
font-style: initial;
padding: 0 0.7em;
-webkit-transform: scale(2);
transform: scale(2);
}
.link-guidelines::after,
.link-allstyles::after,
aside.profile a:not(span > a)::after {
-webkit-transform: scale(-2, 2);
transform: scale(-2, 2);
}
#contribute > .container > h3 {
font-size: 1.5rem;
text-transform: initial;
margin-top: 1em;
}
ol {
font-size: initial;
list-style-type: upper-roman;
margin: 0.5em 2.5em 3em;
}
ol > li {
padding-left: 0.3em;
}
ol > li + li {
margin-top: 0.5em;
}
footer#files {
position: relative;
margin-top: 1em;
}
footer#files a {
font-style: initial;
color: initial;
}
footer#files > .container {
display: grid;
grid-template-columns: repeat(3, -webkit-fit-content);
grid-template-columns: repeat(3, fit-content);
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
row-gap: 3.5em;
}
footer#files h3 {
grid-column: span 3;
padding-bottom: 0.7em;
}
[download] {
position: relative;
text-align: center;
max-width: 12ch;
margin: 0 auto;
}
[download]::before {
position: absolute;
top: -100%;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
font-size: 270%;
color: var(--clr-accent);
}
.link-downloadcss::before {
content: "\212D";
}
.link-downloadhtml::before {
content: "\210B";
}
.link-codepen::before {
content: "\2131";
}
aside::before {
height: 1em;
}
aside > .container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
width: 100%;
margin-top: 1em;
}
h4#profile-title {
font-size: 1.5em;
letter-spacing: 0.2em;
margin-bottom: 0.5em;
}
aside.profile ul {
padding: 1em 0;
}
aside.profile li + li {
margin-top: 0.5em;
}
aside.profile li {
display: grid;
grid-template-columns: auto 1fr auto;
-webkit-column-gap: 0.15em;
-moz-column-gap: 0.15em;
column-gap: 0.15em;
-webkit-box-align: end;
-ms-flex-align: end;
align-items: end;
}
aside.profile li > span:first-of-type {
grid-column: 1;
}
aside.profile li::after {
grid-column: 2;
content: "";
border-bottom: 0.15em dotted;
-webkit-transform: translateY(-450%);
transform: translateY(-450%);
}
aside.profile li > span:last-of-type {
grid-column: 3;
}
aside.profile {
margin-bottom: 3em;
}
#styles h2 {
margin-bottom: 1.2em;
}
.features {
margin: 0 auto;
}
.features li {
text-align: center;
margin-bottom: 2.5em;
}
.features li a {
display: block;
font-size: 1.8rem;
}
.features li a::after {
content: "\2042";
display: block;
font-size: 0.6em;
}
.features li > span > span {
font-style: italic;
}
.page-footer {
padding-top: 3em;
margin-bottom: 20vh;
}
.page-footer .container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
text-align: center;
padding-top: 2em;
}
.page-footer .container > * + * {
margin-top: 1.8em;
}
.page-footer .container > * {
padding-bottom: 1.8em;
border-bottom: 0.1em solid;
}
.page-footer .container > p:first-of-type {
padding: 0;
border: none;
}
.page-footer p:first-of-type a {
display: block;
font-variant: small-caps;
letter-spacing: 0.15em;
margin-top: 0.3em;
}
.page-footer ul {
display: grid;
grid-template-columns: repeat(3, auto);
grid-template-rows: repeat(4, auto);
-webkit-column-gap: 1em;
-moz-column-gap: 1em;
column-gap: 1em;
}
.link-twittercontact,
.link-rss,
.link-support {
position: relative;
display: block;
margin-top: 4em;
}
.link-twittercontact::before,
.link-rss::before,
.link-support::before {
position: absolute;
font-size: 3rem;
line-height: 1;
top: -1.2em;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
color: var(--clr-accent);
}
.link-twittercontact::before {
content: "\1316A";
line-height: 1.5;
}
.link-rss::before {
content: "\13292";
-webkit-transform: scaleX(-1) translateX(50%);
transform: scaleX(-1) translateX(50%);
font-size: 4rem;
line-height: 1.4;
}
.link-support::before {
content: "\13080";
}
.page-footer li:nth-of-type(2) {
grid-column: span 3;
grid-row: 4;
margin: 2.5em 0 4em;
}
.page-footer .link-github {
display: block;
}
.page-footer p:nth-last-of-type(2) a,
.page-footer p:last-of-type a {
display: inline;
color: var(--clr-link);
}
.page-footer p:nth-last-of-type(2),
.page-footer p:last-of-type {
position: relative;
}
@media (min-width: 1000px) {
.page-footer {
--href: "";
}
.page-footer .container {
display: grid;
grid-template-columns: auto min(65ch, 100%) auto;
margin: 0 auto;
}
.page-footer .container > * {
grid-column: 2;
}
.page-footer p:nth-last-of-type(2) a,
.page-footer p:last-of-type a {
--href: attr(href);
counter-increment: link-count;
}
.page-footer p:nth-last-of-type(2) a::before,
.page-footer p:nth-last-of-type(2) a::after,
.page-footer p:last-of-type a::after {
position: absolute;
font-family: var(--ff-script);
font-size: var(--fs-marg);
font-style: initial;
line-height: var(--lh-marg);
text-indent: 0;
color: var(--clr-accent);
top: 0;
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
.page-footer p:last-of-type a::after {
content: var(--href);
left: calc(100% + 1em);
}
.page-footer p:nth-last-of-type(2) a:first-of-type::before,
.page-footer p:nth-last-of-type(2) a:nth-last-of-type(2)::after {
top: 1em;
}
.page-footer p:nth-last-of-type(2) a:last-of-type::after,
.page-footer p:nth-last-of-type(2) a:nth-of-type(2)::before {
top: calc(var(--fs-marg) * 2 + calc(var(--lh-marg) * 1rem));
}
.page-footer p:nth-last-of-type(2) a:first-of-type::before,
.page-footer p:nth-last-of-type(2) a:nth-of-type(2)::before {
content: var(--href);
right: calc(100% + 1em);
}
.page-footer p:nth-last-of-type(2) a:last-of-type::after,
.page-footer p:nth-last-of-type(2) a:nth-last-of-type(2)::after {
content: var(--href);
left: calc(100% + 1em);
width: min(100%, 25ch);
}
}