mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-26 21:03:58 -06:00
305 lines
5.3 KiB
CSS
305 lines
5.3 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700;900&family=Ubuntu+Mono&display=swap');
|
|
|
|
:root{
|
|
--ff-sans: 'Raleway', sans-serif;
|
|
--ff-mono: 'Ubuntu Mono', monospace;
|
|
--fw-regular: 400;
|
|
--fw-medium: 500;
|
|
--fw-bold: 700;
|
|
--fw-black: 900;
|
|
--f-lh: 28px;
|
|
}
|
|
|
|
@media (min-width: 1200px){
|
|
:root {
|
|
font-size: 1.5vw;
|
|
}
|
|
}
|
|
|
|
/* Maximal font size should be 24px, so stop font scalling at some point (24 / (1.5/100)) */
|
|
|
|
@media (min-width: 1500px){
|
|
:root {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
/* ************** */
|
|
/* *** Layout *** */
|
|
/* ************** */
|
|
|
|
body{
|
|
margin:0;
|
|
padding:0;
|
|
font-family: var(--ff-sans);
|
|
font-weight: var(--fw-medium);
|
|
font-size: 16px;
|
|
}
|
|
|
|
@media screen and (min-width: 57rem) {
|
|
body{
|
|
display:grid;
|
|
grid-template-columns: 15rem 1fr;
|
|
}
|
|
main.main-content, main.titlepage, div.footnotes{max-width:40rem;grid-column: 2}
|
|
main.titlepage {grid-row: 1;}
|
|
nav.TOC{
|
|
grid-row:1;
|
|
grid-column: 1;
|
|
min-height:100vh;
|
|
}
|
|
}
|
|
|
|
|
|
/* ****************** */
|
|
/* *** Formatting *** */
|
|
/* ****************** */
|
|
|
|
main.main-content,main.titlepage,div.footnotes{
|
|
padding:1rem;
|
|
}
|
|
|
|
p.indent, p.noindent{text-indent:0}
|
|
/* code{font-size:1.4rem;} */
|
|
/* figure pre.listings{font-size: 1.4rem;} */
|
|
figure.texsource, figure.shellcommand, figure.htmlsource, figure.luasource, figure.textsource{
|
|
margin:0.5rem 0;
|
|
padding-left:0.5rem;
|
|
overflow:auto;
|
|
}
|
|
figure pre.listings{font-size: 1em;}
|
|
|
|
.chapterToc, .sectionToc, .subsectionToc{margin:0;padding:0;}
|
|
nav.TOC{
|
|
font-size:0; /* trick to remove vertical space above TOC entries */
|
|
}
|
|
|
|
.chapterToc ~ .likesectionToc, .chapterToc ~ .sectionToc, .likechapterToc ~ .likesectionToc, .likechapterToc ~ .sectionToc {padding-left:2em;margin-left:0}
|
|
.chapterToc ~ .likesectionToc ~ .likesubsectionToc, .chapterToc ~ .likesectionToc ~ .subsectionToc, .chapterToc ~ .sectionToc ~ .likesubsectionToc, .chapterToc ~ .sectionToc ~ .subsectionToc, .likechapterToc ~ .likesectionToc ~ .likesubsectionToc, .likechapterToc ~ .likesectionToc ~ .subsectionToc, .likechapterToc ~ .sectionToc ~ .likesubsectionToc, .likechapterToc ~ .sectionToc ~ .subsectionToc {padding-left:4em;margin-left:0;}
|
|
|
|
nav.TOC span{
|
|
margin-top:0;
|
|
font-size:0.8rem;
|
|
}
|
|
|
|
nav.TOC a, nav.TOC a:visited{
|
|
text-decoration:none;
|
|
}
|
|
|
|
.chapterToc,
|
|
.sectionToc,
|
|
.subsectionToc,
|
|
.likechapterToc {
|
|
display: block;
|
|
}
|
|
|
|
.chapterToc a,
|
|
.sectionToc a,
|
|
.subsectionToc a,
|
|
.likechapterToc a {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
padding: 7px 10px 7px 15px;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
}
|
|
|
|
.chapterToc span,
|
|
.sectionToc span,
|
|
.subsectionToc span {
|
|
display: block;
|
|
}
|
|
|
|
.chapterToc .chapter_number, .sectionToc .chapter_number, .subsectionToc .chapter_number {
|
|
margin-right: 7px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ************** */
|
|
/* *** Colors *** */
|
|
/* ************** */
|
|
|
|
|
|
body{
|
|
background-color:#F5F2EF;
|
|
}
|
|
|
|
a {
|
|
color: #5D9FF0;
|
|
}
|
|
|
|
main.main-content, div.footnotes, main.titlepage{
|
|
background-color:white;
|
|
}
|
|
|
|
nav.TOC,nav.TOC a, nav.TOC a:visited{
|
|
background-color:#F5F2EF;
|
|
color:#000000;
|
|
}
|
|
|
|
nav.TOC span:hover,
|
|
nav.TOC span:hover *,
|
|
nav.TOC span.chapterToc.selected,
|
|
nav.TOC span.chapterToc.selected a {
|
|
background-color:#dad5ca;
|
|
}
|
|
|
|
figure.texsource, figure.shellcommand, figure.htmlsource, figure.luasource, figure.textsource{
|
|
border:1px solid #cec1aa;
|
|
background-color:#d5e3c6;
|
|
}
|
|
|
|
.main-content {
|
|
line-height: var(--f-lh);
|
|
}
|
|
|
|
div.footnotes {
|
|
border: none;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.footnote-mark {
|
|
margin-right: 3px;
|
|
}
|
|
|
|
table.tabular {
|
|
width: 100%;
|
|
}
|
|
|
|
figure.figure {
|
|
margin: 30px 0px 30px 0px;;
|
|
text-align: center;
|
|
padding: 0;
|
|
}
|
|
|
|
figcaption.caption {
|
|
text-indent: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
.table div.center, .table div.center div.center {
|
|
margin: 0;
|
|
}
|
|
|
|
.table {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.table table {
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.menu {
|
|
position: relative;
|
|
}
|
|
|
|
.toggle-menu-label {
|
|
display: none;
|
|
}
|
|
|
|
.menu input {
|
|
display: none;
|
|
}
|
|
|
|
.menu-items {
|
|
display: block;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.menu-items .chapterToc {
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.menu-items a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
.toggle-menu-label {
|
|
display: block;
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
}
|
|
.hamb{
|
|
cursor: pointer;
|
|
float: right;
|
|
padding: 30px 20px;
|
|
position: absolute;
|
|
right: 0px;
|
|
top: 0px;
|
|
}
|
|
|
|
.hamb-line {
|
|
background: #000;
|
|
display: block;
|
|
height: 2px;
|
|
position: relative;
|
|
width: 24px;
|
|
}
|
|
|
|
.hamb-line::before,
|
|
.hamb-line::after{
|
|
background: #000;
|
|
content: '';
|
|
display: block;
|
|
height: 100%;
|
|
position: absolute;
|
|
transition: all .2s ease-out;
|
|
width: 100%;
|
|
}
|
|
.hamb-line::before{
|
|
top: 5px;
|
|
}
|
|
.hamb-line::after{
|
|
top: -5px;
|
|
}
|
|
|
|
span.hamb-line:hover {
|
|
background-color: #000 !important;
|
|
}
|
|
|
|
.menu-items {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
width: 100%;
|
|
background-color: #f2f2f2;
|
|
padding-left: 3px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.menu-items .chapterToc {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.menu {
|
|
background: #F5F2EF;
|
|
padding: 20px 0px;
|
|
position: relative;
|
|
}
|
|
|
|
#toggle-menu:checked ~ .menu-items {
|
|
display: block;
|
|
}
|
|
|
|
.logo {
|
|
display: block;
|
|
color: #000;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
padding-left: 17px;
|
|
}
|
|
}
|
|
|
|
div.center {
|
|
margin-left: 0 !important;
|
|
margin-right: 0 !important;
|
|
}
|