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

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/stylesheets/bootstrap/_dropdown.scss')
-rw-r--r--assets/stylesheets/bootstrap/_dropdown.scss53
1 files changed, 14 insertions, 39 deletions
diff --git a/assets/stylesheets/bootstrap/_dropdown.scss b/assets/stylesheets/bootstrap/_dropdown.scss
index 05e8b16..1782d5b 100644
--- a/assets/stylesheets/bootstrap/_dropdown.scss
+++ b/assets/stylesheets/bootstrap/_dropdown.scss
@@ -6,37 +6,7 @@
.dropdown-toggle {
// Generate the caret automatically
- &::after {
- display: inline-block;
- width: 0;
- height: 0;
- margin-left: $caret-width * .85;
- vertical-align: $caret-width * .85;
- content: "";
- border-top: $caret-width solid;
- border-right: $caret-width solid transparent;
- border-left: $caret-width solid transparent;
- }
-
- &:empty::after {
- margin-left: 0;
- }
-}
-
-// 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 {
- &::after {
- border-top: 0;
- border-bottom: $caret-width solid;
- }
- }
+ @include caret;
}
// The dropdown menu
@@ -61,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);
@@ -105,14 +88,6 @@
}
}
-// Open state for the dropdown
-.show {
- // Remove the outline when :focus is triggered
- > a {
- outline: 0;
- }
-}
-
.dropdown-menu.show {
display: block;
}