mirror of
https://github.com/hamaluik/mkbook.git
synced 2024-11-18 03:25:29 +00:00
115 lines
1.6 KiB
SCSS
115 lines
1.6 KiB
SCSS
body.toc {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
|
|
> * {
|
|
width: 36rem;
|
|
}
|
|
|
|
header {
|
|
margin-top: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
font-weight: 700;
|
|
font-family: $font-sansserif;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
font-family: $font-sansserif;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
time {
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
font-family: $font-serif;
|
|
}
|
|
}
|
|
|
|
nav {
|
|
background: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
|
|
h1 {
|
|
text-align: left;
|
|
font-size: 2.5rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
ol {
|
|
li {
|
|
font-size: 1.5rem;
|
|
font-family: $font-sansserif;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
margin: 0 0 0.25em 0;
|
|
color: #5babd1;
|
|
|
|
&:hover {
|
|
color: #cf5ccd;
|
|
}
|
|
}
|
|
|
|
ol {
|
|
li {
|
|
font-size: 1.25rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
> ol {
|
|
margin-left: 0.5rem;
|
|
margin-right: 0.5rem;
|
|
}
|
|
}
|
|
|
|
article,
|
|
nav {
|
|
padding: 0;
|
|
> * {
|
|
margin-left: 0.5rem;
|
|
margin-right: 0.5rem;
|
|
}
|
|
}
|
|
|
|
footer {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
body.toc {
|
|
> * {
|
|
width: 100%;
|
|
}
|
|
|
|
header {
|
|
h1,
|
|
h2,
|
|
time {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
nav {
|
|
h1 {
|
|
font-size: 1.75rem;
|
|
}
|
|
}
|
|
}
|
|
}
|