From a5141b95688357114dc1b9afc3b77660a96fe6d6 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 7 May 2018 16:54:40 -0700 Subject: [PATCH] Consistent breadcrumb spacing (as long as content's first header is h1) --- assets/css/devportal.css | 12 ++++++++---- tool/template-breadcrumbs.html | 2 +- tool/template-landing-children.html | 11 +++++------ tool/template-landing-docs.html | 6 ++++-- tool/template-landing-references.html | 5 +++-- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/assets/css/devportal.css b/assets/css/devportal.css index 9be192d405..04a2c48650 100644 --- a/assets/css/devportal.css +++ b/assets/css/devportal.css @@ -25,8 +25,9 @@ th { /* Top navigation ----------------------------------------------------------- */ -.navbar { +.navbar.fixed-top { font-weight: 300; + border-bottom: 1px solid #C9CDD1; } .navbar-brand { @@ -135,12 +136,14 @@ th { margin-top: 32px; line-height: 1.2; } -.content h1:first-child { +.content h1:first-child, +.landing section:first-of-type h1:first-child { margin-top: 0; line-height: 1.2; } -.content h1:first-child:before { - margin-top: -100px; +.content h1:first-child:before, +.landing section:not(.splash-head):first-of-type h1:first-child:before { + margin-top: -90px; } .content h2 { margin-top: 28px; @@ -555,6 +558,7 @@ a.current { } .breadcrumbs-wrap .breadcrumb { padding: 0; + margin-bottom: 0; } diff --git a/tool/template-breadcrumbs.html b/tool/template-breadcrumbs.html index f95e79ca77..b4b036daab 100644 --- a/tool/template-breadcrumbs.html +++ b/tool/template-breadcrumbs.html @@ -1,4 +1,4 @@ -