]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Revamp header, headings, aside spacing
authorMark Otto <markdotto@gmail.com>
Tue, 1 Dec 2020 22:32:51 +0000 (00:32 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 4 Dec 2020 05:52:03 +0000 (07:52 +0200)
Gradients caused artifacts in Safari, layout was feeling a little loose

site/content/docs/5.0/examples/cheatsheet-rtl/index.html
site/content/docs/5.0/examples/cheatsheet/cheatsheet.css
site/content/docs/5.0/examples/cheatsheet/cheatsheet.rtl.css
site/content/docs/5.0/examples/cheatsheet/index.html

index c5561272f2f3579928f76ffb1ee531bd1440b034..51a07eafa0a563e971a19b6ddcabf59b0636a788 100644 (file)
@@ -11,15 +11,15 @@ direction: rtl
 
 <header class="bd-header bg-dark py-3 d-flex align-items-stretch border-bottom border-dark">
   <div class="container-fluid d-flex align-items-center">
-    <h1 class="d-flex align-items-center text-white mb-0">
+    <h1 class="d-flex align-items-center fs-4 text-white mb-0">
       <img src="/docs/5.0/assets/brand/bootstrap-logo-white.svg" width="38" height="30" class="me-3" alt="Bootstrap">
       ورقة غش
     </h1>
     <a href="{{< docsref "/examples/cheatsheet" >}}" class="ms-auto link-light" hreflang="en">جدول بيانات LTR</a>
   </div>
 </header>
-<aside class="bd-aside sticky-xl-top text-muted align-self-start mb-3 mb-xl-5 px-3 px-xl-0">
-  <h2 class="h6 d-block pt-3 pt-xl-5 pb-2 pb-xl-3 border-bottom">على هذه الصفحة</h2>
+<aside class="bd-aside sticky-xl-top text-muted align-self-start mb-3 mb-xl-5 px-2">
+  <h2 class="h6 pt-4 pb-3 mb-4 border-bottom">على هذه الصفحة</h2>
   <nav class="small" id="toc">
     <ul class="list-unstyled">
       <li class="my-2">
index a67becc5c9d66125b5daa2b859ff15e01f11a7a9..fba8fd0a451796b8f491bd4986b3ed895bd1caa2 100644 (file)
@@ -94,12 +94,11 @@ body {
     /* rtl:end:ignore */
     z-index: 1030;
     grid-column: 1 / span 3;
-    min-height: 6rem;
   }
 
   .bd-aside,
   .bd-cheatsheet {
-    padding-top: 6rem;
+    padding-top: 4rem;
   }
 
   /**
@@ -117,34 +116,23 @@ body {
 
   .bd-aside {
     grid-area: 1 / 3;
-    scroll-margin-top: 6rem;
+    scroll-margin-top: 4rem;
   }
 
   .bd-cheatsheet section,
   .bd-cheatsheet section > h2 {
-    top: 6rem;
-    scroll-margin-top: 6rem;
+    top: 2rem;
+    scroll-margin-top: 2rem;
   }
 
   .bd-cheatsheet section > h2 {
-    background-image: linear-gradient(to bottom, #fff, transparent);
     grid-column: 1 / span 2;
   }
 
-  .bd-cheatsheet section > h2::before {
-    position: absolute;
-    top: 0;
-    bottom: 0;
-    z-index: -1;
-    width: 17.5%;
-    content: "";
-    background-image: linear-gradient(to bottom, #fff calc(100% - 2rem), transparent);
-  }
-
   .bd-cheatsheet article,
   .bd-cheatsheet .bd-heading {
-    top: 12rem;
-    scroll-margin-top: 12rem;
+    top: 8rem;
+    scroll-margin-top: 8rem;
   }
 
   .bd-cheatsheet .bd-heading {
index 91572b3235cb43c31e10691a4df32234b8060d73..8794e9571f85fff5b31d0de245d09f0422faf45c 100644 (file)
@@ -92,12 +92,11 @@ body {
     left: 0;
     z-index: 1030;
     grid-column: 1 / span 3;
-    min-height: 6rem;
   }
 
   .bd-aside,
   .bd-cheatsheet {
-    padding-top: 6rem;
+    padding-top: 4rem;
   }
 
   /**
@@ -115,34 +114,23 @@ body {
 
   .bd-aside {
     grid-area: 1 / 3;
-    scroll-margin-top: 6rem;
+    scroll-margin-top: 4rem;
   }
 
   .bd-cheatsheet section,
   .bd-cheatsheet section > h2 {
-    top: 6rem;
-    scroll-margin-top: 6rem;
+    top: 2rem;
+    scroll-margin-top: 2rem;
   }
 
   .bd-cheatsheet section > h2 {
-    background-image: linear-gradient(to bottom, #fff, transparent);
     grid-column: 1 / span 2;
   }
 
-  .bd-cheatsheet section > h2::before {
-    position: absolute;
-    top: 0;
-    bottom: 0;
-    z-index: -1;
-    width: 17.5%;
-    content: "";
-    background-image: linear-gradient(to bottom, #fff calc(100% - 2rem), transparent);
-  }
-
   .bd-cheatsheet article,
   .bd-cheatsheet .bd-heading {
-    top: 12rem;
-    scroll-margin-top: 12rem;
+    top: 8rem;
+    scroll-margin-top: 8rem;
   }
 
   .bd-cheatsheet .bd-heading {
index 52828fba41466e3a3b9851a596f299fb6d2eb66b..d51f929f96e6f98eb8e705f927e86114d4e0433c 100644 (file)
@@ -10,15 +10,15 @@ body_class: "bg-light"
 
 <header class="bd-header bg-dark py-3 d-flex align-items-stretch border-bottom border-dark">
   <div class="container-fluid d-flex align-items-center">
-    <h1 class="d-flex align-items-center text-white mb-0">
+    <h1 class="d-flex align-items-center fs-4 text-white mb-0">
       <img src="/docs/5.0/assets/brand/bootstrap-logo-white.svg" width="38" height="30" class="me-3" alt="Bootstrap">
       Cheatsheet
     </h1>
     <a href="{{< docsref "/examples/cheatsheet-rtl" >}}" class="ms-auto link-light" hreflang="ar">RTL cheatsheet</a>
   </div>
 </header>
-<aside class="bd-aside sticky-xl-top text-muted align-self-start mb-3 mb-xl-5 px-3 px-xl-0">
-  <h2 class="h6 d-block pt-3 pt-xl-5 pb-2 pb-xl-3 border-bottom">On this page</h2>
+<aside class="bd-aside sticky-xl-top text-muted align-self-start mb-3 mb-xl-5 px-2">
+  <h2 class="h6 pt-4 pb-3 mb-4 border-bottom">On this page</h2>
   <nav class="small" id="toc">
     <ul class="list-unstyled">
       <li class="my-2">