]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Split up docs _nav.scss
authorMark Otto <markdotto@gmail.com>
Wed, 24 Jul 2019 17:03:39 +0000 (10:03 -0700)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 25 Jul 2019 07:25:39 +0000 (10:25 +0300)
- _navbar.scss for all main navbar code
- new _subnav.scss to move all subnav styles into

site/static/docs/4.3/assets/scss/_navbar.scss [new file with mode: 0644]
site/static/docs/4.3/assets/scss/_subnav.scss [moved from site/static/docs/4.3/assets/scss/_nav.scss with 58% similarity]
site/static/docs/4.3/assets/scss/docs.scss

diff --git a/site/static/docs/4.3/assets/scss/_navbar.scss b/site/static/docs/4.3/assets/scss/_navbar.scss
new file mode 100644 (file)
index 0000000..e3f03e7
--- /dev/null
@@ -0,0 +1,46 @@
+.bd-navbar {
+  min-height: 4rem;
+  background-color: $bd-purple-bright;
+
+  @include media-breakpoint-down(md) {
+    .navbar-nav-scroll {
+      width: 100%;
+      height: 2.5rem;
+      margin-top: .25rem;
+      overflow: hidden;
+
+      .navbar-nav {
+        padding-bottom: 2rem;
+        overflow-x: auto;
+        white-space: nowrap;
+        -webkit-overflow-scrolling: touch;
+      }
+    }
+  }
+
+  .navbar-nav {
+    .nav-link {
+      padding-right: .5rem;
+      padding-left: .5rem;
+      color: $bd-purple-light;
+
+      &.active,
+      &:hover,
+      &:focus {
+        color: $white;
+        background-color: transparent;
+      }
+
+      &.active {
+        font-weight: 600;
+      }
+    }
+  }
+
+  .navbar-nav-svg {
+    display: inline-block;
+    width: 1rem;
+    height: 1rem;
+    vertical-align: text-top;
+  }
+}
similarity index 58%
rename from site/static/docs/4.3/assets/scss/_nav.scss
rename to site/static/docs/4.3/assets/scss/_subnav.scss
index b93d42205fb7517a185de8f0d1db6e90bea55190..b82107ee97e75f7df848cef7eca7f5161b9d9eff 100644 (file)
@@ -1,7 +1,3 @@
-//
-// Main navbar
-//
-
 .bd-subnavbar {
   background-color: rgba(#fff, .75);
   backdrop-filter: blur(1rem);
     text-decoration: none;
   }
 }
-
-.bd-navbar {
-  min-height: 4rem;
-  background-color: $bd-purple-bright;
-
-  @include media-breakpoint-down(md) {
-    .navbar-nav-scroll {
-      width: 100%;
-      height: 2.5rem;
-      margin-top: .25rem;
-      overflow: hidden;
-
-      .navbar-nav {
-        padding-bottom: 2rem;
-        overflow-x: auto;
-        white-space: nowrap;
-        -webkit-overflow-scrolling: touch;
-      }
-    }
-  }
-
-  .navbar-nav {
-    .nav-link {
-      padding-right: .5rem;
-      padding-left: .5rem;
-      color: $bd-purple-light;
-
-      &.active,
-      &:hover,
-      &:focus {
-        color: $white;
-        background-color: transparent;
-      }
-
-      &.active {
-        font-weight: 600;
-      }
-    }
-  }
-
-  .navbar-nav-svg {
-    display: inline-block;
-    width: 1rem;
-    height: 1rem;
-    vertical-align: text-top;
-  }
-}
index 382746e0defd253a308fd1d5c13a1f62add25bbc..e811b0a0e3ff6681a569bb3ff47140359d14319a 100644 (file)
@@ -30,7 +30,8 @@
 
 // Load docs components
 @import "variables";
-@import "nav";
+@import "navbar";
+@import "subnav";
 @import "masthead";
 @import "ads";
 @import "content";