diff --git a/website/assets/styles/pages/handbook/basic-handbook.less b/website/assets/styles/pages/handbook/basic-handbook.less index b07603b8b9..ce40f2ea3e 100644 --- a/website/assets/styles/pages/handbook/basic-handbook.less +++ b/website/assets/styles/pages/handbook/basic-handbook.less @@ -1,22 +1,18 @@ #basic-handbook { - + padding: 0px 40px; a { color: @core-vibrant-blue; } - ul { list-style: none; padding-left: 8px; - li { padding-bottom: 8px; } } [purpose='search'] { - padding-bottom: 16px; - input { padding-top: 6px; padding-bottom: 6px; @@ -25,7 +21,6 @@ font-size: 16px; line-height: 24px; } - .input-group { border-top-left-radius: 6px; border-bottom-left-radius: 6px; @@ -33,24 +28,19 @@ border-bottom-right-radius: 6px; border: 1px solid @core-fleet-black-25; } - .input-group:focus-within { border: 1px solid @core-vibrant-blue; } - .docsearch-input { height: 100%; width: 98%; } - .ds-input:focus { outline: rgba(0, 0, 0, 0); } - .input-group-text { color: @core-fleet-black-50; } - .form-control { height: 36px; padding: 0px; @@ -59,6 +49,7 @@ border: none; } } + [purpose='breadcrumbs'] { padding-bottom: 16px; padding-top: 16px; @@ -75,58 +66,50 @@ } [purpose='right-sidebar'] { - min-width: max-content; - max-width: 210px; - margin: 0px 40px; p, a { + display: block; font-size: 14px; } - h4 { padding-top: 16px; font-size: 16px; } [purpose='maintainer'] { - padding-top: 24px; padding-bottom: 8px; - .maintainer-image { + img { height: 32px; width: 32px; border-radius: 100%; margin-bottom: 24px; } - a { font-size: 14px; } - h4 { font-size: 16px; font-weight: 700; } - } [purpose='subtopics'] { color: @core-fleet-black; border-left: 1px solid @core-vibrant-blue-25; box-sizing: content-box; - ul { li:last-child { padding-bottom: 0px; } } a { + display: flex; + word-wrap: break-word; text-decoration: none; &:hover { color: @core-vibrant-blue; } - } - .active:before { border: 1.5px solid @core-vibrant-blue; background-color: @core-vibrant-blue; @@ -190,7 +173,26 @@ } ul { list-style-type: disc; - padding-left: 32px; + padding-left: 16px; + } + li { + line-height: 24px; + padding-bottom: 16px; + p { // Making sure our list items stay a consistent size if the contents get wrapped in a
tag coverted from Markdown. + margin-bottom: 0; + } + ol, ul { // adding padding to nested lists + padding-top: 16px; + li:last-child { // removing the padding from the last item of nested lists + padding-bottom: 0px; + } + } + } + ol { + padding-left: 16px; + li { + padding-bottom: 16px; + } } img { display: flex; @@ -239,16 +241,14 @@ font-size: 16px; line-height: 24px; margin-bottom: 16px; - + table-layout: auto; + max-width: 100%; th { font-weight: @bold; - font-family: @header-font; border: 1px solid @border-lt-gray; padding: 8px 7px 7px 8px; } - td { - font-family: @main-font; border: 1px solid @border-lt-gray; padding: 8px 7px 7px 8px; } @@ -274,19 +274,28 @@ font-size: 16px; } } - } - - - // for larger screens - @media (min-width: 992px) { - ul { - .topic { - padding-left: 8px; + .markdown-heading:hover { + .markdown-link { + height: 16px; + vertical-align: middle; + margin-left: 8px; + content: url('/images/icon-link-16x16@2x.png'); } } + } + + [purpose='handbook-landing-page'] { + .markdown-heading:hover { + .markdown-link { + display: none; + } + } + } + + @media (min-width: 1199px) { + [purpose='right-sidebar'] { - max-width: 210px; - margin-left: 40px; + width: 200px; } [purpose='page-title'] { h1 { @@ -294,61 +303,36 @@ } } [purpose='content'] { + max-width: 720px; min-width: 0px; // in order for
elements to shrink properly, the parent flex element needs to override min-width auto
}
}
- // for smaller screens
- @media (max-width: 991px) {
- padding: 0px 40px;
-
- [purpose='search'] {
-
- padding-bottom: 24px;
- }
-
- [purpose='right-sidebar'] {
- max-width: 150px;
- margin-left: 40px;
- margin-right: 0px;
-
- [purpose='subtopics'] {
- color: @core-fleet-black;
-
- a {
- word-wrap: break-word;
- }
- }
- }
+ // for larger screens (>900px)
+ @media (max-width: 1199px) {
[purpose='content'] {
-
- h1:first-of-type {
- display: none; // hides on mobile
- }
+ max-width: 630px;
+ min-width: 0px;
}
- .handbook-content {
- max-width: 80%;
+ [purpose='right-sidebar'] {
+ width: 200px;
}
-
}
- // for even smaller screens
- @media (max-width: 767px) {
- padding: 0px 40px;
- .handbook-content {
+ // for smaller screens (>768px)
+ @media (max-width: 991px) {
+ [purpose='content'] {
max-width: 100%;
}
[purpose='search'] {
padding-bottom: 0px;
}
[purpose='right-sidebar'] {
- max-width: 100%;
+ width: 100%;
margin: 0;
-
[purpose='subtopics'] {
border-left: none;
-
.active:before {
border: none;
padding: 0px;
@@ -357,22 +341,22 @@
}
}
}
+ }
- [purpose='content'] {
-
- img {
- margin: auto;
- }
+ // for even smaller screens (>576px)
+ @media (max-width: 767px) {
+ [purpose='search'] {
+ padding-bottom: 0px;
+ }
+ [purpose='right-sidebar'] {
+ width: 100%;
+ margin: 0;
}
}
- // for mobile
+ // for mobile screens (< 576px)
@media (max-width: 576px) {
padding: 0px 24px;
-
- [purpose='search'] {
- min-width: calc(100% - 48px);
- }
}
diff --git a/website/views/pages/handbook/basic-handbook.ejs b/website/views/pages/handbook/basic-handbook.ejs
index 583f01476d..1a56078c95 100644
--- a/website/views/pages/handbook/basic-handbook.ejs
+++ b/website/views/pages/handbook/basic-handbook.ejs
@@ -1,11 +1,11 @@
-
-
+
+
-