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/_navbar.scss')
-rw-r--r--assets/stylesheets/bootstrap/_navbar.scss85
1 files changed, 72 insertions, 13 deletions
diff --git a/assets/stylesheets/bootstrap/_navbar.scss b/assets/stylesheets/bootstrap/_navbar.scss
index 881af0d..7dc2a2b 100644
--- a/assets/stylesheets/bootstrap/_navbar.scss
+++ b/assets/stylesheets/bootstrap/_navbar.scss
@@ -69,26 +69,23 @@
.navbar-brand {
float: left;
- padding-top: $navbar-brand-padding-y;
+ padding-top: $navbar-brand-padding-y;
padding-bottom: $navbar-brand-padding-y;
margin-right: 1rem;
font-size: $font-size-lg;
+ line-height: inherit;
@include hover-focus {
text-decoration: none;
}
-
- > img {
- display: block;
- }
}
.navbar-divider {
float: left;
width: $border-width;
- padding-top: .425rem;
- padding-bottom: .425rem;
+ padding-top: $navbar-divider-padding-y;
+ padding-bottom: $navbar-divider-padding-y;
margin-right: $navbar-padding-x;
margin-left: $navbar-padding-x;
overflow: hidden;
@@ -99,24 +96,74 @@
}
+// Navbar text
+//
+//
+
+.navbar-text {
+ display: inline-block;
+ padding-top: .425rem;
+ padding-bottom: .425rem;
+}
+
+
// Navbar toggle
//
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
// Bootstrap JavaScript plugin.
.navbar-toggler {
- padding: .5rem .75rem;
- font-size: $font-size-lg;
+ width: 2.5em;
+ height: 2em;
+ padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
+ font-size: $navbar-toggler-font-size;
line-height: 1;
- background: none;
+ background: transparent no-repeat center center;
+ background-size: 24px 24px;
border: $border-width solid transparent;
- @include border-radius($btn-border-radius);
+ @include border-radius($navbar-toggler-border-radius);
@include hover-focus {
text-decoration: none;
}
}
+// scss-lint:disable ImportantRule
+.navbar-toggleable {
+ @each $breakpoint in map-keys($grid-breakpoints) {
+ $next: breakpoint-next($breakpoint, $grid-breakpoints);
+
+ &-#{$breakpoint} {
+ @include clearfix;
+
+ @include media-breakpoint-down($breakpoint) {
+ .navbar-brand {
+ display: block;
+ float: none;
+ margin-top: .5rem;
+ margin-right: 0;
+ }
+
+ .navbar-nav {
+ margin-top: .5rem;
+ margin-bottom: .5rem;
+
+ .dropdown-menu {
+ position: static;
+ float: none;
+ }
+ }
+ }
+
+ @include media-breakpoint-up($next) {
+ display: block;
+ }
+ }
+ }
+}
+// scss-lint:enable ImportantRule
+
+
// Navigation
//
// Custom navbar navigation built on the base `.nav` styles.
@@ -143,7 +190,8 @@
// Dark links against a light background
.navbar-light {
- .navbar-brand {
+ .navbar-brand,
+ .navbar-toggler {
color: $navbar-light-active-color;
@include hover-focus {
@@ -170,6 +218,11 @@
}
}
+ .navbar-toggler {
+ background-image: $navbar-light-toggler-bg;
+ border-color: $navbar-light-toggler-border;
+ }
+
.navbar-divider {
background-color: rgba(0,0,0,.075);
}
@@ -177,7 +230,8 @@
// White links against a dark background
.navbar-dark {
- .navbar-brand {
+ .navbar-brand,
+ .navbar-toggler {
color: $navbar-dark-active-color;
@include hover-focus {
@@ -204,6 +258,11 @@
}
}
+ .navbar-toggler {
+ background-image: $navbar-dark-toggler-bg;
+ border-color: $navbar-dark-toggler-border;
+ }
+
.navbar-divider {
background-color: rgba(255,255,255,.075);
}