Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2017-10-10 16:46:43 +0300
committerGitHub <noreply@github.com>2017-10-10 16:46:43 +0300
commitf7acb278e2cfbe3cce461c5091852340a1abf734 (patch)
tree4437467105647b1f0e2081db9fdc9ce93ffbaaa8 /scss/_dropdown.scss
parent8e7ba02c5cf56bdc5b4c0fff71edec19ade1e3e9 (diff)
Refactor a few selectors so that the least specific ones are first. (#24310)
Diffstat (limited to 'scss/_dropdown.scss')
-rw-r--r--scss/_dropdown.scss26
1 files changed, 13 insertions, 13 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss
index 32657167f5..1782d5b9f1 100644
--- a/scss/_dropdown.scss
+++ b/scss/_dropdown.scss
@@ -9,19 +9,6 @@
@include caret;
}
-// Allow for dropdowns to go bottom up (aka, dropup-menu)
-// Just add .dropup after the standard .dropdown class and you're set.
-.dropup {
- .dropdown-menu {
- margin-top: 0;
- margin-bottom: $dropdown-spacer;
- }
-
- .dropdown-toggle {
- @include caret(up);
- }
-}
-
// The dropdown menu
.dropdown-menu {
position: absolute;
@@ -44,6 +31,19 @@
@include box-shadow($dropdown-box-shadow);
}
+// Allow for dropdowns to go bottom up (aka, dropup-menu)
+// Just add .dropup after the standard .dropdown class and you're set.
+.dropup {
+ .dropdown-menu {
+ margin-top: 0;
+ margin-bottom: $dropdown-spacer;
+ }
+
+ .dropdown-toggle {
+ @include caret(up);
+ }
+}
+
// Dividers (basically an `<hr>`) within the dropdown
.dropdown-divider {
@include nav-divider($dropdown-divider-bg);