From 2a347e71be749afadb8e4ea6f1ead8398c22fd99 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 30 Jun 2021 11:17:30 +0100 Subject: [PATCH 1/3] Remove some default styling from body These mirror, either exactly or pretty close to exactly, what is set by the bootstrap reboot style, so there's no need for us to duplicate. --- app/assets/stylesheets/common.scss | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 736125bed..e4b8c2961 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -9,13 +9,6 @@ body { font-family: 'Helvetica Neue',Arial,sans-serif; font-size: $typeheight; - line-height: 1.6666; - color: #222; - background-color: #fff; - margin: 0px; - padding: 0px; - text-align: left; - height: 100%; } p > img { From 014b86f91cfb093bc40b8b0763a7c71bb942b12b Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 30 Jun 2021 11:29:34 +0100 Subject: [PATCH 2/3] Use bootstrap font family This contains and expanded list of fonts, covering more platforms and edge cases than ours, so there's no need to override. --- app/assets/stylesheets/common.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index e4b8c2961..c77f17572 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -7,7 +7,6 @@ /* Default rules for the body of every page */ body { - font-family: 'Helvetica Neue',Arial,sans-serif; font-size: $typeheight; } From 04ac7d9c030dcccd7e27aef0d8ffe8f09315fae7 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 30 Jun 2021 11:48:12 +0100 Subject: [PATCH 3/3] Alight the max-width of the content to one of the bootstrap breakpoints This makes various things easier to reason about, as well as making some grid things easier too. --- app/assets/stylesheets/common.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c77f17572..c95dcc982 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1028,7 +1028,7 @@ tr.turn:hover { .content-inner { position: relative; - max-width: 900px; + max-width: 960px; margin: auto; padding: $lineheight; }