hugo-book-theme/assets/styles.scss

130 lines
1.9 KiB
SCSS
Raw Normal View History

2018-09-05 16:22:04 +02:00
@import 'variables';
@import 'pure-extension';
@import 'markdown';
html {
font-size: $font-size-base;
}
html, body {
width: 100%;
min-height: 100%;
min-width: $body-min-width;
}
body {
color: $gray-800;
line-height: $body-line-height;
}
a {
text-decoration: none;
color: $color-link;
2018-09-05 16:22:04 +02:00
}
.book-brand {
padding: 0 $padding-16;
font-weight: 300;
}
// Navigation styles
2018-09-05 16:22:04 +02:00
.book-nav {
flex-grow: 0;
width: $nav-menu-width;
2018-09-05 16:22:04 +02:00
nav {
position: fixed;
height: 100%;
width: $nav-menu-width;
overflow-x: hidden;
overflow-y: auto;
font-size: $font-size-14;
background: $gray-100;
}
ul {
list-style: none;
2018-09-05 16:22:04 +02:00
padding-left: $padding-16;
}
a {
display: block;
color: $gray-800;
padding: $padding-4 $padding-16;
text-transform: capitalize;
&[href]:hover {
color: $gray-600;
}
&.active {
color: $color-link;
}
}
// class used for sections with bookTopSection: true
.book-nav-section {
margin-bottom: $padding-16;
> a { font-weight: 600; }
> ul { padding-left: 0; }
}
}
.book-content {
max-width: $content-max-width;
min-width: $content-min-width;
margin: 0 auto;
.book-page {
padding: $padding-16 $size-48;
}
a:visited {
color: $color-visited-link
}
2018-09-05 16:22:04 +02:00
}
// Table of Contents styles
2018-09-05 16:22:04 +02:00
.book-toc {
flex-grow: 0;
width: $toc-menu-width;
nav {
position: fixed;
height: 100%;
width: $toc-menu-width;
overflow-x: hidden;
overflow-y: auto;
font-size: $font-size-12;
2018-09-05 16:22:04 +02:00
> ul {
margin: $size-48 0;
padding: 0 $padding-16;
border-left: $padding-1 solid $gray-200;
}
}
ul {
padding-left: $padding-4;
list-style: none;
}
a {
line-height: 1.25;
padding: $padding-4 0;
display: block;
img {
max-height: $font-size-16;
}
}
}
// Print styles
@media print {
}