From 5c72cea3deecc3bee80f83e1d94be38bc2da1b74 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 13 Mar 2024 23:37:16 -0500 Subject: [PATCH] Website: Handbook style fixes (#17610) Closes: https://github.com/fleetdm/confidential/issues/5750 Changes: - Updated the handbook stylesheet: - Breadcrumbs from having linebreaks and overflowing outside the page's container - Added a max width to mermaid diagrams to prevent them from overflowing outside the page's container - Updated the size of `

` text on smaller screens to prevent the page's title from overflowing outside of the page's container --- .../styles/pages/handbook/basic-handbook.less | 17 ++++++++++++++ .../views/pages/handbook/basic-handbook.ejs | 22 ++++++++----------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/website/assets/styles/pages/handbook/basic-handbook.less b/website/assets/styles/pages/handbook/basic-handbook.less index 9cec13dc60..0cd2959a2d 100644 --- a/website/assets/styles/pages/handbook/basic-handbook.less +++ b/website/assets/styles/pages/handbook/basic-handbook.less @@ -102,12 +102,22 @@ } [purpose='breadcrumbs'] { + [purpose='page-breadcrumbs'] { + max-width: 100%; + overflow: hidden; + } + padding-bottom: 16px; padding-top: 16px; p, a, strong { font-size: 12px; line-height: 18px; } + [purpose='current-page-breadcrumb'] { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } a { text-decoration: none; &.active { @@ -323,6 +333,7 @@ font-family: @code-font; display: inline-block; svg { + max-width: 100%; max-height: 600px; } } @@ -628,6 +639,12 @@ [purpose='handbook-template'] { padding: 0px 24px; } + [purpose='content'] { + h1 { + font-size: 28px; + line-height: 120%; + } + } } diff --git a/website/views/pages/handbook/basic-handbook.ejs b/website/views/pages/handbook/basic-handbook.ejs index afcbdc8676..9e0dab8c6e 100644 --- a/website/views/pages/handbook/basic-handbook.ejs +++ b/website/views/pages/handbook/basic-handbook.ejs @@ -24,22 +24,18 @@