]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
make it big screen friendly
authorMark Otto <markdotto@gmail.com>
Sun, 28 May 2017 01:24:00 +0000 (18:24 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 28 May 2017 01:24:00 +0000 (18:24 -0700)
docs/_layouts/docs.html
docs/assets/scss/_content.scss
docs/assets/scss/_sidebar.scss

index 6c6e17fd56493827968cb81fc76c4a58acca50d9..540c4c733d6b71580a057a67bd5a06aa5c414af8 100644 (file)
     {% include nav-home.html %}
 
     <div class="container-fluid">
-      <div class="row">
+      <div class="row flex-xl-nowrap">
         <div class="col-12 col-md-3 col-xl-2 bd-sidebar">
           {% include nav-docs.html %}
         </div>
-        <main class="col-12 col-md-9 col-xl-10 py-md-3 pl-md-5 bd-content" role="main">
+        <main class="col-12 col-md-9 col-xl-auto py-md-3 pl-md-5 bd-content" role="main">
           <h1 class="bd-title" id="content">{{ page.title }}</h1>
           <p class="bd-lead">{{ page.description }}</p>
           {% include ads.html %}
index 086efbe149d74a1b65c92c9ce52211d967425cfd..4a30d74d4511dbff2a4774eafec4f903dbb65c47 100644 (file)
@@ -6,6 +6,7 @@
 
 .bd-content {
   @include media-breakpoint-up(xl) {
+    max-width: calc(100% - 320px);
     padding-right: 20%;
 
     #contents {
     }
   }
 
+  @media (min-width: 2000px) {
+    #markdown-toc {
+      padding-left: 6rem;
+    }
+  }
+
   // Hack the sticky header
   h2[id],
   h3[id] {
index 4ac556f8a5596d8fabfa4db2ec4d5959913cbe02..c5462e6cb4f9020d5f4b78273c5d3d9c788c3318 100644 (file)
@@ -12,6 +12,7 @@
   @include media-breakpoint-up(md) {
     position: sticky;
     top: 4rem;
+    max-width: 320px;
     max-height: calc(100vh - 4rem);
     overflow-y: auto;
   }