mumuki-styles 1.24.0 → 3.0.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/fonts/dev-awesome.eot +0 -0
- data/app/assets/fonts/dev-awesome.ttf +0 -0
- data/app/assets/fonts/dev-awesome.woff +0 -0
- data/app/assets/fonts/dev-awesome.woff2 +0 -0
- data/app/assets/javascripts/mumuki-styles.js +6262 -1745
- data/app/assets/stylesheets/css/mumuki-styles.css +12744 -10611
- data/app/assets/stylesheets/scss/_colors.scss +64 -30
- data/app/assets/stylesheets/scss/_fa5.scss +9 -0
- data/app/assets/stylesheets/scss/_fonts.scss +1 -1
- data/app/assets/stylesheets/scss/_footer.scss +23 -16
- data/app/assets/stylesheets/scss/_links.scss +7 -0
- data/app/assets/stylesheets/scss/_modules.scss +4 -2
- data/app/assets/stylesheets/scss/_navbar.scss +29 -21
- data/app/assets/stylesheets/scss/_vendor.scss +1 -5
- data/app/assets/stylesheets/scss/bootswatch/_bootswatch.scss +188 -255
- data/app/assets/stylesheets/scss/bootswatch/_variables.scss +80 -843
- data/app/assets/stylesheets/scss/components/_browser.scss +2 -2
- data/app/assets/stylesheets/scss/components/_mu-erd.scss +1 -1
- data/app/assets/stylesheets/scss/components/_mu-file-browser.scss +9 -4
- data/app/assets/stylesheets/scss/modules/_blockquote.scss +7 -0
- data/app/assets/stylesheets/scss/modules/_breadcrumb.scss +1 -1
- data/app/assets/stylesheets/scss/modules/_callout.scss +4 -4
- data/app/assets/stylesheets/scss/modules/_code.scss +5 -0
- data/app/assets/stylesheets/scss/modules/_conversation.scss +4 -5
- data/app/assets/stylesheets/scss/modules/_follow_us.scss +4 -4
- data/app/assets/stylesheets/scss/modules/_form.scss +19 -0
- data/app/assets/stylesheets/scss/modules/_multiple_scenarios.scss +5 -5
- data/app/assets/stylesheets/scss/modules/_new_message.scss +2 -2
- data/app/assets/stylesheets/scss/modules/_pre.scss +11 -0
- data/app/assets/stylesheets/scss/mumuki-styles.scss +2 -0
- data/app/assets/stylesheets/vendor/bootstrap/_accordion.scss +116 -0
- data/app/assets/stylesheets/vendor/bootstrap/_alert.scss +57 -0
- data/app/assets/stylesheets/vendor/bootstrap/_badge.scss +29 -0
- data/app/assets/stylesheets/vendor/bootstrap/_breadcrumb.scss +28 -0
- data/app/assets/stylesheets/vendor/bootstrap/_button-group.scss +139 -0
- data/app/assets/stylesheets/vendor/bootstrap/_buttons.scss +111 -0
- data/app/assets/stylesheets/vendor/bootstrap/_card.scss +215 -0
- data/app/assets/stylesheets/vendor/bootstrap/_carousel.scss +229 -0
- data/app/assets/stylesheets/vendor/bootstrap/_close.scss +40 -0
- data/app/assets/stylesheets/vendor/bootstrap/_containers.scss +41 -0
- data/app/assets/stylesheets/vendor/bootstrap/_dropdown.scss +246 -0
- data/app/assets/stylesheets/vendor/bootstrap/_forms.scss +9 -0
- data/app/assets/stylesheets/vendor/bootstrap/_functions.scss +205 -0
- data/app/assets/stylesheets/vendor/bootstrap/_grid.scss +22 -0
- data/app/assets/stylesheets/vendor/bootstrap/_helpers.scss +7 -0
- data/app/assets/stylesheets/vendor/bootstrap/_images.scss +42 -0
- data/app/assets/stylesheets/vendor/bootstrap/_list-group.scss +174 -0
- data/app/assets/stylesheets/vendor/bootstrap/_mixins.scss +41 -0
- data/app/assets/stylesheets/vendor/bootstrap/_modal.scss +237 -0
- data/app/assets/stylesheets/vendor/bootstrap/_nav.scss +139 -0
- data/app/assets/stylesheets/vendor/bootstrap/_navbar.scss +306 -0
- data/app/assets/stylesheets/vendor/bootstrap/_offcanvas.scss +77 -0
- data/app/assets/stylesheets/vendor/bootstrap/_pagination.scss +64 -0
- data/app/assets/stylesheets/vendor/bootstrap/_popover.scss +158 -0
- data/app/assets/stylesheets/vendor/bootstrap/_progress.scss +48 -0
- data/app/assets/stylesheets/vendor/bootstrap/_reboot.scss +621 -0
- data/app/assets/stylesheets/vendor/bootstrap/_root.scss +16 -0
- data/app/assets/stylesheets/vendor/bootstrap/_spinners.scss +69 -0
- data/app/assets/stylesheets/vendor/bootstrap/_tables.scss +150 -0
- data/app/assets/stylesheets/vendor/bootstrap/_toasts.scss +51 -0
- data/app/assets/stylesheets/vendor/bootstrap/_tooltip.scss +115 -0
- data/app/assets/stylesheets/vendor/bootstrap/_transitions.scss +21 -0
- data/app/assets/stylesheets/vendor/bootstrap/_type.scss +104 -0
- data/app/assets/stylesheets/vendor/bootstrap/_utilities.scss +594 -0
- data/app/assets/stylesheets/vendor/bootstrap/_variables.scss +1464 -0
- data/app/assets/stylesheets/vendor/bootstrap/bootstrap-utilities.scss +18 -0
- data/app/assets/stylesheets/vendor/bootstrap/bootstrap.scss +52 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_floating-labels.scss +61 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_form-check.scss +152 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_form-control.scss +219 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_form-range.scss +91 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_form-select.scss +67 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_form-text.scss +11 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_input-group.scss +121 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_labels.scss +36 -0
- data/app/assets/stylesheets/vendor/bootstrap/forms/_validation.scss +12 -0
- data/app/assets/stylesheets/vendor/bootstrap/helpers/_clearfix.scss +3 -0
- data/app/assets/stylesheets/vendor/bootstrap/helpers/_colored-links.scss +12 -0
- data/app/assets/stylesheets/vendor/bootstrap/helpers/_position.scss +30 -0
- data/app/assets/stylesheets/vendor/bootstrap/helpers/_ratio.scss +26 -0
- data/app/assets/stylesheets/vendor/bootstrap/helpers/_stretched-link.scss +15 -0
- data/app/assets/stylesheets/vendor/bootstrap/helpers/_text-truncation.scss +7 -0
- data/app/assets/stylesheets/vendor/bootstrap/helpers/_visually-hidden.scss +8 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_alert.scss +11 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_border-radius.scss +78 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_box-shadow.scss +18 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_breakpoints.scss +127 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_buttons.scss +133 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_caret.scss +64 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_clearfix.scss +9 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_container.scss +9 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_deprecate.scss +10 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_forms.scss +134 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_gradients.scss +47 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_grid.scss +120 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_image.scss +16 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_list-group.scss +24 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_lists.scss +7 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_pagination.scss +31 -0
- data/app/assets/stylesheets/vendor/{bootstrap-sass/assets/stylesheets/bootstrap → bootstrap}/mixins/_reset-text.scss +6 -7
- data/app/assets/stylesheets/vendor/{bootstrap-sass/assets/stylesheets/bootstrap → bootstrap}/mixins/_resize.scss +1 -1
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_table-variants.scss +21 -0
- data/app/assets/stylesheets/vendor/{bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-overflow.scss → bootstrap/mixins/_text-truncate.scss} +2 -2
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_transition.scss +26 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_utilities.scss +68 -0
- data/app/assets/stylesheets/vendor/bootstrap/mixins/_visually-hidden.scss +29 -0
- data/app/assets/stylesheets/vendor/bootstrap/utilities/_api.scss +47 -0
- data/app/assets/stylesheets/vendor/bootstrap/vendor/_rfs.scss +312 -0
- data/app/assets/stylesheets/vendor/dev-awesome/dist/scss/_dev-awesome.scss +3 -3
- data/lib/mumuki/styles/version.rb +1 -1
- metadata +86 -83
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +0 -288
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/stylesheets/scss/_awesome-bootstrap-checkbox-overrides.scss +0 -8
- data/app/assets/stylesheets/scss/modules/_checkbox.scss +0 -65
- data/app/assets/stylesheets/scss/modules/_notification.scss +0 -15
- data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.scss +0 -245
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/_bootstrap.scss +0 -56
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_alerts.scss +0 -73
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss +0 -68
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_breadcrumbs.scss +0 -28
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_button-groups.scss +0 -244
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_buttons.scss +0 -168
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_carousel.scss +0 -270
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_close.scss +0 -36
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_code.scss +0 -69
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_component-animations.scss +0 -37
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_dropdowns.scss +0 -216
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_forms.scss +0 -617
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_glyphicons.scss +0 -307
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_grid.scss +0 -84
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_input-groups.scss +0 -171
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_jumbotron.scss +0 -54
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_labels.scss +0 -66
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_list-group.scss +0 -130
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_media.scss +0 -66
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_mixins.scss +0 -40
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_modals.scss +0 -150
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_navbar.scss +0 -662
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_navs.scss +0 -242
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_normalize.scss +0 -424
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_pager.scss +0 -54
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_pagination.scss +0 -89
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_panels.scss +0 -271
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_popovers.scss +0 -131
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_print.scss +0 -101
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_progress-bars.scss +0 -87
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-embed.scss +0 -35
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-utilities.scss +0 -179
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_scaffolding.scss +0 -161
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_tables.scss +0 -234
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_thumbnails.scss +0 -38
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_tooltip.scss +0 -101
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_type.scss +0 -298
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_utilities.scss +0 -55
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss +0 -874
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_wells.scss +0 -29
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -14
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -12
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_border-radius.scss +0 -18
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_buttons.scss +0 -65
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_clearfix.scss +0 -22
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -88
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_gradients.scss +0 -58
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -81
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid.scss +0 -122
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_image.scss +0 -33
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_list-group.scss +0 -32
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -8
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_pagination.scss +0 -24
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -24
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +0 -10
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -21
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_size.scss +0 -10
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -28
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -12
- data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
- data/app/assets/stylesheets/vendor/fontawesome-free/scss/_shims.scss +0 -2066
- data/app/assets/stylesheets/vendor/fontawesome-free/scss/v4-shims.scss +0 -6
@@ -0,0 +1,28 @@
|
|
1
|
+
.breadcrumb {
|
2
|
+
display: flex;
|
3
|
+
flex-wrap: wrap;
|
4
|
+
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
|
5
|
+
margin-bottom: $breadcrumb-margin-bottom;
|
6
|
+
@include font-size($breadcrumb-font-size);
|
7
|
+
list-style: none;
|
8
|
+
background-color: $breadcrumb-bg;
|
9
|
+
@include border-radius($breadcrumb-border-radius);
|
10
|
+
}
|
11
|
+
|
12
|
+
.breadcrumb-item {
|
13
|
+
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
14
|
+
+ .breadcrumb-item {
|
15
|
+
padding-left: $breadcrumb-item-padding-x;
|
16
|
+
|
17
|
+
&::before {
|
18
|
+
float: left; // Suppress inline spacings and underlining of the separator
|
19
|
+
padding-right: $breadcrumb-item-padding-x;
|
20
|
+
color: $breadcrumb-divider-color;
|
21
|
+
content: var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
&.active {
|
26
|
+
color: $breadcrumb-active-color;
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
// Make the div behave like a button
|
2
|
+
.btn-group,
|
3
|
+
.btn-group-vertical {
|
4
|
+
position: relative;
|
5
|
+
display: inline-flex;
|
6
|
+
vertical-align: middle; // match .btn alignment given font-size hack above
|
7
|
+
|
8
|
+
> .btn {
|
9
|
+
position: relative;
|
10
|
+
flex: 1 1 auto;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Bring the hover, focused, and "active" buttons to the front to overlay
|
14
|
+
// the borders properly
|
15
|
+
> .btn-check:checked + .btn,
|
16
|
+
> .btn-check:focus + .btn,
|
17
|
+
> .btn:hover,
|
18
|
+
> .btn:focus,
|
19
|
+
> .btn:active,
|
20
|
+
> .btn.active {
|
21
|
+
z-index: 1;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Optional: Group multiple button groups together for a toolbar
|
26
|
+
.btn-toolbar {
|
27
|
+
display: flex;
|
28
|
+
flex-wrap: wrap;
|
29
|
+
justify-content: flex-start;
|
30
|
+
|
31
|
+
.input-group {
|
32
|
+
width: auto;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.btn-group {
|
37
|
+
// Prevent double borders when buttons are next to each other
|
38
|
+
> .btn:not(:first-child),
|
39
|
+
> .btn-group:not(:first-child) {
|
40
|
+
margin-left: -$btn-border-width;
|
41
|
+
}
|
42
|
+
|
43
|
+
// Reset rounded corners
|
44
|
+
> .btn:not(:last-child):not(.dropdown-toggle),
|
45
|
+
> .btn-group:not(:last-child) > .btn {
|
46
|
+
@include border-end-radius(0);
|
47
|
+
}
|
48
|
+
|
49
|
+
// The left radius should be 0 if the button is:
|
50
|
+
// - the "third or more" child
|
51
|
+
// - the second child and the previous element isn't `.btn-check` (making it the first child visually)
|
52
|
+
// - part of a btn-group which isn't the first child
|
53
|
+
> .btn:nth-child(n + 3),
|
54
|
+
> :not(.btn-check) + .btn,
|
55
|
+
> .btn-group:not(:first-child) > .btn {
|
56
|
+
@include border-start-radius(0);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
// Sizing
|
61
|
+
//
|
62
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
63
|
+
|
64
|
+
.btn-group-sm > .btn { @extend .btn-sm; }
|
65
|
+
.btn-group-lg > .btn { @extend .btn-lg; }
|
66
|
+
|
67
|
+
|
68
|
+
//
|
69
|
+
// Split button dropdowns
|
70
|
+
//
|
71
|
+
|
72
|
+
.dropdown-toggle-split {
|
73
|
+
padding-right: $btn-padding-x * .75;
|
74
|
+
padding-left: $btn-padding-x * .75;
|
75
|
+
|
76
|
+
&::after,
|
77
|
+
.dropup &::after,
|
78
|
+
.dropend &::after {
|
79
|
+
margin-left: 0;
|
80
|
+
}
|
81
|
+
|
82
|
+
.dropstart &::before {
|
83
|
+
margin-right: 0;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
.btn-sm + .dropdown-toggle-split {
|
88
|
+
padding-right: $btn-padding-x-sm * .75;
|
89
|
+
padding-left: $btn-padding-x-sm * .75;
|
90
|
+
}
|
91
|
+
|
92
|
+
.btn-lg + .dropdown-toggle-split {
|
93
|
+
padding-right: $btn-padding-x-lg * .75;
|
94
|
+
padding-left: $btn-padding-x-lg * .75;
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
// The clickable button for toggling the menu
|
99
|
+
// Set the same inset shadow as the :active state
|
100
|
+
.btn-group.show .dropdown-toggle {
|
101
|
+
@include box-shadow($btn-active-box-shadow);
|
102
|
+
|
103
|
+
// Show no shadow for `.btn-link` since it has no other button styles.
|
104
|
+
&.btn-link {
|
105
|
+
@include box-shadow(none);
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
//
|
111
|
+
// Vertical button groups
|
112
|
+
//
|
113
|
+
|
114
|
+
.btn-group-vertical {
|
115
|
+
flex-direction: column;
|
116
|
+
align-items: flex-start;
|
117
|
+
justify-content: center;
|
118
|
+
|
119
|
+
> .btn,
|
120
|
+
> .btn-group {
|
121
|
+
width: 100%;
|
122
|
+
}
|
123
|
+
|
124
|
+
> .btn:not(:first-child),
|
125
|
+
> .btn-group:not(:first-child) {
|
126
|
+
margin-top: -$btn-border-width;
|
127
|
+
}
|
128
|
+
|
129
|
+
// Reset rounded corners
|
130
|
+
> .btn:not(:last-child):not(.dropdown-toggle),
|
131
|
+
> .btn-group:not(:last-child) > .btn {
|
132
|
+
@include border-bottom-radius(0);
|
133
|
+
}
|
134
|
+
|
135
|
+
> .btn ~ .btn,
|
136
|
+
> .btn-group:not(:first-child) > .btn {
|
137
|
+
@include border-top-radius(0);
|
138
|
+
}
|
139
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
//
|
2
|
+
// Base styles
|
3
|
+
//
|
4
|
+
|
5
|
+
.btn {
|
6
|
+
display: inline-block;
|
7
|
+
font-family: $btn-font-family;
|
8
|
+
font-weight: $btn-font-weight;
|
9
|
+
line-height: $btn-line-height;
|
10
|
+
color: $body-color;
|
11
|
+
text-align: center;
|
12
|
+
text-decoration: if($link-decoration == none, null, none);
|
13
|
+
white-space: $btn-white-space;
|
14
|
+
vertical-align: middle;
|
15
|
+
cursor: if($enable-button-pointers, pointer, null);
|
16
|
+
user-select: none;
|
17
|
+
background-color: transparent;
|
18
|
+
border: $btn-border-width solid transparent;
|
19
|
+
@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-border-radius);
|
20
|
+
@include transition($btn-transition);
|
21
|
+
|
22
|
+
&:hover {
|
23
|
+
color: $body-color;
|
24
|
+
text-decoration: if($link-hover-decoration == underline, none, null);
|
25
|
+
}
|
26
|
+
|
27
|
+
.btn-check:focus + &,
|
28
|
+
&:focus {
|
29
|
+
outline: 0;
|
30
|
+
box-shadow: $btn-focus-box-shadow;
|
31
|
+
}
|
32
|
+
|
33
|
+
.btn-check:checked + &,
|
34
|
+
.btn-check:active + &,
|
35
|
+
&:active,
|
36
|
+
&.active {
|
37
|
+
@include box-shadow($btn-active-box-shadow);
|
38
|
+
|
39
|
+
&:focus {
|
40
|
+
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
&:disabled,
|
45
|
+
&.disabled,
|
46
|
+
fieldset:disabled & {
|
47
|
+
pointer-events: none;
|
48
|
+
opacity: $btn-disabled-opacity;
|
49
|
+
@include box-shadow(none);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
//
|
55
|
+
// Alternate buttons
|
56
|
+
//
|
57
|
+
|
58
|
+
// scss-docs-start btn-variant-loops
|
59
|
+
@each $color, $value in $theme-colors {
|
60
|
+
.btn-#{$color} {
|
61
|
+
@include button-variant($value, $value);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
@each $color, $value in $theme-colors {
|
66
|
+
.btn-outline-#{$color} {
|
67
|
+
@include button-outline-variant($value);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
// scss-docs-end btn-variant-loops
|
71
|
+
|
72
|
+
|
73
|
+
//
|
74
|
+
// Link buttons
|
75
|
+
//
|
76
|
+
|
77
|
+
// Make a button look and behave like a link
|
78
|
+
.btn-link {
|
79
|
+
font-weight: $font-weight-normal;
|
80
|
+
color: $btn-link-color;
|
81
|
+
text-decoration: $link-decoration;
|
82
|
+
|
83
|
+
&:hover {
|
84
|
+
color: $btn-link-hover-color;
|
85
|
+
text-decoration: $link-hover-decoration;
|
86
|
+
}
|
87
|
+
|
88
|
+
&:focus {
|
89
|
+
text-decoration: $link-hover-decoration;
|
90
|
+
}
|
91
|
+
|
92
|
+
&:disabled,
|
93
|
+
&.disabled {
|
94
|
+
color: $btn-link-disabled-color;
|
95
|
+
}
|
96
|
+
|
97
|
+
// No need for an active state here
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
//
|
102
|
+
// Button Sizes
|
103
|
+
//
|
104
|
+
|
105
|
+
.btn-lg {
|
106
|
+
@include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-border-radius-lg);
|
107
|
+
}
|
108
|
+
|
109
|
+
.btn-sm {
|
110
|
+
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-border-radius-sm);
|
111
|
+
}
|
@@ -0,0 +1,215 @@
|
|
1
|
+
//
|
2
|
+
// Base styles
|
3
|
+
//
|
4
|
+
|
5
|
+
.card {
|
6
|
+
position: relative;
|
7
|
+
display: flex;
|
8
|
+
flex-direction: column;
|
9
|
+
min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
|
10
|
+
height: $card-height;
|
11
|
+
word-wrap: break-word;
|
12
|
+
background-color: $card-bg;
|
13
|
+
background-clip: border-box;
|
14
|
+
border: $card-border-width solid $card-border-color;
|
15
|
+
@include border-radius($card-border-radius);
|
16
|
+
|
17
|
+
> hr {
|
18
|
+
margin-right: 0;
|
19
|
+
margin-left: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
> .list-group {
|
23
|
+
border-top: inherit;
|
24
|
+
border-bottom: inherit;
|
25
|
+
|
26
|
+
&:first-child {
|
27
|
+
border-top-width: 0;
|
28
|
+
@include border-top-radius($card-inner-border-radius);
|
29
|
+
}
|
30
|
+
|
31
|
+
&:last-child {
|
32
|
+
border-bottom-width: 0;
|
33
|
+
@include border-bottom-radius($card-inner-border-radius);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// Due to specificity of the above selector (`.card > .list-group`), we must
|
38
|
+
// use a child selector here to prevent double borders.
|
39
|
+
> .card-header + .list-group,
|
40
|
+
> .list-group + .card-footer {
|
41
|
+
border-top: 0;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.card-body {
|
46
|
+
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
|
47
|
+
// as much space as possible, ensuring footers are aligned to the bottom.
|
48
|
+
flex: 1 1 auto;
|
49
|
+
padding: $card-spacer-y $card-spacer-x;
|
50
|
+
color: $card-color;
|
51
|
+
}
|
52
|
+
|
53
|
+
.card-title {
|
54
|
+
margin-bottom: $card-title-spacer-y;
|
55
|
+
}
|
56
|
+
|
57
|
+
.card-subtitle {
|
58
|
+
margin-top: -$card-title-spacer-y / 2;
|
59
|
+
margin-bottom: 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
.card-text:last-child {
|
63
|
+
margin-bottom: 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
.card-link {
|
67
|
+
&:hover {
|
68
|
+
text-decoration: none;
|
69
|
+
}
|
70
|
+
|
71
|
+
+ .card-link {
|
72
|
+
margin-left: $card-spacer-x;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
//
|
77
|
+
// Optional textual caps
|
78
|
+
//
|
79
|
+
|
80
|
+
.card-header {
|
81
|
+
padding: $card-cap-padding-y $card-cap-padding-x;
|
82
|
+
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
83
|
+
color: $card-cap-color;
|
84
|
+
background-color: $card-cap-bg;
|
85
|
+
border-bottom: $card-border-width solid $card-border-color;
|
86
|
+
|
87
|
+
&:first-child {
|
88
|
+
@include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.card-footer {
|
93
|
+
padding: $card-cap-padding-y $card-cap-padding-x;
|
94
|
+
color: $card-cap-color;
|
95
|
+
background-color: $card-cap-bg;
|
96
|
+
border-top: $card-border-width solid $card-border-color;
|
97
|
+
|
98
|
+
&:last-child {
|
99
|
+
@include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
//
|
105
|
+
// Header navs
|
106
|
+
//
|
107
|
+
|
108
|
+
.card-header-tabs {
|
109
|
+
margin-right: -$card-cap-padding-x / 2;
|
110
|
+
margin-bottom: -$card-cap-padding-y;
|
111
|
+
margin-left: -$card-cap-padding-x / 2;
|
112
|
+
border-bottom: 0;
|
113
|
+
|
114
|
+
@if $nav-tabs-link-active-bg != $card-bg {
|
115
|
+
.nav-link.active {
|
116
|
+
background-color: $card-bg;
|
117
|
+
border-bottom-color: $card-bg;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
.card-header-pills {
|
123
|
+
margin-right: -$card-cap-padding-x / 2;
|
124
|
+
margin-left: -$card-cap-padding-x / 2;
|
125
|
+
}
|
126
|
+
|
127
|
+
// Card image
|
128
|
+
.card-img-overlay {
|
129
|
+
position: absolute;
|
130
|
+
top: 0;
|
131
|
+
right: 0;
|
132
|
+
bottom: 0;
|
133
|
+
left: 0;
|
134
|
+
padding: $card-img-overlay-padding;
|
135
|
+
@include border-radius($card-inner-border-radius);
|
136
|
+
}
|
137
|
+
|
138
|
+
.card-img,
|
139
|
+
.card-img-top,
|
140
|
+
.card-img-bottom {
|
141
|
+
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
142
|
+
}
|
143
|
+
|
144
|
+
.card-img,
|
145
|
+
.card-img-top {
|
146
|
+
@include border-top-radius($card-inner-border-radius);
|
147
|
+
}
|
148
|
+
|
149
|
+
.card-img,
|
150
|
+
.card-img-bottom {
|
151
|
+
@include border-bottom-radius($card-inner-border-radius);
|
152
|
+
}
|
153
|
+
|
154
|
+
|
155
|
+
//
|
156
|
+
// Card groups
|
157
|
+
//
|
158
|
+
|
159
|
+
.card-group {
|
160
|
+
// The child selector allows nested `.card` within `.card-group`
|
161
|
+
// to display properly.
|
162
|
+
> .card {
|
163
|
+
margin-bottom: $card-group-margin;
|
164
|
+
}
|
165
|
+
|
166
|
+
@include media-breakpoint-up(sm) {
|
167
|
+
display: flex;
|
168
|
+
flex-flow: row wrap;
|
169
|
+
// The child selector allows nested `.card` within `.card-group`
|
170
|
+
// to display properly.
|
171
|
+
> .card {
|
172
|
+
// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
173
|
+
flex: 1 0 0%;
|
174
|
+
margin-bottom: 0;
|
175
|
+
|
176
|
+
+ .card {
|
177
|
+
margin-left: 0;
|
178
|
+
border-left: 0;
|
179
|
+
}
|
180
|
+
|
181
|
+
// Handle rounded corners
|
182
|
+
@if $enable-rounded {
|
183
|
+
&:not(:last-child) {
|
184
|
+
@include border-end-radius(0);
|
185
|
+
|
186
|
+
.card-img-top,
|
187
|
+
.card-header {
|
188
|
+
// stylelint-disable-next-line property-disallowed-list
|
189
|
+
border-top-right-radius: 0;
|
190
|
+
}
|
191
|
+
.card-img-bottom,
|
192
|
+
.card-footer {
|
193
|
+
// stylelint-disable-next-line property-disallowed-list
|
194
|
+
border-bottom-right-radius: 0;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
&:not(:first-child) {
|
199
|
+
@include border-start-radius(0);
|
200
|
+
|
201
|
+
.card-img-top,
|
202
|
+
.card-header {
|
203
|
+
// stylelint-disable-next-line property-disallowed-list
|
204
|
+
border-top-left-radius: 0;
|
205
|
+
}
|
206
|
+
.card-img-bottom,
|
207
|
+
.card-footer {
|
208
|
+
// stylelint-disable-next-line property-disallowed-list
|
209
|
+
border-bottom-left-radius: 0;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|