From 92c63a39e6cca40b831a9c9acf208515ebcd79a6 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 25 Mar 2019 19:32:02 +0100 Subject: [PATCH] #27, Set minimum page width to 320px for smaller devices --- assets/_utils.scss | 2 +- assets/_variables.scss | 19 ++++++++----------- assets/book.scss | 1 - 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/assets/_utils.scss b/assets/_utils.scss index dcf343c..4ee35ca 100644 --- a/assets/_utils.scss +++ b/assets/_utils.scss @@ -44,7 +44,7 @@ @mixin dark-links { a { - color: $nav-link-color; + color: $color-dark-link; } a.active { diff --git a/assets/_variables.scss b/assets/_variables.scss index 1890e35..19d69b9 100644 --- a/assets/_variables.scss +++ b/assets/_variables.scss @@ -23,21 +23,18 @@ $black: #000; $color-link: #004ed0; $color-visited-link: #8440f1; +$color-dark-link: $gray-800; $body-background: white; $body-font-color: $gray-800; $body-font-weight: 400; -$body-min-width: 25rem; -$nav-background: $body-background; -$nav-link-color: $gray-800; - -$header-height: 3.5rem; -$menu-width: 18rem; -$toc-width: 14rem; - -$container-min-width: $body-min-width; +$body-min-width: 20rem; $container-max-width: 80rem; -$sm-breakpoint: $menu-width + $body-min-width; -$md-breakpoint: $sm-breakpoint + $toc-width; \ No newline at end of file +$header-height: 3.5rem; +$menu-width: 16rem; +$toc-width: 14rem; + +$sm-breakpoint: $menu-width + $body-min-width + 5; +$md-breakpoint: $sm-breakpoint + $toc-width; diff --git a/assets/book.scss b/assets/book.scss index 01443f4..b1b0892 100644 --- a/assets/book.scss +++ b/assets/book.scss @@ -84,7 +84,6 @@ ul.pagination { } .container { - min-width: $container-min-width; max-width: $container-max-width; margin: 0 auto; }