aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-30 14:14:51 -0700
committerMark Otto <[email protected]>2013-07-30 14:14:51 -0700
commite6ac348bfc965890ae58f9a052fbe715c52b777d (patch)
tree7b3fec436fdb099fed4bd42365ddf2a7f3dee665 /less
parent96eef43deea6d923f508875d509f46cff7b84146 (diff)
parente0395b425d0a31d3cecda0793fcc2d0bb84ed8fb (diff)
downloadbootstrap-e6ac348bfc965890ae58f9a052fbe715c52b777d.tar.xz
bootstrap-e6ac348bfc965890ae58f9a052fbe715c52b777d.zip
Merge pull request #8726 from andreypopp/3.0.0-wip
Fix out of order variable declaration order
Diffstat (limited to 'less')
-rw-r--r--less/navs.less61
-rw-r--r--less/variables.less68
2 files changed, 63 insertions, 66 deletions
diff --git a/less/navs.less b/less/navs.less
index 4051dbb75..340b63970 100644
--- a/less/navs.less
+++ b/less/navs.less
@@ -73,6 +73,36 @@
// Nav variations
// --------------------------------------------------
+// Justified nav links
+// -------------------------
+
+.nav-justified {
+ width: 100%;
+ > li {
+ float: none;
+ display: table-cell;
+ width: 1%;
+ > a {
+ text-align: center;
+ }
+ }
+}
+
+// Move borders to anchors instead of bottom of list
+.nav-tabs-justified {
+ border-bottom: 0;
+ > li > a {
+ border-bottom: 1px solid @nav-tabs-justified-link-border-color;
+
+ // Override margin from .nav-tabs
+ margin-right: 0;
+ }
+ > .active > a {
+ border-bottom-color: @nav-tabs-justified-active-link-border-color;
+ }
+
+}
+
// Tabs
// -------------------------
@@ -154,37 +184,6 @@
}
}
-// Justified nav links
-// -------------------------
-
-.nav-justified {
- width: 100%;
- > li {
- float: none;
- display: table-cell;
- width: 1%;
- > a {
- text-align: center;
- }
- }
-}
-
-// Move borders to anchors instead of bottom of list
-.nav-tabs-justified {
- border-bottom: 0;
- > li > a {
- border-bottom: 1px solid @nav-tabs-justified-link-border-color;
-
- // Override margin from .nav-tabs
- margin-right: 0;
- }
- > .active > a {
- border-bottom-color: @nav-tabs-justified-active-link-border-color;
- }
-
-}
-
-
// Tabbable tabs
// -------------------------
diff --git a/less/variables.less b/less/variables.less
index 878725f6c..71e813d32 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -174,6 +174,39 @@
@zindex-modal-background: 1040;
@zindex-modal: 1050;
+// Media queries breakpoints
+// --------------------------------------------------
+
+// Tiny screen / phone
+@screen-tiny: 480px;
+@screen-phone: @screen-tiny;
+
+// Small screen / tablet
+@screen-small: 768px;
+@screen-tablet: @screen-small;
+
+// Medium screen / desktop
+@screen-medium: 992px;
+@screen-desktop: @screen-medium;
+
+// So media queries don't overlap when required, provide a maximum
+@screen-small-max: (@screen-medium - 1);
+@screen-tablet-max: @screen-small-max;
+
+// Large screen / wide desktop
+@screen-large: 1200px;
+@screen-large-desktop: @screen-large;
+
+// Grid system
+// --------------------------------------------------
+
+// Number of columns in the grid system
+@grid-columns: 12;
+// Padding, to be divided by two and applied to the left and right of all columns
+@grid-gutter-width: 30px;
+// Point at which the navbar stops collapsing
+@grid-float-breakpoint: @screen-tablet;
+
// Navbar
// -------------------------
@@ -520,30 +553,6 @@
@component-offset-horizontal: 180px;
-// Media queries breakpoints
-// --------------------------------------------------
-
-// Tiny screen / phone
-@screen-tiny: 480px;
-@screen-phone: @screen-tiny;
-
-// Small screen / tablet
-@screen-small: 768px;
-@screen-tablet: @screen-small;
-
-// Medium screen / desktop
-@screen-medium: 992px;
-@screen-desktop: @screen-medium;
-
-// So media queries don't overlap when required, provide a maximum
-@screen-small-max: (@screen-medium - 1);
-@screen-tablet-max: @screen-small-max;
-
-// Large screen / wide desktop
-@screen-large: 1200px;
-@screen-large-desktop: @screen-large;
-
-
// Container sizes
// --------------------------------------------------
@@ -555,14 +564,3 @@
// Large screen / wide desktop
@container-large-desktop: 1170px;
-
-
-// Grid system
-// --------------------------------------------------
-
-// Number of columns in the grid system
-@grid-columns: 12;
-// Padding, to be divided by two and applied to the left and right of all columns
-@grid-gutter-width: 30px;
-// Point at which the navbar stops collapsing
-@grid-float-breakpoint: @screen-tablet;