mirror of
https://github.com/hamaluik/mkbook.git
synced 2024-11-04 06:00:15 +00:00
184 lines
3.8 KiB
SCSS
184 lines
3.8 KiB
SCSS
html, body {
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
body {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
grid-template-rows: 1fr;
|
|
justify-items: stretch;
|
|
align-items: stretch;
|
|
|
|
nav.big {
|
|
background: #2c2c38;
|
|
padding: 0.5em 1em 1em;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
header {
|
|
margin: 0 0 1em;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
border-bottom: 2px solid #888888;
|
|
|
|
h1 {
|
|
font-size: 1.5em;
|
|
font-weight: 700;
|
|
font-family: $font-sansserif;
|
|
margin-bottom: 0;
|
|
text-align: left;
|
|
|
|
color: #eeeeee;
|
|
|
|
a {
|
|
color: #eeeeee;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: #cf5ccd;
|
|
}
|
|
}
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1em;
|
|
font-weight: 600;
|
|
font-family: $font-sansserif;
|
|
margin-bottom: 0;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
ol {
|
|
margin: 0 2em;
|
|
padding: 0;
|
|
li {
|
|
width: 100%;
|
|
font-size: 1.25em;
|
|
font-family: $font-sansserif;
|
|
color: #eeeeee;
|
|
a {
|
|
text-decoration: none;
|
|
margin: 0 0 0.25em 0;
|
|
color: #5babd1;
|
|
|
|
&:hover {
|
|
color: #cf5ccd;
|
|
}
|
|
|
|
&.current {
|
|
color: #cf5ccd;
|
|
|
|
&:hover {
|
|
color: #fefefe;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
nav.small {
|
|
display: none;
|
|
width: 100%;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: #2c2c38;
|
|
padding: 0;
|
|
|
|
>* {
|
|
margin: 0.5em;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
font-family: $font-sansserif;
|
|
color: #5babd1;
|
|
|
|
&:hover {
|
|
color: #cf5ccd;
|
|
}
|
|
}
|
|
|
|
span.title {
|
|
text-decoration: none;
|
|
font-family: $font-sansserif;
|
|
color: #fefefe;
|
|
}
|
|
|
|
span.placeholder {
|
|
width: 1em;
|
|
height: 1em;
|
|
}
|
|
}
|
|
|
|
>* {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
article {
|
|
max-width: 38em;
|
|
padding: 0.5em 2em 0 2em;
|
|
|
|
>* {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.next-chapter {
|
|
width: 100%;
|
|
|
|
a {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
margin-right: 0.5em;
|
|
|
|
font-size: 1.2em;
|
|
text-decoration: none;
|
|
font-family: $font-sansserif;
|
|
color: #5babd1;
|
|
|
|
&:hover {
|
|
color: #cf5ccd;
|
|
}
|
|
|
|
span:first-child {
|
|
margin-right: 0.5em;
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
width: 100%;
|
|
text-align: right;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
body {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto 1fr;
|
|
|
|
nav.big {
|
|
display: none;
|
|
}
|
|
|
|
nav.small {
|
|
display: flex;
|
|
}
|
|
|
|
article {
|
|
padding: 1em 0.5em 0 0.5em;
|
|
}
|
|
}
|
|
}
|