administrate-bootstrap-theme 1.0.6 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/administrate-bootstrap-theme/bootstrap.bundle.js +2503 -3001
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_accordion.scss +73 -33
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_alert.scss +25 -14
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_badge.scss +14 -5
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_breadcrumb.scss +22 -10
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_button-group.scss +6 -3
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_buttons.scss +133 -28
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_card.scss +60 -37
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_carousel.scss +22 -15
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_close.scss +33 -10
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_containers.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_dropdown.scss +86 -76
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_functions.scss +10 -10
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_grid.scss +9 -3
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_helpers.scss +3 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_list-group.scss +60 -37
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_maps.scss +174 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_mixins.scss +1 -2
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_modal.scss +71 -44
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_nav.scss +86 -28
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_navbar.scss +101 -147
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_offcanvas.scss +121 -61
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_pagination.scss +66 -21
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_popover.scss +90 -52
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_progress.scss +30 -10
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_reboot.scss +31 -45
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_root.scss +155 -22
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_spinners.scss +38 -22
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tables.scss +40 -24
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_toasts.scss +38 -16
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tooltip.scss +60 -56
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_type.scss +2 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_utilities.scss +209 -33
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_variables-dark.scss +87 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_variables.scss +404 -294
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-grid.scss +4 -9
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-reboot.scss +4 -7
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-utilities.scss +7 -6
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap.scss +5 -6
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_floating-labels.scss +37 -5
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-check.scss +51 -14
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-control.scss +36 -41
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-range.scss +3 -3
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-select.scss +12 -4
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_input-group.scss +20 -9
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_color-bg.scss +7 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_colored-links.scss +20 -2
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_focus-ring.scss +5 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_icon-link.scss +25 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_position.scss +7 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_ratio.scss +2 -2
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss +2 -2
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_alert.scss +11 -4
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_banner.scss +7 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_breakpoints.scss +8 -8
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_buttons.scss +32 -95
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_caret.scss +30 -25
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_color-mode.scss +21 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_container.scss +4 -2
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_forms.scss +38 -19
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_gradients.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_grid.scss +14 -14
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_list-group.scss +2 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_pagination.scss +4 -25
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_reset-text.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_table-variants.scss +12 -9
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_utilities.scss +14 -6
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_visually-hidden.scss +5 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/vendor/_rfs.scss +23 -29
- data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss +21 -7
- data/app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss +4 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss +11 -3
- data/lib/administrate-bootstrap-theme/version.rb +2 -2
- data/package.json +2 -2
- metadata +24 -3
@@ -4,6 +4,16 @@
|
|
4
4
|
// `<nav>`s, `<ul>`s or `<ol>`s.
|
5
5
|
|
6
6
|
.nav {
|
7
|
+
// scss-docs-start nav-css-vars
|
8
|
+
--#{$prefix}nav-link-padding-x: #{$nav-link-padding-x};
|
9
|
+
--#{$prefix}nav-link-padding-y: #{$nav-link-padding-y};
|
10
|
+
@include rfs($nav-link-font-size, --#{$prefix}nav-link-font-size);
|
11
|
+
--#{$prefix}nav-link-font-weight: #{$nav-link-font-weight};
|
12
|
+
--#{$prefix}nav-link-color: #{$nav-link-color};
|
13
|
+
--#{$prefix}nav-link-hover-color: #{$nav-link-hover-color};
|
14
|
+
--#{$prefix}nav-link-disabled-color: #{$nav-link-disabled-color};
|
15
|
+
// scss-docs-end nav-css-vars
|
16
|
+
|
7
17
|
display: flex;
|
8
18
|
flex-wrap: wrap;
|
9
19
|
padding-left: 0;
|
@@ -13,22 +23,30 @@
|
|
13
23
|
|
14
24
|
.nav-link {
|
15
25
|
display: block;
|
16
|
-
padding: $nav-link-padding-y $nav-link-padding-x;
|
17
|
-
@include font-size($nav-link-font-size);
|
18
|
-
font-weight: $nav-link-font-weight;
|
19
|
-
color: $nav-link-color;
|
26
|
+
padding: var(--#{$prefix}nav-link-padding-y) var(--#{$prefix}nav-link-padding-x);
|
27
|
+
@include font-size(var(--#{$prefix}nav-link-font-size));
|
28
|
+
font-weight: var(--#{$prefix}nav-link-font-weight);
|
29
|
+
color: var(--#{$prefix}nav-link-color);
|
20
30
|
text-decoration: if($link-decoration == none, null, none);
|
31
|
+
background: none;
|
32
|
+
border: 0;
|
21
33
|
@include transition($nav-link-transition);
|
22
34
|
|
23
35
|
&:hover,
|
24
36
|
&:focus {
|
25
|
-
color: $nav-link-hover-color;
|
37
|
+
color: var(--#{$prefix}nav-link-hover-color);
|
26
38
|
text-decoration: if($link-hover-decoration == underline, none, null);
|
27
39
|
}
|
28
40
|
|
41
|
+
&:focus-visible {
|
42
|
+
outline: 0;
|
43
|
+
box-shadow: $nav-link-focus-box-shadow;
|
44
|
+
}
|
45
|
+
|
29
46
|
// Disabled state lightens text
|
30
|
-
&.disabled
|
31
|
-
|
47
|
+
&.disabled,
|
48
|
+
&:disabled {
|
49
|
+
color: var(--#{$prefix}nav-link-disabled-color);
|
32
50
|
pointer-events: none;
|
33
51
|
cursor: default;
|
34
52
|
}
|
@@ -39,38 +57,41 @@
|
|
39
57
|
//
|
40
58
|
|
41
59
|
.nav-tabs {
|
42
|
-
|
60
|
+
// scss-docs-start nav-tabs-css-vars
|
61
|
+
--#{$prefix}nav-tabs-border-width: #{$nav-tabs-border-width};
|
62
|
+
--#{$prefix}nav-tabs-border-color: #{$nav-tabs-border-color};
|
63
|
+
--#{$prefix}nav-tabs-border-radius: #{$nav-tabs-border-radius};
|
64
|
+
--#{$prefix}nav-tabs-link-hover-border-color: #{$nav-tabs-link-hover-border-color};
|
65
|
+
--#{$prefix}nav-tabs-link-active-color: #{$nav-tabs-link-active-color};
|
66
|
+
--#{$prefix}nav-tabs-link-active-bg: #{$nav-tabs-link-active-bg};
|
67
|
+
--#{$prefix}nav-tabs-link-active-border-color: #{$nav-tabs-link-active-border-color};
|
68
|
+
// scss-docs-end nav-tabs-css-vars
|
69
|
+
|
70
|
+
border-bottom: var(--#{$prefix}nav-tabs-border-width) solid var(--#{$prefix}nav-tabs-border-color);
|
43
71
|
|
44
72
|
.nav-link {
|
45
|
-
margin-bottom:
|
46
|
-
|
47
|
-
border
|
48
|
-
@include border-top-radius($nav-tabs-border-radius);
|
73
|
+
margin-bottom: calc(-1 * var(--#{$prefix}nav-tabs-border-width)); // stylelint-disable-line function-disallowed-list
|
74
|
+
border: var(--#{$prefix}nav-tabs-border-width) solid transparent;
|
75
|
+
@include border-top-radius(var(--#{$prefix}nav-tabs-border-radius));
|
49
76
|
|
50
77
|
&:hover,
|
51
78
|
&:focus {
|
52
|
-
border-color: $nav-tabs-link-hover-border-color;
|
53
79
|
// Prevents active .nav-link tab overlapping focus outline of previous/next .nav-link
|
54
80
|
isolation: isolate;
|
55
|
-
|
56
|
-
|
57
|
-
&.disabled {
|
58
|
-
color: $nav-link-disabled-color;
|
59
|
-
background-color: transparent;
|
60
|
-
border-color: transparent;
|
81
|
+
border-color: var(--#{$prefix}nav-tabs-link-hover-border-color);
|
61
82
|
}
|
62
83
|
}
|
63
84
|
|
64
85
|
.nav-link.active,
|
65
86
|
.nav-item.show .nav-link {
|
66
|
-
color: $nav-tabs-link-active-color;
|
67
|
-
background-color: $nav-tabs-link-active-bg;
|
68
|
-
border-color: $nav-tabs-link-active-border-color;
|
87
|
+
color: var(--#{$prefix}nav-tabs-link-active-color);
|
88
|
+
background-color: var(--#{$prefix}nav-tabs-link-active-bg);
|
89
|
+
border-color: var(--#{$prefix}nav-tabs-link-active-border-color);
|
69
90
|
}
|
70
91
|
|
71
92
|
.dropdown-menu {
|
72
93
|
// Make dropdown border overlap tab border
|
73
|
-
margin-top:
|
94
|
+
margin-top: calc(-1 * var(--#{$prefix}nav-tabs-border-width)); // stylelint-disable-line function-disallowed-list
|
74
95
|
// Remove the top rounded corners here since there is a hard edge above the menu
|
75
96
|
@include border-top-radius(0);
|
76
97
|
}
|
@@ -82,16 +103,53 @@
|
|
82
103
|
//
|
83
104
|
|
84
105
|
.nav-pills {
|
106
|
+
// scss-docs-start nav-pills-css-vars
|
107
|
+
--#{$prefix}nav-pills-border-radius: #{$nav-pills-border-radius};
|
108
|
+
--#{$prefix}nav-pills-link-active-color: #{$nav-pills-link-active-color};
|
109
|
+
--#{$prefix}nav-pills-link-active-bg: #{$nav-pills-link-active-bg};
|
110
|
+
// scss-docs-end nav-pills-css-vars
|
111
|
+
|
112
|
+
.nav-link {
|
113
|
+
@include border-radius(var(--#{$prefix}nav-pills-border-radius));
|
114
|
+
}
|
115
|
+
|
116
|
+
.nav-link.active,
|
117
|
+
.show > .nav-link {
|
118
|
+
color: var(--#{$prefix}nav-pills-link-active-color);
|
119
|
+
@include gradient-bg(var(--#{$prefix}nav-pills-link-active-bg));
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
//
|
125
|
+
// Underline
|
126
|
+
//
|
127
|
+
|
128
|
+
.nav-underline {
|
129
|
+
// scss-docs-start nav-underline-css-vars
|
130
|
+
--#{$prefix}nav-underline-gap: #{$nav-underline-gap};
|
131
|
+
--#{$prefix}nav-underline-border-width: #{$nav-underline-border-width};
|
132
|
+
--#{$prefix}nav-underline-link-active-color: #{$nav-underline-link-active-color};
|
133
|
+
// scss-docs-end nav-underline-css-vars
|
134
|
+
|
135
|
+
gap: var(--#{$prefix}nav-underline-gap);
|
136
|
+
|
85
137
|
.nav-link {
|
86
|
-
|
87
|
-
|
88
|
-
|
138
|
+
padding-right: 0;
|
139
|
+
padding-left: 0;
|
140
|
+
border-bottom: var(--#{$prefix}nav-underline-border-width) solid transparent;
|
141
|
+
|
142
|
+
&:hover,
|
143
|
+
&:focus {
|
144
|
+
border-bottom-color: currentcolor;
|
145
|
+
}
|
89
146
|
}
|
90
147
|
|
91
148
|
.nav-link.active,
|
92
149
|
.show > .nav-link {
|
93
|
-
|
94
|
-
|
150
|
+
font-weight: $font-weight-bold;
|
151
|
+
color: var(--#{$prefix}nav-underline-link-active-color);
|
152
|
+
border-bottom-color: currentcolor;
|
95
153
|
}
|
96
154
|
}
|
97
155
|
|
@@ -1,29 +1,38 @@
|
|
1
|
-
// Contents
|
2
|
-
//
|
3
|
-
// Navbar
|
4
|
-
// Navbar brand
|
5
|
-
// Navbar nav
|
6
|
-
// Navbar text
|
7
|
-
// Responsive navbar
|
8
|
-
// Navbar position
|
9
|
-
// Navbar themes
|
10
|
-
|
11
|
-
|
12
1
|
// Navbar
|
13
2
|
//
|
14
3
|
// Provide a static navbar from which we expand to create full-width, fixed, and
|
15
4
|
// other navbar variations.
|
16
5
|
|
17
6
|
.navbar {
|
7
|
+
// scss-docs-start navbar-css-vars
|
8
|
+
--#{$prefix}navbar-padding-x: #{if($navbar-padding-x == null, 0, $navbar-padding-x)};
|
9
|
+
--#{$prefix}navbar-padding-y: #{$navbar-padding-y};
|
10
|
+
--#{$prefix}navbar-color: #{$navbar-light-color};
|
11
|
+
--#{$prefix}navbar-hover-color: #{$navbar-light-hover-color};
|
12
|
+
--#{$prefix}navbar-disabled-color: #{$navbar-light-disabled-color};
|
13
|
+
--#{$prefix}navbar-active-color: #{$navbar-light-active-color};
|
14
|
+
--#{$prefix}navbar-brand-padding-y: #{$navbar-brand-padding-y};
|
15
|
+
--#{$prefix}navbar-brand-margin-end: #{$navbar-brand-margin-end};
|
16
|
+
--#{$prefix}navbar-brand-font-size: #{$navbar-brand-font-size};
|
17
|
+
--#{$prefix}navbar-brand-color: #{$navbar-light-brand-color};
|
18
|
+
--#{$prefix}navbar-brand-hover-color: #{$navbar-light-brand-hover-color};
|
19
|
+
--#{$prefix}navbar-nav-link-padding-x: #{$navbar-nav-link-padding-x};
|
20
|
+
--#{$prefix}navbar-toggler-padding-y: #{$navbar-toggler-padding-y};
|
21
|
+
--#{$prefix}navbar-toggler-padding-x: #{$navbar-toggler-padding-x};
|
22
|
+
--#{$prefix}navbar-toggler-font-size: #{$navbar-toggler-font-size};
|
23
|
+
--#{$prefix}navbar-toggler-icon-bg: #{escape-svg($navbar-light-toggler-icon-bg)};
|
24
|
+
--#{$prefix}navbar-toggler-border-color: #{$navbar-light-toggler-border-color};
|
25
|
+
--#{$prefix}navbar-toggler-border-radius: #{$navbar-toggler-border-radius};
|
26
|
+
--#{$prefix}navbar-toggler-focus-width: #{$navbar-toggler-focus-width};
|
27
|
+
--#{$prefix}navbar-toggler-transition: #{$navbar-toggler-transition};
|
28
|
+
// scss-docs-end navbar-css-vars
|
29
|
+
|
18
30
|
position: relative;
|
19
31
|
display: flex;
|
20
32
|
flex-wrap: wrap; // allow us to do the line break for collapsing content
|
21
33
|
align-items: center;
|
22
34
|
justify-content: space-between; // space out brand from logo
|
23
|
-
padding
|
24
|
-
padding-right: $navbar-padding-x; // default: null
|
25
|
-
padding-bottom: $navbar-padding-y;
|
26
|
-
padding-left: $navbar-padding-x; // default: null
|
35
|
+
padding: var(--#{$prefix}navbar-padding-y) var(--#{$prefix}navbar-padding-x);
|
27
36
|
@include gradient-bg();
|
28
37
|
|
29
38
|
// Because flex properties aren't inherited, we need to redeclare these first
|
@@ -54,15 +63,17 @@
|
|
54
63
|
// Used for brand, project, or site names.
|
55
64
|
|
56
65
|
.navbar-brand {
|
57
|
-
padding-top: $navbar-brand-padding-y;
|
58
|
-
padding-bottom: $navbar-brand-padding-y;
|
59
|
-
margin-right: $navbar-brand-margin-end;
|
60
|
-
@include font-size($navbar-brand-font-size);
|
66
|
+
padding-top: var(--#{$prefix}navbar-brand-padding-y);
|
67
|
+
padding-bottom: var(--#{$prefix}navbar-brand-padding-y);
|
68
|
+
margin-right: var(--#{$prefix}navbar-brand-margin-end);
|
69
|
+
@include font-size(var(--#{$prefix}navbar-brand-font-size));
|
70
|
+
color: var(--#{$prefix}navbar-brand-color);
|
61
71
|
text-decoration: if($link-decoration == none, null, none);
|
62
72
|
white-space: nowrap;
|
63
73
|
|
64
74
|
&:hover,
|
65
75
|
&:focus {
|
76
|
+
color: var(--#{$prefix}navbar-brand-hover-color);
|
66
77
|
text-decoration: if($link-hover-decoration == underline, none, null);
|
67
78
|
}
|
68
79
|
}
|
@@ -73,6 +84,16 @@
|
|
73
84
|
// Custom navbar navigation (doesn't require `.nav`, but does make use of `.nav-link`).
|
74
85
|
|
75
86
|
.navbar-nav {
|
87
|
+
// scss-docs-start navbar-nav-css-vars
|
88
|
+
--#{$prefix}nav-link-padding-x: 0;
|
89
|
+
--#{$prefix}nav-link-padding-y: #{$nav-link-padding-y};
|
90
|
+
@include rfs($nav-link-font-size, --#{$prefix}nav-link-font-size);
|
91
|
+
--#{$prefix}nav-link-font-weight: #{$nav-link-font-weight};
|
92
|
+
--#{$prefix}nav-link-color: var(--#{$prefix}navbar-color);
|
93
|
+
--#{$prefix}nav-link-hover-color: var(--#{$prefix}navbar-hover-color);
|
94
|
+
--#{$prefix}nav-link-disabled-color: var(--#{$prefix}navbar-disabled-color);
|
95
|
+
// scss-docs-end navbar-nav-css-vars
|
96
|
+
|
76
97
|
display: flex;
|
77
98
|
flex-direction: column; // cannot use `inherit` to get the `.navbar`s value
|
78
99
|
padding-left: 0;
|
@@ -80,8 +101,10 @@
|
|
80
101
|
list-style: none;
|
81
102
|
|
82
103
|
.nav-link {
|
83
|
-
|
84
|
-
|
104
|
+
&.active,
|
105
|
+
&.show {
|
106
|
+
color: var(--#{$prefix}navbar-active-color);
|
107
|
+
}
|
85
108
|
}
|
86
109
|
|
87
110
|
.dropdown-menu {
|
@@ -97,6 +120,13 @@
|
|
97
120
|
.navbar-text {
|
98
121
|
padding-top: $nav-link-padding-y;
|
99
122
|
padding-bottom: $nav-link-padding-y;
|
123
|
+
color: var(--#{$prefix}navbar-color);
|
124
|
+
|
125
|
+
a,
|
126
|
+
a:hover,
|
127
|
+
a:focus {
|
128
|
+
color: var(--#{$prefix}navbar-active-color);
|
129
|
+
}
|
100
130
|
}
|
101
131
|
|
102
132
|
|
@@ -118,13 +148,14 @@
|
|
118
148
|
|
119
149
|
// Button for toggling the navbar when in its collapsed state
|
120
150
|
.navbar-toggler {
|
121
|
-
padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
|
122
|
-
@include font-size($navbar-toggler-font-size);
|
151
|
+
padding: var(--#{$prefix}navbar-toggler-padding-y) var(--#{$prefix}navbar-toggler-padding-x);
|
152
|
+
@include font-size(var(--#{$prefix}navbar-toggler-font-size));
|
123
153
|
line-height: 1;
|
154
|
+
color: var(--#{$prefix}navbar-color);
|
124
155
|
background-color: transparent; // remove default button style
|
125
|
-
border: $border-width solid
|
126
|
-
@include border-radius($navbar-toggler-border-radius);
|
127
|
-
@include transition($navbar-toggler-transition);
|
156
|
+
border: var(--#{$prefix}border-width) solid var(--#{$prefix}navbar-toggler-border-color); // remove default button style
|
157
|
+
@include border-radius(var(--#{$prefix}navbar-toggler-border-radius));
|
158
|
+
@include transition(var(--#{$prefix}navbar-toggler-transition));
|
128
159
|
|
129
160
|
&:hover {
|
130
161
|
text-decoration: none;
|
@@ -133,7 +164,7 @@
|
|
133
164
|
&:focus {
|
134
165
|
text-decoration: none;
|
135
166
|
outline: 0;
|
136
|
-
box-shadow: 0 0 0 $navbar-toggler-focus-width;
|
167
|
+
box-shadow: 0 0 0 var(--#{$prefix}navbar-toggler-focus-width);
|
137
168
|
}
|
138
169
|
}
|
139
170
|
|
@@ -144,13 +175,14 @@
|
|
144
175
|
width: 1.5em;
|
145
176
|
height: 1.5em;
|
146
177
|
vertical-align: middle;
|
178
|
+
background-image: var(--#{$prefix}navbar-toggler-icon-bg);
|
147
179
|
background-repeat: no-repeat;
|
148
180
|
background-position: center;
|
149
181
|
background-size: 100%;
|
150
182
|
}
|
151
183
|
|
152
184
|
.navbar-nav-scroll {
|
153
|
-
max-height: var(--#{$
|
185
|
+
max-height: var(--#{$prefix}scroll-height, 75vh);
|
154
186
|
overflow-y: auto;
|
155
187
|
}
|
156
188
|
|
@@ -176,8 +208,8 @@
|
|
176
208
|
}
|
177
209
|
|
178
210
|
.nav-link {
|
179
|
-
padding-right: $navbar-nav-link-padding-x;
|
180
|
-
padding-left: $navbar-nav-link-padding-x;
|
211
|
+
padding-right: var(--#{$prefix}navbar-nav-link-padding-x);
|
212
|
+
padding-left: var(--#{$prefix}navbar-nav-link-padding-x);
|
181
213
|
}
|
182
214
|
}
|
183
215
|
|
@@ -194,34 +226,31 @@
|
|
194
226
|
display: none;
|
195
227
|
}
|
196
228
|
|
197
|
-
.offcanvas-header {
|
198
|
-
display: none;
|
199
|
-
}
|
200
|
-
|
201
229
|
.offcanvas {
|
202
|
-
|
203
|
-
|
204
|
-
z-index:
|
230
|
+
// stylelint-disable declaration-no-important
|
231
|
+
position: static;
|
232
|
+
z-index: auto;
|
205
233
|
flex-grow: 1;
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
234
|
+
width: auto !important;
|
235
|
+
height: auto !important;
|
236
|
+
visibility: visible !important;
|
237
|
+
background-color: transparent !important;
|
238
|
+
border: 0 !important;
|
239
|
+
transform: none !important;
|
240
|
+
@include box-shadow(none);
|
210
241
|
@include transition(none);
|
211
|
-
|
212
|
-
}
|
213
|
-
.offcanvas-top,
|
214
|
-
.offcanvas-bottom {
|
215
|
-
height: auto;
|
216
|
-
border-top: 0;
|
217
|
-
border-bottom: 0;
|
218
|
-
}
|
242
|
+
// stylelint-enable declaration-no-important
|
219
243
|
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
244
|
+
.offcanvas-header {
|
245
|
+
display: none;
|
246
|
+
}
|
247
|
+
|
248
|
+
.offcanvas-body {
|
249
|
+
display: flex;
|
250
|
+
flex-grow: 0;
|
251
|
+
padding: 0;
|
252
|
+
overflow-y: visible;
|
253
|
+
}
|
225
254
|
}
|
226
255
|
}
|
227
256
|
}
|
@@ -233,103 +262,28 @@
|
|
233
262
|
//
|
234
263
|
// Styles for switching between navbars with light or dark background.
|
235
264
|
|
236
|
-
// Dark links against a light background
|
237
265
|
.navbar-light {
|
238
|
-
|
239
|
-
color: $navbar-light-brand-color;
|
240
|
-
|
241
|
-
&:hover,
|
242
|
-
&:focus {
|
243
|
-
color: $navbar-light-brand-hover-color;
|
244
|
-
}
|
245
|
-
}
|
246
|
-
|
247
|
-
.navbar-nav {
|
248
|
-
.nav-link {
|
249
|
-
color: $navbar-light-color;
|
250
|
-
|
251
|
-
&:hover,
|
252
|
-
&:focus {
|
253
|
-
color: $navbar-light-hover-color;
|
254
|
-
}
|
255
|
-
|
256
|
-
&.disabled {
|
257
|
-
color: $navbar-light-disabled-color;
|
258
|
-
}
|
259
|
-
}
|
260
|
-
|
261
|
-
.show > .nav-link,
|
262
|
-
.nav-link.active {
|
263
|
-
color: $navbar-light-active-color;
|
264
|
-
}
|
265
|
-
}
|
266
|
-
|
267
|
-
.navbar-toggler {
|
268
|
-
color: $navbar-light-color;
|
269
|
-
border-color: $navbar-light-toggler-border-color;
|
270
|
-
}
|
271
|
-
|
272
|
-
.navbar-toggler-icon {
|
273
|
-
background-image: escape-svg($navbar-light-toggler-icon-bg);
|
274
|
-
}
|
275
|
-
|
276
|
-
.navbar-text {
|
277
|
-
color: $navbar-light-color;
|
278
|
-
|
279
|
-
a,
|
280
|
-
a:hover,
|
281
|
-
a:focus {
|
282
|
-
color: $navbar-light-active-color;
|
283
|
-
}
|
284
|
-
}
|
266
|
+
@include deprecate("`.navbar-light`", "v5.2.0", "v6.0.0", true);
|
285
267
|
}
|
286
268
|
|
287
|
-
|
288
|
-
.navbar-dark {
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
}
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
color: $navbar-dark-color;
|
301
|
-
|
302
|
-
&:hover,
|
303
|
-
&:focus {
|
304
|
-
color: $navbar-dark-hover-color;
|
305
|
-
}
|
306
|
-
|
307
|
-
&.disabled {
|
308
|
-
color: $navbar-dark-disabled-color;
|
309
|
-
}
|
310
|
-
}
|
311
|
-
|
312
|
-
.show > .nav-link,
|
313
|
-
.nav-link.active {
|
314
|
-
color: $navbar-dark-active-color;
|
315
|
-
}
|
316
|
-
}
|
317
|
-
|
318
|
-
.navbar-toggler {
|
319
|
-
color: $navbar-dark-color;
|
320
|
-
border-color: $navbar-dark-toggler-border-color;
|
321
|
-
}
|
322
|
-
|
323
|
-
.navbar-toggler-icon {
|
324
|
-
background-image: escape-svg($navbar-dark-toggler-icon-bg);
|
325
|
-
}
|
269
|
+
.navbar-dark,
|
270
|
+
.navbar[data-bs-theme="dark"] {
|
271
|
+
// scss-docs-start navbar-dark-css-vars
|
272
|
+
--#{$prefix}navbar-color: #{$navbar-dark-color};
|
273
|
+
--#{$prefix}navbar-hover-color: #{$navbar-dark-hover-color};
|
274
|
+
--#{$prefix}navbar-disabled-color: #{$navbar-dark-disabled-color};
|
275
|
+
--#{$prefix}navbar-active-color: #{$navbar-dark-active-color};
|
276
|
+
--#{$prefix}navbar-brand-color: #{$navbar-dark-brand-color};
|
277
|
+
--#{$prefix}navbar-brand-hover-color: #{$navbar-dark-brand-hover-color};
|
278
|
+
--#{$prefix}navbar-toggler-border-color: #{$navbar-dark-toggler-border-color};
|
279
|
+
--#{$prefix}navbar-toggler-icon-bg: #{escape-svg($navbar-dark-toggler-icon-bg)};
|
280
|
+
// scss-docs-end navbar-dark-css-vars
|
281
|
+
}
|
326
282
|
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
a:focus {
|
332
|
-
color: $navbar-dark-active-color;
|
283
|
+
@if $enable-dark-mode {
|
284
|
+
@include color-mode(dark) {
|
285
|
+
.navbar-toggler-icon {
|
286
|
+
--#{$prefix}navbar-toggler-icon-bg: #{escape-svg($navbar-dark-toggler-icon-bg)};
|
333
287
|
}
|
334
288
|
}
|
335
289
|
}
|