@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: $body-font-color; background: $body-background; line-height: $body-line-height; } a { text-decoration: none; color: $color-link; } .book-brand { padding: 0 $padding-16; margin-bottom: $padding-8; font-weight: 400; a { color: $body-font-color; } } // Navigation styles .book-nav { flex-grow: 0; width: $nav-menu-width; nav { position: fixed; height: 100%; width: $nav-menu-width; overflow-x: hidden; overflow-y: auto; font-size: $font-size-14; background: $nav-background; } ul { list-style: none; margin: 0; padding-left: $padding-16; li { line-height: $padding-16 * 2; } a { display: block; color: $nav-link-color; text-transform: capitalize; &[href]:hover { opacity: 0.5; } &.active { color: $color-link; } } } // class used for sections with bookRootSection: 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 } } // Table of Contents styles .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; > ul { margin: $size-48 0; padding: 0 $padding-8; border-left: $padding-1 solid $gray-200; } } ul { padding-left: $padding-8; list-style: none; } a { line-height: 1.25; padding: $padding-4 0; display: block; img { max-height: $font-size-16; } } } // Print styles @media print { .book-nav, .book-toc { display: none; } }