]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Allow to customize vertical margin of `nav-divider` mixin 25393/head
authorysds <ysds.code@gmail.com>
Mon, 22 Jan 2018 00:54:06 +0000 (09:54 +0900)
committerysds <ysds.code@gmail.com>
Mon, 22 Jan 2018 00:54:06 +0000 (09:54 +0900)
scss/mixins/_nav-divider.scss

index 493de03a34adf63455121e5b6418c1ea93e0eb48..8eb9d9e3e1c51793a8f46e121a125e3503302126 100644 (file)
@@ -2,9 +2,9 @@
 //
 // Dividers (basically an hr) within dropdowns and nav lists
 
-@mixin nav-divider($color: #e5e5e5) {
+@mixin nav-divider($color: #e5e5e5, $margin-y: ($spacer / 2)) {
   height: 0;
-  margin: ($spacer / 2) 0;
+  margin: $margin-y 0;
   overflow: hidden;
   border-top: 1px solid $color;
 }