You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mkbook/style/toc.scss

109 lines
1.5 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.25rem 0;
color: #5babd1;
&:hover {
color: #cf5ccd;
}
}
}
}
> 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;
}
}
}
}