From ca9cb48ae4f148f47cfa52038208d875d77ba523 Mon Sep 17 00:00:00 2001 From: eashaw Date: Fri, 10 Sep 2021 15:31:03 -0500 Subject: [PATCH] Add more padding to the docs at <990px width (#1982) * remove padding class from container * styles for >576px and 576px - 990px * mobile styles, rearranged stylesheet to go from larger sizes to smaller sizes * fix padding on breadcrumbs-and-search * Update homepage.ejs --- .../pages/docs/basic-documentation.less | 81 +++++++++---------- .../views/pages/docs/basic-documentation.ejs | 4 +- website/views/pages/homepage.ejs | 6 -- 3 files changed, 41 insertions(+), 50 deletions(-) diff --git a/website/assets/styles/pages/docs/basic-documentation.less b/website/assets/styles/pages/docs/basic-documentation.less index ea7f33a0ac..6f83ce2d41 100644 --- a/website/assets/styles/pages/docs/basic-documentation.less +++ b/website/assets/styles/pages/docs/basic-documentation.less @@ -334,8 +334,9 @@ img { display: flex; - width: 100%; + max-width: 100%; height: auto; + margin: auto; padding-top: 24px; padding-bottom: 24px; } @@ -376,36 +377,8 @@ } - // for smaller screens - @media (max-width: 991px) { - - [purpose='right-sidebar'] { - width: 100%; - - [purpose='subtopics'] { - color: @core-fleet-black; - - a { - color: @core-vibrant-blue; - } - - } - - } - - [purpose='content'] { - width: 100%; - - h1:first-of-type { - display: none; // hides on mobile - } - - } - - } - // for larger screens - @media (min-width: 992px) { + @media (min-width: 990px) { ul { .topic { @@ -449,18 +422,6 @@ } - // .active { - // color: @core-vibrant-blue; - // position: absolute; - // height: 32px; - // transform: translate(-2px, -4px); - // border-left: 3px solid @core-vibrant-blue; - // border-radius: 2px; - // a { - // color: @core-vibrant-blue; - // } - // } - } } @@ -471,6 +432,42 @@ } + // for smaller screens + @media (max-width: 990px) { + + padding: 0px 40px; + + [purpose='right-sidebar'] { + width: 100%; + + [purpose='subtopics'] { + color: @core-fleet-black; + + a { + color: @core-vibrant-blue; + } + + } + + } + + [purpose='content'] { + width: 100%; + + h1:first-of-type { + display: none; // hides on mobile + } + + } + + } + // for mobile + @media (max-width: 576px) { + + padding: 0px 24px; + + } + } @import 'code-blocks.less'; // styles for code blocks and hljs diff --git a/website/views/pages/docs/basic-documentation.ejs b/website/views/pages/docs/basic-documentation.ejs index ad30186fad..c0b7434fa7 100644 --- a/website/views/pages/docs/basic-documentation.ejs +++ b/website/views/pages/docs/basic-documentation.ejs @@ -68,7 +68,7 @@
-
+
-
+
<%- partial( path.relative( path.dirname(__filename), diff --git a/website/views/pages/homepage.ejs b/website/views/pages/homepage.ejs index 6349ac300c..b877c20cc6 100644 --- a/website/views/pages/homepage.ejs +++ b/website/views/pages/homepage.ejs @@ -237,12 +237,6 @@

Teams use osquery with Fleet every day to stay secure and compliant.

-
- The logo of a significant contributor, production user, and/or customer of Fleet - The logo of a significant contributor, production user, and/or customer of Fleet - The logo of a significant contributor, production user, and/or customer of Fleet - The logo of a significant contributor, production user, and/or customer of Fleet -