From 25c5e0c7605f1b6743df1ac09f34ff1b0e7a8eed Mon Sep 17 00:00:00 2001 From: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com> Date: Tue, 8 Oct 2024 04:38:32 +0900 Subject: [PATCH] Update basic-documentation.less (#22688) - Fixed spaces and sizes of headings - Table margin-bottom so scroll sits correctly on narrow widths Closes https://github.com/fleetdm/confidential/issues/8071 --------- Co-authored-by: Eric --- .../assets/styles/bootstrap-overrides.less | 2 +- .../pages/docs/basic-documentation.less | 51 +++++++++++++------ 2 files changed, 37 insertions(+), 16 deletions(-) diff --git a/website/assets/styles/bootstrap-overrides.less b/website/assets/styles/bootstrap-overrides.less index 2cb92fbd3b..22637dec60 100644 --- a/website/assets/styles/bootstrap-overrides.less +++ b/website/assets/styles/bootstrap-overrides.less @@ -28,7 +28,7 @@ img { h1, h2, h3, h4, h5, h6 { font-family: @header-font; } -h1, h2, h3, h4, h5 { +h1, h2, h3, h4, h5, h6 { font-weight: 800; color: @core-fleet-black; } diff --git a/website/assets/styles/pages/docs/basic-documentation.less b/website/assets/styles/pages/docs/basic-documentation.less index bb15db3efd..0f9283105f 100644 --- a/website/assets/styles/pages/docs/basic-documentation.less +++ b/website/assets/styles/pages/docs/basic-documentation.less @@ -1,26 +1,34 @@ #basic-documentation { h1 { - font-size: 28px; - line-height: 34px; + font-size: 30px; } h2 { - font-size: 24px; - line-height: 28px; + font-size: 28px; } h3 { - font-size: 20px; - line-height: 24px; + font-size: 24px; } h4 { - margin-top: 24px; - font-size: 18px; - line-height: 24px; + font-size: 20px; } + h5 { + font-size: 18px; + } + + h6 { + font-size: 16px; + } + + h1, h2, h3, h4, h5, h6 { + line-height: 1.2; + } + + a:not(.btn) { color: @core-vibrant-blue; @@ -532,25 +540,33 @@ h3 { padding-bottom: 16px; - margin-top: 24px; - margin-bottom: 40px; - border-bottom: 1px dashed @core-fleet-black-25; + margin-top: 40px; scroll-margin-top: 104px; } h4 { padding-bottom: 24px; + margin-top: 24px; margin-bottom: 0px; scroll-margin-top: 104px; } h5 { - font-size: 16px; font-weight: 700; font-family: @main-font; - margin-bottom: 16px; + margin-top: 16px; + margin-bottom: 24px; scroll-margin-top: 104px; } + + h6 { + font-weight: 700; + font-family: @main-font; + margin-top: 16px; + margin-bottom: 24px; + scroll-margin-top: 104px; + } + pre + hr + h3 { padding-top: 0px; } @@ -750,7 +766,7 @@ border-collapse: collapse; font-size: 16px; line-height: 24px; - margin-bottom: 16px; + margin-bottom: 0; word-wrap: break-word; th { @@ -767,6 +783,11 @@ padding: 8px 7px 7px 8px; } } + + .table-responsive { + margin-bottom: 32px; + } + .note { background-color: @core-vibrant-blue-10; border-radius: 12px;