flipper-ui 0.12.2 → 0.13.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/ui/README.md +21 -3
- data/docs/ui/images/configured-ui.png +0 -0
- data/docs/ui/images/environment-banner.png +0 -0
- data/docs/ui/images/feature.png +0 -0
- data/docs/ui/images/features.png +0 -0
- data/lib/flipper/ui/assets/javascripts/application.coffee +3 -0
- data/lib/flipper/ui/assets/stylesheets/.DS_Store +0 -0
- data/lib/flipper/ui/assets/stylesheets/application.scss +9 -48
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_alert.scss +51 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_badge.scss +47 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_breadcrumb.scss +38 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_button-group.scss +166 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_buttons.scss +78 -95
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_card.scss +270 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_carousel.scss +122 -200
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_close.scss +12 -14
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_code.scss +15 -28
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_custom-forms.scss +297 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_dropdown.scss +131 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_forms.scss +210 -455
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_functions.scss +86 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_grid.scss +29 -61
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_images.scss +42 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_input-group.scss +159 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_jumbotron.scss +8 -42
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_list-group.scss +64 -73
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_media.scss +3 -56
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_mixins.scss +21 -18
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_modal.scss +168 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_nav.scss +118 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_navbar.scss +203 -554
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_pagination.scss +58 -69
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_popover.scss +183 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_print.scss +71 -54
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_progress.scss +33 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_reboot.scss +482 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_root.scss +19 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_tables.scss +109 -163
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_tooltip.scss +97 -84
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_transitions.scss +36 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_type.scss +66 -239
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_utilities.scss +14 -55
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_variables.scss +726 -698
- data/lib/flipper/ui/assets/stylesheets/bootstrap/bootstrap-grid.scss +32 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/bootstrap-reboot.scss +12 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/bootstrap.scss +42 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_alert.scss +13 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_background-variant.scss +14 -4
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_badge.scss +12 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_border-radius.scss +25 -8
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +5 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +123 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_buttons.scss +89 -32
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_caret.scss +65 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_clearfix.scss +3 -18
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_float.scss +11 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_forms.scss +115 -66
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_gradients.scss +14 -27
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +52 -66
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_grid.scss +37 -107
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_hover.scss +39 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_image.scss +18 -15
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_list-group.scss +10 -20
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +3 -3
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +10 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_pagination.scss +10 -11
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_reset-text.scss +17 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_resize.scss +1 -1
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +35 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_size.scss +1 -5
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_table-row.scss +16 -14
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +7 -4
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_text-hide.scss +9 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_transition.scss +9 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_visibility.scss +7 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_align.scss +8 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_background.scss +19 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_borders.scss +59 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_display.scss +38 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/{_responsive-embed.scss → utilities/_embed.scss} +26 -9
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_flex.scss +46 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_float.scss +9 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_position.scss +36 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_sizing.scss +12 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_spacing.scss +51 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_text.scss +52 -0
- data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_visibility.scss +11 -0
- data/lib/flipper/ui/configuration.rb +24 -0
- data/lib/flipper/ui/decorators/feature.rb +3 -3
- data/lib/flipper/ui/public/css/application.css +6237 -2339
- data/lib/flipper/ui/public/js/application.js +3 -2
- data/lib/flipper/ui/views/add_actor.erb +7 -9
- data/lib/flipper/ui/views/add_feature.erb +8 -10
- data/lib/flipper/ui/views/add_group.erb +7 -9
- data/lib/flipper/ui/views/feature.erb +181 -141
- data/lib/flipper/ui/views/feature_creation_disabled.erb +1 -1
- data/lib/flipper/ui/views/feature_removal_disabled.erb +1 -1
- data/lib/flipper/ui/views/features.erb +12 -15
- data/lib/flipper/ui/views/layout.erb +25 -15
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/ui/actions/actors_gate_spec.rb +2 -1
- data/spec/flipper/ui/actions/add_feature_spec.rb +2 -1
- data/spec/flipper/ui/actions/groups_gate_spec.rb +2 -1
- data/spec/flipper/ui/configuration_spec.rb +27 -0
- data/spec/flipper/ui_spec.rb +24 -0
- metadata +58 -64
- data/lib/flipper/ui/assets/stylesheets/_bootstrap-compass.scss +0 -9
- data/lib/flipper/ui/assets/stylesheets/_bootstrap-mincer.scss +0 -19
- data/lib/flipper/ui/assets/stylesheets/_bootstrap-sprockets.scss +0 -9
- data/lib/flipper/ui/assets/stylesheets/_bootstrap.scss +0 -50
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_alerts.scss +0 -73
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_badges.scss +0 -68
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_breadcrumbs.scss +0 -26
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_button-groups.scss +0 -243
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_component-animations.scss +0 -37
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_dropdowns.scss +0 -214
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_glyphicons.scss +0 -305
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_input-groups.scss +0 -166
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_labels.scss +0 -66
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_modals.scss +0 -150
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_navs.scss +0 -242
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_normalize.scss +0 -427
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_pager.scss +0 -54
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_panels.scss +0 -265
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_popovers.scss +0 -135
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_progress-bars.scss +0 -87
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_responsive-utilities.scss +0 -177
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_scaffolding.scss +0 -162
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_theme.scss +0 -273
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_thumbnails.scss +0 -38
- data/lib/flipper/ui/assets/stylesheets/bootstrap/_wells.scss +0 -29
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -14
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -8
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -24
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +0 -10
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -21
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
- data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
- data/lib/flipper/ui/public/css/primer.css +0 -1
- data/lib/flipper/ui/public/css/primer/primer.css +0 -1933
- data/lib/flipper/ui/public/css/scss/primer.css +0 -1933
- data/lib/flipper/ui/public/js/bootstrap-sprockets.js +0 -12
- data/lib/flipper/ui/public/js/bootstrap.js +0 -2317
- data/lib/flipper/ui/public/js/bootstrap.min.js +0 -7
- data/lib/flipper/ui/public/js/bootstrap/affix.js +0 -162
- data/lib/flipper/ui/public/js/bootstrap/alert.js +0 -94
- data/lib/flipper/ui/public/js/bootstrap/button.js +0 -116
- data/lib/flipper/ui/public/js/bootstrap/carousel.js +0 -237
- data/lib/flipper/ui/public/js/bootstrap/collapse.js +0 -211
- data/lib/flipper/ui/public/js/bootstrap/dropdown.js +0 -161
- data/lib/flipper/ui/public/js/bootstrap/modal.js +0 -339
- data/lib/flipper/ui/public/js/bootstrap/popover.js +0 -108
- data/lib/flipper/ui/public/js/bootstrap/scrollspy.js +0 -172
- data/lib/flipper/ui/public/js/bootstrap/tab.js +0 -153
- data/lib/flipper/ui/public/js/bootstrap/tooltip.js +0 -476
- data/lib/flipper/ui/public/js/bootstrap/transition.js +0 -59
@@ -0,0 +1,65 @@
|
|
1
|
+
@mixin caret-down {
|
2
|
+
border-top: $caret-width solid;
|
3
|
+
border-right: $caret-width solid transparent;
|
4
|
+
border-bottom: 0;
|
5
|
+
border-left: $caret-width solid transparent;
|
6
|
+
}
|
7
|
+
|
8
|
+
@mixin caret-up {
|
9
|
+
border-top: 0;
|
10
|
+
border-right: $caret-width solid transparent;
|
11
|
+
border-bottom: $caret-width solid;
|
12
|
+
border-left: $caret-width solid transparent;
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin caret-right {
|
16
|
+
border-top: $caret-width solid transparent;
|
17
|
+
border-bottom: $caret-width solid transparent;
|
18
|
+
border-left: $caret-width solid;
|
19
|
+
}
|
20
|
+
|
21
|
+
@mixin caret-left {
|
22
|
+
border-top: $caret-width solid transparent;
|
23
|
+
border-right: $caret-width solid;
|
24
|
+
border-bottom: $caret-width solid transparent;
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin caret($direction: down) {
|
28
|
+
@if $enable-caret {
|
29
|
+
&::after {
|
30
|
+
display: inline-block;
|
31
|
+
width: 0;
|
32
|
+
height: 0;
|
33
|
+
margin-left: $caret-width * .85;
|
34
|
+
vertical-align: $caret-width * .85;
|
35
|
+
content: "";
|
36
|
+
@if $direction == down {
|
37
|
+
@include caret-down;
|
38
|
+
} @else if $direction == up {
|
39
|
+
@include caret-up;
|
40
|
+
} @else if $direction == right {
|
41
|
+
@include caret-right;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
@if $direction == left {
|
46
|
+
&::after {
|
47
|
+
display: none;
|
48
|
+
}
|
49
|
+
|
50
|
+
&::before {
|
51
|
+
display: inline-block;
|
52
|
+
width: 0;
|
53
|
+
height: 0;
|
54
|
+
margin-right: $caret-width * .85;
|
55
|
+
vertical-align: $caret-width * .85;
|
56
|
+
content: "";
|
57
|
+
@include caret-left;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
&:empty::after {
|
62
|
+
margin-left: 0;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -1,22 +1,7 @@
|
|
1
|
-
// Clearfix
|
2
|
-
//
|
3
|
-
// For modern browsers
|
4
|
-
// 1. The space content is one way to avoid an Opera bug when the
|
5
|
-
// contenteditable attribute is included anywhere else in the document.
|
6
|
-
// Otherwise it causes space to appear at the top and bottom of elements
|
7
|
-
// that are clearfixed.
|
8
|
-
// 2. The use of `table` rather than `block` is only necessary if using
|
9
|
-
// `:before` to contain the top-margins of child elements.
|
10
|
-
//
|
11
|
-
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
|
12
|
-
|
13
1
|
@mixin clearfix() {
|
14
|
-
|
15
|
-
|
16
|
-
content: " "; // 1
|
17
|
-
display: table; // 2
|
18
|
-
}
|
19
|
-
&:after {
|
2
|
+
&::after {
|
3
|
+
display: block;
|
20
4
|
clear: both;
|
5
|
+
content: "";
|
21
6
|
}
|
22
7
|
}
|
@@ -1,49 +1,7 @@
|
|
1
|
-
// Form validation states
|
2
|
-
//
|
3
|
-
// Used in forms.less to generate the form validation CSS for warnings, errors,
|
4
|
-
// and successes.
|
5
|
-
|
6
|
-
@mixin form-control-validation($text-color: #555, $border-color: #ccc, $background-color: #f5f5f5) {
|
7
|
-
// Color the label and help text
|
8
|
-
.help-block,
|
9
|
-
.control-label,
|
10
|
-
.radio,
|
11
|
-
.checkbox,
|
12
|
-
.radio-inline,
|
13
|
-
.checkbox-inline,
|
14
|
-
&.radio label,
|
15
|
-
&.checkbox label,
|
16
|
-
&.radio-inline label,
|
17
|
-
&.checkbox-inline label {
|
18
|
-
color: $text-color;
|
19
|
-
}
|
20
|
-
// Set the border and box shadow on specific inputs to match
|
21
|
-
.form-control {
|
22
|
-
border-color: $border-color;
|
23
|
-
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
|
24
|
-
&:focus {
|
25
|
-
border-color: darken($border-color, 10%);
|
26
|
-
$shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($border-color, 20%);
|
27
|
-
@include box-shadow($shadow);
|
28
|
-
}
|
29
|
-
}
|
30
|
-
// Set validation states also for addons
|
31
|
-
.input-group-addon {
|
32
|
-
color: $text-color;
|
33
|
-
border-color: $border-color;
|
34
|
-
background-color: $background-color;
|
35
|
-
}
|
36
|
-
// Optional feedback icon
|
37
|
-
.form-control-feedback {
|
38
|
-
color: $text-color;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
|
43
1
|
// Form control focus state
|
44
2
|
//
|
45
3
|
// Generate a customized focus state and for any input with the specified color,
|
46
|
-
// which defaults to the `$input-border-
|
4
|
+
// which defaults to the `$input-focus-border-color` variable.
|
47
5
|
//
|
48
6
|
// We highly encourage you to not customize the default value, but instead use
|
49
7
|
// this to tweak colors on an as-needed basis. This aesthetic change is based on
|
@@ -52,37 +10,128 @@
|
|
52
10
|
//
|
53
11
|
// Example usage: change the default blue border and shadow to white for better
|
54
12
|
// contrast against a dark gray background.
|
55
|
-
@mixin form-control-focus(
|
56
|
-
$color-rgba: rgba(red($color), green($color), blue($color), .6);
|
13
|
+
@mixin form-control-focus() {
|
57
14
|
&:focus {
|
58
|
-
|
15
|
+
color: $input-focus-color;
|
16
|
+
background-color: $input-focus-bg;
|
17
|
+
border-color: $input-focus-border-color;
|
59
18
|
outline: 0;
|
60
|
-
|
19
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
20
|
+
@if $enable-shadows {
|
21
|
+
box-shadow: $input-box-shadow, $input-focus-box-shadow;
|
22
|
+
} @else {
|
23
|
+
box-shadow: $input-focus-box-shadow;
|
24
|
+
}
|
61
25
|
}
|
62
26
|
}
|
63
27
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
28
|
+
|
29
|
+
@mixin form-validation-state($state, $color) {
|
30
|
+
.#{$state}-feedback {
|
31
|
+
display: none;
|
32
|
+
width: 100%;
|
33
|
+
margin-top: $form-feedback-margin-top;
|
34
|
+
font-size: $form-feedback-font-size;
|
35
|
+
color: $color;
|
36
|
+
}
|
37
|
+
|
38
|
+
.#{$state}-tooltip {
|
39
|
+
position: absolute;
|
40
|
+
top: 100%;
|
41
|
+
z-index: 5;
|
42
|
+
display: none;
|
43
|
+
max-width: 100%; // Contain to parent when possible
|
44
|
+
padding: .5rem;
|
45
|
+
margin-top: .1rem;
|
46
|
+
font-size: .875rem;
|
47
|
+
line-height: 1;
|
48
|
+
color: #fff;
|
49
|
+
background-color: rgba($color, .8);
|
50
|
+
border-radius: .2rem;
|
51
|
+
}
|
52
|
+
|
53
|
+
.form-control,
|
54
|
+
.custom-select {
|
55
|
+
.was-validated &:#{$state},
|
56
|
+
&.is-#{$state} {
|
57
|
+
border-color: $color;
|
58
|
+
|
59
|
+
&:focus {
|
60
|
+
border-color: $color;
|
61
|
+
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
62
|
+
}
|
63
|
+
|
64
|
+
~ .#{$state}-feedback,
|
65
|
+
~ .#{$state}-tooltip {
|
66
|
+
display: block;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.form-check-input {
|
72
|
+
.was-validated &:#{$state},
|
73
|
+
&.is-#{$state} {
|
74
|
+
~ .form-check-label {
|
75
|
+
color: $color;
|
76
|
+
}
|
77
|
+
|
78
|
+
~ .#{$state}-feedback,
|
79
|
+
~ .#{$state}-tooltip {
|
80
|
+
display: block;
|
81
|
+
}
|
82
|
+
}
|
77
83
|
}
|
78
84
|
|
79
|
-
|
80
|
-
|
81
|
-
|
85
|
+
.custom-control-input {
|
86
|
+
.was-validated &:#{$state},
|
87
|
+
&.is-#{$state} {
|
88
|
+
~ .custom-control-label {
|
89
|
+
color: $color;
|
90
|
+
|
91
|
+
&::before {
|
92
|
+
background-color: lighten($color, 25%);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
~ .#{$state}-feedback,
|
97
|
+
~ .#{$state}-tooltip {
|
98
|
+
display: block;
|
99
|
+
}
|
100
|
+
|
101
|
+
&:checked {
|
102
|
+
~ .custom-control-label::before {
|
103
|
+
@include gradient-bg(lighten($color, 10%));
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
&:focus {
|
108
|
+
~ .custom-control-label::before {
|
109
|
+
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-focus-width rgba($color, .25);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
82
113
|
}
|
83
114
|
|
84
|
-
|
85
|
-
|
86
|
-
|
115
|
+
// custom file
|
116
|
+
.custom-file-input {
|
117
|
+
.was-validated &:#{$state},
|
118
|
+
&.is-#{$state} {
|
119
|
+
~ .custom-file-label {
|
120
|
+
border-color: $color;
|
121
|
+
|
122
|
+
&::before { border-color: inherit; }
|
123
|
+
}
|
124
|
+
|
125
|
+
~ .#{$state}-feedback,
|
126
|
+
~ .#{$state}-tooltip {
|
127
|
+
display: block;
|
128
|
+
}
|
129
|
+
|
130
|
+
&:focus {
|
131
|
+
~ .custom-file-label {
|
132
|
+
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
87
136
|
}
|
88
137
|
}
|
@@ -1,58 +1,45 @@
|
|
1
1
|
// Gradients
|
2
2
|
|
3
|
-
|
3
|
+
@mixin gradient-bg($color) {
|
4
|
+
@if $enable-gradients {
|
5
|
+
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x;
|
6
|
+
} @else {
|
7
|
+
background-color: $color;
|
8
|
+
}
|
9
|
+
}
|
4
10
|
|
5
11
|
// Horizontal gradient, from left to right
|
6
12
|
//
|
7
13
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
8
|
-
|
9
|
-
|
10
|
-
background-image: -webkit-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
|
11
|
-
background-image: -o-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Opera 12
|
12
|
-
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
14
|
+
@mixin gradient-x($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
15
|
+
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
13
16
|
background-repeat: repeat-x;
|
14
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
|
15
17
|
}
|
16
18
|
|
17
19
|
// Vertical gradient, from top to bottom
|
18
20
|
//
|
19
21
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
20
|
-
|
21
|
-
|
22
|
-
background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
|
23
|
-
background-image: -o-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Opera 12
|
24
|
-
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
22
|
+
@mixin gradient-y($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
23
|
+
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
25
24
|
background-repeat: repeat-x;
|
26
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
|
27
25
|
}
|
28
26
|
|
29
27
|
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
|
28
|
+
background-image: linear-gradient($deg, $start-color, $end-color);
|
30
29
|
background-repeat: repeat-x;
|
31
|
-
background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
|
32
|
-
background-image: -o-linear-gradient($deg, $start-color, $end-color); // Opera 12
|
33
|
-
background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
34
30
|
}
|
35
|
-
@mixin gradient-
|
36
|
-
background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
|
37
|
-
background-image: -o-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
|
31
|
+
@mixin gradient-x-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
38
32
|
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
39
33
|
background-repeat: no-repeat;
|
40
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
|
41
34
|
}
|
42
|
-
@mixin gradient-
|
43
|
-
background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
44
|
-
background-image: -o-linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
35
|
+
@mixin gradient-y-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
45
36
|
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
46
37
|
background-repeat: no-repeat;
|
47
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
48
38
|
}
|
49
39
|
@mixin gradient-radial($inner-color: #555, $outer-color: #333) {
|
50
|
-
background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color);
|
51
40
|
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
52
41
|
background-repeat: no-repeat;
|
53
42
|
}
|
54
43
|
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
|
55
|
-
background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
56
|
-
background-image: -o-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
57
44
|
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
58
45
|
}
|
@@ -3,79 +3,65 @@
|
|
3
3
|
// Used only by Bootstrap to generate the correct number of grid classes given
|
4
4
|
// any value of `$grid-columns`.
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
$list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
|
10
|
-
}
|
11
|
-
#{$list} {
|
6
|
+
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
7
|
+
// Common properties for all breakpoints
|
8
|
+
%grid-column {
|
12
9
|
position: relative;
|
13
|
-
|
14
|
-
min-height: 1px;
|
15
|
-
|
16
|
-
padding-left:
|
17
|
-
padding-right: ($grid-gutter-width / 2);
|
10
|
+
width: 100%;
|
11
|
+
min-height: 1px; // Prevent columns from collapsing when empty
|
12
|
+
padding-right: ($gutter / 2);
|
13
|
+
padding-left: ($gutter / 2);
|
18
14
|
}
|
19
|
-
}
|
20
|
-
|
21
|
-
|
22
|
-
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
23
|
-
@mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") {
|
24
|
-
@for $i from (1 + 1) through $grid-columns {
|
25
|
-
$list: "#{$list}, .col-#{$class}-#{$i}";
|
26
|
-
}
|
27
|
-
#{$list} {
|
28
|
-
float: left;
|
29
|
-
}
|
30
|
-
}
|
31
15
|
|
16
|
+
@each $breakpoint in map-keys($breakpoints) {
|
17
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
32
18
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
19
|
+
// Allow columns to stretch full width below their breakpoints
|
20
|
+
@for $i from 1 through $columns {
|
21
|
+
.col#{$infix}-#{$i} {
|
22
|
+
@extend %grid-column;
|
23
|
+
}
|
37
24
|
}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
left: percentage(($index / $grid-columns));
|
42
|
-
}
|
43
|
-
}
|
44
|
-
@if ($type == push) and ($index == 0) {
|
45
|
-
.col-#{$class}-push-0 {
|
46
|
-
left: auto;
|
25
|
+
.col#{$infix},
|
26
|
+
.col#{$infix}-auto {
|
27
|
+
@extend %grid-column;
|
47
28
|
}
|
48
|
-
}
|
49
|
-
@if ($type == pull) and ($index > 0) {
|
50
|
-
.col-#{$class}-pull-#{$index} {
|
51
|
-
right: percentage(($index / $grid-columns));
|
52
|
-
}
|
53
|
-
}
|
54
|
-
@if ($type == pull) and ($index == 0) {
|
55
|
-
.col-#{$class}-pull-0 {
|
56
|
-
right: auto;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
@if ($type == offset) {
|
60
|
-
.col-#{$class}-offset-#{$index} {
|
61
|
-
margin-left: percentage(($index / $grid-columns));
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
29
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
30
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
31
|
+
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
32
|
+
.col#{$infix} {
|
33
|
+
flex-basis: 0;
|
34
|
+
flex-grow: 1;
|
35
|
+
max-width: 100%;
|
36
|
+
}
|
37
|
+
.col#{$infix}-auto {
|
38
|
+
flex: 0 0 auto;
|
39
|
+
width: auto;
|
40
|
+
max-width: none; // Reset earlier grid tiers
|
41
|
+
}
|
42
|
+
|
43
|
+
@for $i from 1 through $columns {
|
44
|
+
.col#{$infix}-#{$i} {
|
45
|
+
@include make-col($i, $columns);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.order#{$infix}-first { order: -1; }
|
72
50
|
|
51
|
+
.order#{$infix}-last { order: $columns + 1; }
|
73
52
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
53
|
+
@for $i from 0 through $columns {
|
54
|
+
.order#{$infix}-#{$i} { order: $i; }
|
55
|
+
}
|
56
|
+
|
57
|
+
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
58
|
+
@for $i from 0 through ($columns - 1) {
|
59
|
+
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
|
60
|
+
.offset#{$infix}-#{$i} {
|
61
|
+
@include make-col-offset($i, $columns);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
81
67
|
}
|