mumuki-styles 2.0.2 → 3.0.3
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 +6266 -1749
- data/app/assets/stylesheets/css/mumuki-styles.css +9907 -5621
- data/app/assets/stylesheets/scss/_colors.scss +64 -30
- data/app/assets/stylesheets/scss/_fa5.scss +2 -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 +24 -12
- data/app/assets/stylesheets/scss/_vendor.scss +1 -4
- 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/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 -1
- 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 +85 -81
- 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
@@ -0,0 +1,9 @@
|
|
1
|
+
// Container mixins
|
2
|
+
|
3
|
+
@mixin make-container($gutter: $container-padding-x) {
|
4
|
+
width: 100%;
|
5
|
+
padding-right: var(--#{$variable-prefix}gutter-x, #{$gutter});
|
6
|
+
padding-left: var(--#{$variable-prefix}gutter-x, #{$gutter});
|
7
|
+
margin-right: auto;
|
8
|
+
margin-left: auto;
|
9
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// Deprecate mixin
|
2
|
+
//
|
3
|
+
// This mixin can be used to deprecate mixins or functions.
|
4
|
+
// `$enable-deprecation-messages` is a global variable, `$ignore-warning` is a variable that can be passed to
|
5
|
+
// some deprecated mixins to suppress the warning (for example if the mixin is still be used in the current version of Bootstrap)
|
6
|
+
@mixin deprecate($name, $deprecate-version, $remove-version, $ignore-warning: false) {
|
7
|
+
@if ($enable-deprecation-messages != false and $ignore-warning != true) {
|
8
|
+
@warn "#{$name} has been deprecated as of #{$deprecate-version}. It will be removed entirely in #{$remove-version}.";
|
9
|
+
}
|
10
|
+
}
|
@@ -0,0 +1,134 @@
|
|
1
|
+
// This mixin uses an `if()` technique to be compatible with Dart Sass
|
2
|
+
// See https://github.com/sass/sass/issues/1873#issuecomment-152293725 for more details
|
3
|
+
|
4
|
+
// scss-docs-start form-validation-mixins
|
5
|
+
@mixin form-validation-state-selector($state) {
|
6
|
+
@if ($state == "valid" or $state == "invalid") {
|
7
|
+
.was-validated #{if(&, "&", "")}:#{$state},
|
8
|
+
#{if(&, "&", "")}.is-#{$state} {
|
9
|
+
@content;
|
10
|
+
}
|
11
|
+
} @else {
|
12
|
+
#{if(&, "&", "")}.is-#{$state} {
|
13
|
+
@content;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
@mixin form-validation-state(
|
19
|
+
$state,
|
20
|
+
$color,
|
21
|
+
$icon,
|
22
|
+
$tooltip-color: color-contrast($color),
|
23
|
+
$tooltip-bg-color: rgba($color, $form-feedback-tooltip-opacity),
|
24
|
+
$focus-box-shadow: 0 0 $input-btn-focus-blur $input-focus-width rgba($color, $input-btn-focus-color-opacity)
|
25
|
+
) {
|
26
|
+
.#{$state}-feedback {
|
27
|
+
display: none;
|
28
|
+
width: 100%;
|
29
|
+
margin-top: $form-feedback-margin-top;
|
30
|
+
@include font-size($form-feedback-font-size);
|
31
|
+
font-style: $form-feedback-font-style;
|
32
|
+
color: $color;
|
33
|
+
}
|
34
|
+
|
35
|
+
.#{$state}-tooltip {
|
36
|
+
position: absolute;
|
37
|
+
top: 100%;
|
38
|
+
z-index: 5;
|
39
|
+
display: none;
|
40
|
+
max-width: 100%; // Contain to parent when possible
|
41
|
+
padding: $form-feedback-tooltip-padding-y $form-feedback-tooltip-padding-x;
|
42
|
+
margin-top: .1rem;
|
43
|
+
@include font-size($form-feedback-tooltip-font-size);
|
44
|
+
line-height: $form-feedback-tooltip-line-height;
|
45
|
+
color: $tooltip-color;
|
46
|
+
background-color: $tooltip-bg-color;
|
47
|
+
@include border-radius($form-feedback-tooltip-border-radius);
|
48
|
+
}
|
49
|
+
|
50
|
+
@include form-validation-state-selector($state) {
|
51
|
+
~ .#{$state}-feedback,
|
52
|
+
~ .#{$state}-tooltip {
|
53
|
+
display: block;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
.form-control {
|
58
|
+
@include form-validation-state-selector($state) {
|
59
|
+
border-color: $color;
|
60
|
+
|
61
|
+
@if $enable-validation-icons {
|
62
|
+
padding-right: $input-height-inner;
|
63
|
+
background-image: escape-svg($icon);
|
64
|
+
background-repeat: no-repeat;
|
65
|
+
background-position: right $input-height-inner-quarter center;
|
66
|
+
background-size: $input-height-inner-half $input-height-inner-half;
|
67
|
+
}
|
68
|
+
|
69
|
+
&:focus {
|
70
|
+
border-color: $color;
|
71
|
+
box-shadow: $focus-box-shadow;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
// stylelint-disable-next-line selector-no-qualifying-type
|
77
|
+
textarea.form-control {
|
78
|
+
@include form-validation-state-selector($state) {
|
79
|
+
@if $enable-validation-icons {
|
80
|
+
padding-right: $input-height-inner;
|
81
|
+
background-position: top $input-height-inner-quarter right $input-height-inner-quarter;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.form-select {
|
87
|
+
@include form-validation-state-selector($state) {
|
88
|
+
border-color: $color;
|
89
|
+
|
90
|
+
@if $enable-validation-icons {
|
91
|
+
padding-right: $form-select-feedback-icon-padding-end;
|
92
|
+
background-image: escape-svg($form-select-indicator), escape-svg($icon);
|
93
|
+
background-position: $form-select-bg-position, $form-select-feedback-icon-position;
|
94
|
+
background-size: $form-select-bg-size, $form-select-feedback-icon-size;
|
95
|
+
}
|
96
|
+
|
97
|
+
&:focus {
|
98
|
+
border-color: $color;
|
99
|
+
box-shadow: $focus-box-shadow;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
.form-check-input {
|
105
|
+
@include form-validation-state-selector($state) {
|
106
|
+
border-color: $color;
|
107
|
+
|
108
|
+
&:checked {
|
109
|
+
background-color: $color;
|
110
|
+
}
|
111
|
+
|
112
|
+
&:focus {
|
113
|
+
box-shadow: $focus-box-shadow;
|
114
|
+
}
|
115
|
+
|
116
|
+
~ .form-check-label {
|
117
|
+
color: $color;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
.form-check-inline .form-check-input {
|
122
|
+
~ .#{$state}-feedback {
|
123
|
+
margin-left: .5em;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
.input-group .form-control,
|
128
|
+
.input-group .form-select {
|
129
|
+
@include form-validation-state-selector($state) {
|
130
|
+
z-index: 3;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
// scss-docs-end form-validation-mixins
|
@@ -0,0 +1,47 @@
|
|
1
|
+
// Gradients
|
2
|
+
|
3
|
+
// scss-docs-start gradient-bg-mixin
|
4
|
+
@mixin gradient-bg($color: null) {
|
5
|
+
background-color: $color;
|
6
|
+
|
7
|
+
@if $enable-gradients {
|
8
|
+
background-image: var(--#{$variable-prefix}gradient);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
// scss-docs-end gradient-bg-mixin
|
12
|
+
|
13
|
+
// scss-docs-start gradient-mixins
|
14
|
+
// Horizontal gradient, from left to right
|
15
|
+
//
|
16
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
17
|
+
@mixin gradient-x($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
|
18
|
+
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
19
|
+
}
|
20
|
+
|
21
|
+
// Vertical gradient, from top to bottom
|
22
|
+
//
|
23
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
24
|
+
@mixin gradient-y($start-color: $gray-700, $end-color: $gray-800, $start-percent: null, $end-percent: null) {
|
25
|
+
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin gradient-directional($start-color: $gray-700, $end-color: $gray-800, $deg: 45deg) {
|
29
|
+
background-image: linear-gradient($deg, $start-color, $end-color);
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin gradient-x-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
33
|
+
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin gradient-y-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
37
|
+
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
38
|
+
}
|
39
|
+
|
40
|
+
@mixin gradient-radial($inner-color: $gray-700, $outer-color: $gray-800) {
|
41
|
+
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin gradient-striped($color: rgba($white, .15), $angle: 45deg) {
|
45
|
+
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
46
|
+
}
|
47
|
+
// scss-docs-end gradient-mixins
|
@@ -0,0 +1,120 @@
|
|
1
|
+
/// Grid system
|
2
|
+
//
|
3
|
+
// Generate semantic grid columns with these mixins.
|
4
|
+
|
5
|
+
@mixin make-row($gutter: $grid-gutter-width) {
|
6
|
+
--#{$variable-prefix}gutter-x: #{$gutter};
|
7
|
+
--#{$variable-prefix}gutter-y: 0;
|
8
|
+
display: flex;
|
9
|
+
flex-wrap: wrap;
|
10
|
+
margin-top: calc(var(--#{$variable-prefix}gutter-y) * -1); // stylelint-disable-line function-disallowed-list
|
11
|
+
margin-right: calc(var(--#{$variable-prefix}gutter-x) / -2); // stylelint-disable-line function-disallowed-list
|
12
|
+
margin-left: calc(var(--#{$variable-prefix}gutter-x) / -2); // stylelint-disable-line function-disallowed-list
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin make-col-ready($gutter: $grid-gutter-width) {
|
16
|
+
// Add box sizing if only the grid is loaded
|
17
|
+
box-sizing: if(variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
|
18
|
+
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
19
|
+
// always setting `width: 100%;`. This works because we set the width
|
20
|
+
// later on to override this initial width.
|
21
|
+
flex-shrink: 0;
|
22
|
+
width: 100%;
|
23
|
+
max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
|
24
|
+
padding-right: calc(var(--#{$variable-prefix}gutter-x) / 2); // stylelint-disable-line function-disallowed-list
|
25
|
+
padding-left: calc(var(--#{$variable-prefix}gutter-x) / 2); // stylelint-disable-line function-disallowed-list
|
26
|
+
margin-top: var(--#{$variable-prefix}gutter-y);
|
27
|
+
}
|
28
|
+
|
29
|
+
@mixin make-col($size, $columns: $grid-columns) {
|
30
|
+
flex: 0 0 auto;
|
31
|
+
width: percentage($size / $columns);
|
32
|
+
}
|
33
|
+
|
34
|
+
@mixin make-col-auto() {
|
35
|
+
flex: 0 0 auto;
|
36
|
+
width: auto;
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin make-col-offset($size, $columns: $grid-columns) {
|
40
|
+
$num: $size / $columns;
|
41
|
+
margin-left: if($num == 0, 0, percentage($num));
|
42
|
+
}
|
43
|
+
|
44
|
+
// Row columns
|
45
|
+
//
|
46
|
+
// Specify on a parent element(e.g., .row) to force immediate children into NN
|
47
|
+
// numberof columns. Supports wrapping to new lines, but does not do a Masonry
|
48
|
+
// style grid.
|
49
|
+
@mixin row-cols($count) {
|
50
|
+
> * {
|
51
|
+
flex: 0 0 auto;
|
52
|
+
width: 100% / $count;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
// Framework grid generation
|
57
|
+
//
|
58
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
59
|
+
// any value of `$grid-columns`.
|
60
|
+
|
61
|
+
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
62
|
+
@each $breakpoint in map-keys($breakpoints) {
|
63
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
64
|
+
|
65
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
66
|
+
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
67
|
+
.col#{$infix} {
|
68
|
+
flex: 1 0 0%; // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
69
|
+
}
|
70
|
+
|
71
|
+
.row-cols#{$infix}-auto > * {
|
72
|
+
@include make-col-auto();
|
73
|
+
}
|
74
|
+
|
75
|
+
@if $grid-row-columns > 0 {
|
76
|
+
@for $i from 1 through $grid-row-columns {
|
77
|
+
.row-cols#{$infix}-#{$i} {
|
78
|
+
@include row-cols($i);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.col#{$infix}-auto {
|
84
|
+
@include make-col-auto();
|
85
|
+
}
|
86
|
+
|
87
|
+
@if $columns > 0 {
|
88
|
+
@for $i from 1 through $columns {
|
89
|
+
.col#{$infix}-#{$i} {
|
90
|
+
@include make-col($i, $columns);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
95
|
+
@for $i from 0 through ($columns - 1) {
|
96
|
+
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
|
97
|
+
.offset#{$infix}-#{$i} {
|
98
|
+
@include make-col-offset($i, $columns);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
// Gutters
|
105
|
+
//
|
106
|
+
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
|
107
|
+
@each $key, $value in $gutters {
|
108
|
+
.g#{$infix}-#{$key},
|
109
|
+
.gx#{$infix}-#{$key} {
|
110
|
+
--#{$variable-prefix}gutter-x: #{$value};
|
111
|
+
}
|
112
|
+
|
113
|
+
.g#{$infix}-#{$key},
|
114
|
+
.gy#{$infix}-#{$key} {
|
115
|
+
--#{$variable-prefix}gutter-y: #{$value};
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Image Mixins
|
2
|
+
// - Responsive image
|
3
|
+
// - Retina image
|
4
|
+
|
5
|
+
|
6
|
+
// Responsive image
|
7
|
+
//
|
8
|
+
// Keep images from scaling beyond the width of their parents.
|
9
|
+
|
10
|
+
@mixin img-fluid {
|
11
|
+
// Part 1: Set a maximum relative to the parent
|
12
|
+
max-width: 100%;
|
13
|
+
// Part 2: Override the height to auto, otherwise images will be stretched
|
14
|
+
// when setting a width and height attribute on the img element.
|
15
|
+
height: auto;
|
16
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// List Groups
|
2
|
+
|
3
|
+
// scss-docs-start list-group-mixin
|
4
|
+
@mixin list-group-item-variant($state, $background, $color) {
|
5
|
+
.list-group-item-#{$state} {
|
6
|
+
color: $color;
|
7
|
+
background-color: $background;
|
8
|
+
|
9
|
+
&.list-group-item-action {
|
10
|
+
&:hover,
|
11
|
+
&:focus {
|
12
|
+
color: $color;
|
13
|
+
background-color: shade-color($background, 10%);
|
14
|
+
}
|
15
|
+
|
16
|
+
&.active {
|
17
|
+
color: $white;
|
18
|
+
background-color: $color;
|
19
|
+
border-color: $color;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
// scss-docs-end list-group-mixin
|
@@ -0,0 +1,31 @@
|
|
1
|
+
// Pagination
|
2
|
+
|
3
|
+
// scss-docs-start pagination-mixin
|
4
|
+
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
5
|
+
.page-link {
|
6
|
+
padding: $padding-y $padding-x;
|
7
|
+
@include font-size($font-size);
|
8
|
+
}
|
9
|
+
|
10
|
+
.page-item {
|
11
|
+
@if $pagination-margin-start == (-$pagination-border-width) {
|
12
|
+
&:first-child {
|
13
|
+
.page-link {
|
14
|
+
@include border-start-radius($border-radius);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
&:last-child {
|
19
|
+
.page-link {
|
20
|
+
@include border-end-radius($border-radius);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
} @else {
|
24
|
+
//Add border-radius to all pageLinks in case they have left margin
|
25
|
+
.page-link {
|
26
|
+
@include border-radius($border-radius);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
// scss-docs-end pagination-mixin
|
@@ -1,18 +1,17 @@
|
|
1
|
-
@mixin reset-text
|
1
|
+
@mixin reset-text {
|
2
2
|
font-family: $font-family-base;
|
3
|
-
// We deliberately do NOT reset font-size.
|
3
|
+
// We deliberately do NOT reset font-size or overflow-wrap / word-wrap.
|
4
4
|
font-style: normal;
|
5
|
-
font-weight: normal;
|
6
|
-
letter-spacing: normal;
|
7
|
-
line-break: auto;
|
5
|
+
font-weight: $font-weight-normal;
|
8
6
|
line-height: $line-height-base;
|
9
7
|
text-align: left; // Fallback for where `start` is not supported
|
10
8
|
text-align: start;
|
11
9
|
text-decoration: none;
|
12
10
|
text-shadow: none;
|
13
11
|
text-transform: none;
|
14
|
-
|
12
|
+
letter-spacing: normal;
|
15
13
|
word-break: normal;
|
16
14
|
word-spacing: normal;
|
17
|
-
|
15
|
+
white-space: normal;
|
16
|
+
line-break: auto;
|
18
17
|
}
|