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
@@ -1,166 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Input groups
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
// Base styles
|
6
|
-
// -------------------------
|
7
|
-
.input-group {
|
8
|
-
position: relative; // For dropdowns
|
9
|
-
display: table;
|
10
|
-
border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
|
11
|
-
|
12
|
-
// Undo padding and float of grid classes
|
13
|
-
&[class*="col-"] {
|
14
|
-
float: none;
|
15
|
-
padding-left: 0;
|
16
|
-
padding-right: 0;
|
17
|
-
}
|
18
|
-
|
19
|
-
.form-control {
|
20
|
-
// Ensure that the input is always above the *appended* addon button for
|
21
|
-
// proper border colors.
|
22
|
-
position: relative;
|
23
|
-
z-index: 2;
|
24
|
-
|
25
|
-
// IE9 fubars the placeholder attribute in text inputs and the arrows on
|
26
|
-
// select elements in input groups. To fix it, we float the input. Details:
|
27
|
-
// https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855
|
28
|
-
float: left;
|
29
|
-
|
30
|
-
width: 100%;
|
31
|
-
margin-bottom: 0;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
// Sizing options
|
36
|
-
//
|
37
|
-
// Remix the default form control sizing classes into new ones for easier
|
38
|
-
// manipulation.
|
39
|
-
|
40
|
-
.input-group-lg > .form-control,
|
41
|
-
.input-group-lg > .input-group-addon,
|
42
|
-
.input-group-lg > .input-group-btn > .btn {
|
43
|
-
@extend .input-lg;
|
44
|
-
}
|
45
|
-
.input-group-sm > .form-control,
|
46
|
-
.input-group-sm > .input-group-addon,
|
47
|
-
.input-group-sm > .input-group-btn > .btn {
|
48
|
-
@extend .input-sm;
|
49
|
-
}
|
50
|
-
|
51
|
-
|
52
|
-
// Display as table-cell
|
53
|
-
// -------------------------
|
54
|
-
.input-group-addon,
|
55
|
-
.input-group-btn,
|
56
|
-
.input-group .form-control {
|
57
|
-
display: table-cell;
|
58
|
-
|
59
|
-
&:not(:first-child):not(:last-child) {
|
60
|
-
border-radius: 0;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
// Addon and addon wrapper for buttons
|
64
|
-
.input-group-addon,
|
65
|
-
.input-group-btn {
|
66
|
-
width: 1%;
|
67
|
-
white-space: nowrap;
|
68
|
-
vertical-align: middle; // Match the inputs
|
69
|
-
}
|
70
|
-
|
71
|
-
// Text input groups
|
72
|
-
// -------------------------
|
73
|
-
.input-group-addon {
|
74
|
-
padding: $padding-base-vertical $padding-base-horizontal;
|
75
|
-
font-size: $font-size-base;
|
76
|
-
font-weight: normal;
|
77
|
-
line-height: 1;
|
78
|
-
color: $input-color;
|
79
|
-
text-align: center;
|
80
|
-
background-color: $input-group-addon-bg;
|
81
|
-
border: 1px solid $input-group-addon-border-color;
|
82
|
-
border-radius: $border-radius-base;
|
83
|
-
|
84
|
-
// Sizing
|
85
|
-
&.input-sm {
|
86
|
-
padding: $padding-small-vertical $padding-small-horizontal;
|
87
|
-
font-size: $font-size-small;
|
88
|
-
border-radius: $border-radius-small;
|
89
|
-
}
|
90
|
-
&.input-lg {
|
91
|
-
padding: $padding-large-vertical $padding-large-horizontal;
|
92
|
-
font-size: $font-size-large;
|
93
|
-
border-radius: $border-radius-large;
|
94
|
-
}
|
95
|
-
|
96
|
-
// Nuke default margins from checkboxes and radios to vertically center within.
|
97
|
-
input[type="radio"],
|
98
|
-
input[type="checkbox"] {
|
99
|
-
margin-top: 0;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
// Reset rounded corners
|
104
|
-
.input-group .form-control:first-child,
|
105
|
-
.input-group-addon:first-child,
|
106
|
-
.input-group-btn:first-child > .btn,
|
107
|
-
.input-group-btn:first-child > .btn-group > .btn,
|
108
|
-
.input-group-btn:first-child > .dropdown-toggle,
|
109
|
-
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
|
110
|
-
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
|
111
|
-
@include border-right-radius(0);
|
112
|
-
}
|
113
|
-
.input-group-addon:first-child {
|
114
|
-
border-right: 0;
|
115
|
-
}
|
116
|
-
.input-group .form-control:last-child,
|
117
|
-
.input-group-addon:last-child,
|
118
|
-
.input-group-btn:last-child > .btn,
|
119
|
-
.input-group-btn:last-child > .btn-group > .btn,
|
120
|
-
.input-group-btn:last-child > .dropdown-toggle,
|
121
|
-
.input-group-btn:first-child > .btn:not(:first-child),
|
122
|
-
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
|
123
|
-
@include border-left-radius(0);
|
124
|
-
}
|
125
|
-
.input-group-addon:last-child {
|
126
|
-
border-left: 0;
|
127
|
-
}
|
128
|
-
|
129
|
-
// Button input groups
|
130
|
-
// -------------------------
|
131
|
-
.input-group-btn {
|
132
|
-
position: relative;
|
133
|
-
// Jankily prevent input button groups from wrapping with `white-space` and
|
134
|
-
// `font-size` in combination with `inline-block` on buttons.
|
135
|
-
font-size: 0;
|
136
|
-
white-space: nowrap;
|
137
|
-
|
138
|
-
// Negative margin for spacing, position for bringing hovered/focused/actived
|
139
|
-
// element above the siblings.
|
140
|
-
> .btn {
|
141
|
-
position: relative;
|
142
|
-
+ .btn {
|
143
|
-
margin-left: -1px;
|
144
|
-
}
|
145
|
-
// Bring the "active" button to the front
|
146
|
-
&:hover,
|
147
|
-
&:focus,
|
148
|
-
&:active {
|
149
|
-
z-index: 2;
|
150
|
-
}
|
151
|
-
}
|
152
|
-
|
153
|
-
// Negative margin to only have a 1px border between the two
|
154
|
-
&:first-child {
|
155
|
-
> .btn,
|
156
|
-
> .btn-group {
|
157
|
-
margin-right: -1px;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
&:last-child {
|
161
|
-
> .btn,
|
162
|
-
> .btn-group {
|
163
|
-
margin-left: -1px;
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Labels
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
.label {
|
6
|
-
display: inline;
|
7
|
-
padding: .2em .6em .3em;
|
8
|
-
font-size: 75%;
|
9
|
-
font-weight: bold;
|
10
|
-
line-height: 1;
|
11
|
-
color: $label-color;
|
12
|
-
text-align: center;
|
13
|
-
white-space: nowrap;
|
14
|
-
vertical-align: baseline;
|
15
|
-
border-radius: .25em;
|
16
|
-
|
17
|
-
// [converter] extracted a& to a.label
|
18
|
-
|
19
|
-
// Empty labels collapse automatically (not available in IE8)
|
20
|
-
&:empty {
|
21
|
-
display: none;
|
22
|
-
}
|
23
|
-
|
24
|
-
// Quick fix for labels in buttons
|
25
|
-
.btn & {
|
26
|
-
position: relative;
|
27
|
-
top: -1px;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
// Add hover effects, but only for links
|
32
|
-
a.label {
|
33
|
-
&:hover,
|
34
|
-
&:focus {
|
35
|
-
color: $label-link-hover-color;
|
36
|
-
text-decoration: none;
|
37
|
-
cursor: pointer;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
// Colors
|
42
|
-
// Contextual variations (linked labels get darker on :hover)
|
43
|
-
|
44
|
-
.label-default {
|
45
|
-
@include label-variant($label-default-bg);
|
46
|
-
}
|
47
|
-
|
48
|
-
.label-primary {
|
49
|
-
@include label-variant($label-primary-bg);
|
50
|
-
}
|
51
|
-
|
52
|
-
.label-success {
|
53
|
-
@include label-variant($label-success-bg);
|
54
|
-
}
|
55
|
-
|
56
|
-
.label-info {
|
57
|
-
@include label-variant($label-info-bg);
|
58
|
-
}
|
59
|
-
|
60
|
-
.label-warning {
|
61
|
-
@include label-variant($label-warning-bg);
|
62
|
-
}
|
63
|
-
|
64
|
-
.label-danger {
|
65
|
-
@include label-variant($label-danger-bg);
|
66
|
-
}
|
@@ -1,150 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Modals
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
// .modal-open - body class for killing the scroll
|
6
|
-
// .modal - container to scroll within
|
7
|
-
// .modal-dialog - positioning shell for the actual modal
|
8
|
-
// .modal-content - actual modal w/ bg and corners and shit
|
9
|
-
|
10
|
-
// Kill the scroll on the body
|
11
|
-
.modal-open {
|
12
|
-
overflow: hidden;
|
13
|
-
}
|
14
|
-
|
15
|
-
// Container that the modal scrolls within
|
16
|
-
.modal {
|
17
|
-
display: none;
|
18
|
-
overflow: hidden;
|
19
|
-
position: fixed;
|
20
|
-
top: 0;
|
21
|
-
right: 0;
|
22
|
-
bottom: 0;
|
23
|
-
left: 0;
|
24
|
-
z-index: $zindex-modal;
|
25
|
-
-webkit-overflow-scrolling: touch;
|
26
|
-
|
27
|
-
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
28
|
-
// https://github.com/twbs/bootstrap/pull/10951.
|
29
|
-
outline: 0;
|
30
|
-
|
31
|
-
// When fading in the modal, animate it to slide down
|
32
|
-
&.fade .modal-dialog {
|
33
|
-
@include translate(0, -25%);
|
34
|
-
@include transition-transform(0.3s ease-out);
|
35
|
-
}
|
36
|
-
&.in .modal-dialog { @include translate(0, 0) }
|
37
|
-
}
|
38
|
-
.modal-open .modal {
|
39
|
-
overflow-x: hidden;
|
40
|
-
overflow-y: auto;
|
41
|
-
}
|
42
|
-
|
43
|
-
// Shell div to position the modal with bottom padding
|
44
|
-
.modal-dialog {
|
45
|
-
position: relative;
|
46
|
-
width: auto;
|
47
|
-
margin: 10px;
|
48
|
-
}
|
49
|
-
|
50
|
-
// Actual modal
|
51
|
-
.modal-content {
|
52
|
-
position: relative;
|
53
|
-
background-color: $modal-content-bg;
|
54
|
-
border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
|
55
|
-
border: 1px solid $modal-content-border-color;
|
56
|
-
border-radius: $border-radius-large;
|
57
|
-
@include box-shadow(0 3px 9px rgba(0,0,0,.5));
|
58
|
-
background-clip: padding-box;
|
59
|
-
// Remove focus outline from opened modal
|
60
|
-
outline: 0;
|
61
|
-
}
|
62
|
-
|
63
|
-
// Modal background
|
64
|
-
.modal-backdrop {
|
65
|
-
position: fixed;
|
66
|
-
top: 0;
|
67
|
-
right: 0;
|
68
|
-
bottom: 0;
|
69
|
-
left: 0;
|
70
|
-
z-index: $zindex-modal-background;
|
71
|
-
background-color: $modal-backdrop-bg;
|
72
|
-
// Fade for backdrop
|
73
|
-
&.fade { @include opacity(0); }
|
74
|
-
&.in { @include opacity($modal-backdrop-opacity); }
|
75
|
-
}
|
76
|
-
|
77
|
-
// Modal header
|
78
|
-
// Top section of the modal w/ title and dismiss
|
79
|
-
.modal-header {
|
80
|
-
padding: $modal-title-padding;
|
81
|
-
border-bottom: 1px solid $modal-header-border-color;
|
82
|
-
min-height: ($modal-title-padding + $modal-title-line-height);
|
83
|
-
}
|
84
|
-
// Close icon
|
85
|
-
.modal-header .close {
|
86
|
-
margin-top: -2px;
|
87
|
-
}
|
88
|
-
|
89
|
-
// Title text within header
|
90
|
-
.modal-title {
|
91
|
-
margin: 0;
|
92
|
-
line-height: $modal-title-line-height;
|
93
|
-
}
|
94
|
-
|
95
|
-
// Modal body
|
96
|
-
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
97
|
-
.modal-body {
|
98
|
-
position: relative;
|
99
|
-
padding: $modal-inner-padding;
|
100
|
-
}
|
101
|
-
|
102
|
-
// Footer (for actions)
|
103
|
-
.modal-footer {
|
104
|
-
padding: $modal-inner-padding;
|
105
|
-
text-align: right; // right align buttons
|
106
|
-
border-top: 1px solid $modal-footer-border-color;
|
107
|
-
@include clearfix; // clear it in case folks use .pull-* classes on buttons
|
108
|
-
|
109
|
-
// Properly space out buttons
|
110
|
-
.btn + .btn {
|
111
|
-
margin-left: 5px;
|
112
|
-
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
113
|
-
}
|
114
|
-
// but override that for button groups
|
115
|
-
.btn-group .btn + .btn {
|
116
|
-
margin-left: -1px;
|
117
|
-
}
|
118
|
-
// and override it for block buttons as well
|
119
|
-
.btn-block + .btn-block {
|
120
|
-
margin-left: 0;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
// Measure scrollbar width for padding body during modal show/hide
|
125
|
-
.modal-scrollbar-measure {
|
126
|
-
position: absolute;
|
127
|
-
top: -9999px;
|
128
|
-
width: 50px;
|
129
|
-
height: 50px;
|
130
|
-
overflow: scroll;
|
131
|
-
}
|
132
|
-
|
133
|
-
// Scale up the modal
|
134
|
-
@media (min-width: $screen-sm-min) {
|
135
|
-
// Automatically set modal's width for larger viewports
|
136
|
-
.modal-dialog {
|
137
|
-
width: $modal-md;
|
138
|
-
margin: 30px auto;
|
139
|
-
}
|
140
|
-
.modal-content {
|
141
|
-
@include box-shadow(0 5px 15px rgba(0,0,0,.5));
|
142
|
-
}
|
143
|
-
|
144
|
-
// Modal sizes
|
145
|
-
.modal-sm { width: $modal-sm; }
|
146
|
-
}
|
147
|
-
|
148
|
-
@media (min-width: $screen-md-min) {
|
149
|
-
.modal-lg { width: $modal-lg; }
|
150
|
-
}
|
@@ -1,242 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Navs
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Base class
|
7
|
-
// --------------------------------------------------
|
8
|
-
|
9
|
-
.nav {
|
10
|
-
margin-bottom: 0;
|
11
|
-
padding-left: 0; // Override default ul/ol
|
12
|
-
list-style: none;
|
13
|
-
@include clearfix;
|
14
|
-
|
15
|
-
> li {
|
16
|
-
position: relative;
|
17
|
-
display: block;
|
18
|
-
|
19
|
-
> a {
|
20
|
-
position: relative;
|
21
|
-
display: block;
|
22
|
-
padding: $nav-link-padding;
|
23
|
-
&:hover,
|
24
|
-
&:focus {
|
25
|
-
text-decoration: none;
|
26
|
-
background-color: $nav-link-hover-bg;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
// Disabled state sets text to gray and nukes hover/tab effects
|
31
|
-
&.disabled > a {
|
32
|
-
color: $nav-disabled-link-color;
|
33
|
-
|
34
|
-
&:hover,
|
35
|
-
&:focus {
|
36
|
-
color: $nav-disabled-link-hover-color;
|
37
|
-
text-decoration: none;
|
38
|
-
background-color: transparent;
|
39
|
-
cursor: $cursor-disabled;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
// Open dropdowns
|
45
|
-
.open > a {
|
46
|
-
&,
|
47
|
-
&:hover,
|
48
|
-
&:focus {
|
49
|
-
background-color: $nav-link-hover-bg;
|
50
|
-
border-color: $link-color;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
// Nav dividers (deprecated with v3.0.1)
|
55
|
-
//
|
56
|
-
// This should have been removed in v3 with the dropping of `.nav-list`, but
|
57
|
-
// we missed it. We don't currently support this anywhere, but in the interest
|
58
|
-
// of maintaining backward compatibility in case you use it, it's deprecated.
|
59
|
-
.nav-divider {
|
60
|
-
@include nav-divider;
|
61
|
-
}
|
62
|
-
|
63
|
-
// Prevent IE8 from misplacing imgs
|
64
|
-
//
|
65
|
-
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
66
|
-
> li > a > img {
|
67
|
-
max-width: none;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
|
72
|
-
// Tabs
|
73
|
-
// -------------------------
|
74
|
-
|
75
|
-
// Give the tabs something to sit on
|
76
|
-
.nav-tabs {
|
77
|
-
border-bottom: 1px solid $nav-tabs-border-color;
|
78
|
-
> li {
|
79
|
-
float: left;
|
80
|
-
// Make the list-items overlay the bottom border
|
81
|
-
margin-bottom: -1px;
|
82
|
-
|
83
|
-
// Actual tabs (as links)
|
84
|
-
> a {
|
85
|
-
margin-right: 2px;
|
86
|
-
line-height: $line-height-base;
|
87
|
-
border: 1px solid transparent;
|
88
|
-
border-radius: $border-radius-base $border-radius-base 0 0;
|
89
|
-
&:hover {
|
90
|
-
border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
// Active state, and its :hover to override normal :hover
|
95
|
-
&.active > a {
|
96
|
-
&,
|
97
|
-
&:hover,
|
98
|
-
&:focus {
|
99
|
-
color: $nav-tabs-active-link-hover-color;
|
100
|
-
background-color: $nav-tabs-active-link-hover-bg;
|
101
|
-
border: 1px solid $nav-tabs-active-link-hover-border-color;
|
102
|
-
border-bottom-color: transparent;
|
103
|
-
cursor: default;
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
107
|
-
// pulling this in mainly for less shorthand
|
108
|
-
&.nav-justified {
|
109
|
-
@extend .nav-justified;
|
110
|
-
@extend .nav-tabs-justified;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
|
115
|
-
// Pills
|
116
|
-
// -------------------------
|
117
|
-
.nav-pills {
|
118
|
-
> li {
|
119
|
-
float: left;
|
120
|
-
|
121
|
-
// Links rendered as pills
|
122
|
-
> a {
|
123
|
-
border-radius: $nav-pills-border-radius;
|
124
|
-
}
|
125
|
-
+ li {
|
126
|
-
margin-left: 2px;
|
127
|
-
}
|
128
|
-
|
129
|
-
// Active state
|
130
|
-
&.active > a {
|
131
|
-
&,
|
132
|
-
&:hover,
|
133
|
-
&:focus {
|
134
|
-
color: $nav-pills-active-link-hover-color;
|
135
|
-
background-color: $nav-pills-active-link-hover-bg;
|
136
|
-
}
|
137
|
-
}
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
|
142
|
-
// Stacked pills
|
143
|
-
.nav-stacked {
|
144
|
-
> li {
|
145
|
-
float: none;
|
146
|
-
+ li {
|
147
|
-
margin-top: 2px;
|
148
|
-
margin-left: 0; // no need for this gap between nav items
|
149
|
-
}
|
150
|
-
}
|
151
|
-
}
|
152
|
-
|
153
|
-
|
154
|
-
// Nav variations
|
155
|
-
// --------------------------------------------------
|
156
|
-
|
157
|
-
// Justified nav links
|
158
|
-
// -------------------------
|
159
|
-
|
160
|
-
.nav-justified {
|
161
|
-
width: 100%;
|
162
|
-
|
163
|
-
> li {
|
164
|
-
float: none;
|
165
|
-
> a {
|
166
|
-
text-align: center;
|
167
|
-
margin-bottom: 5px;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
|
171
|
-
> .dropdown .dropdown-menu {
|
172
|
-
top: auto;
|
173
|
-
left: auto;
|
174
|
-
}
|
175
|
-
|
176
|
-
@media (min-width: $screen-sm-min) {
|
177
|
-
> li {
|
178
|
-
display: table-cell;
|
179
|
-
width: 1%;
|
180
|
-
> a {
|
181
|
-
margin-bottom: 0;
|
182
|
-
}
|
183
|
-
}
|
184
|
-
}
|
185
|
-
}
|
186
|
-
|
187
|
-
// Move borders to anchors instead of bottom of list
|
188
|
-
//
|
189
|
-
// Mixin for adding on top the shared `.nav-justified` styles for our tabs
|
190
|
-
.nav-tabs-justified {
|
191
|
-
border-bottom: 0;
|
192
|
-
|
193
|
-
> li > a {
|
194
|
-
// Override margin from .nav-tabs
|
195
|
-
margin-right: 0;
|
196
|
-
border-radius: $border-radius-base;
|
197
|
-
}
|
198
|
-
|
199
|
-
> .active > a,
|
200
|
-
> .active > a:hover,
|
201
|
-
> .active > a:focus {
|
202
|
-
border: 1px solid $nav-tabs-justified-link-border-color;
|
203
|
-
}
|
204
|
-
|
205
|
-
@media (min-width: $screen-sm-min) {
|
206
|
-
> li > a {
|
207
|
-
border-bottom: 1px solid $nav-tabs-justified-link-border-color;
|
208
|
-
border-radius: $border-radius-base $border-radius-base 0 0;
|
209
|
-
}
|
210
|
-
> .active > a,
|
211
|
-
> .active > a:hover,
|
212
|
-
> .active > a:focus {
|
213
|
-
border-bottom-color: $nav-tabs-justified-active-link-border-color;
|
214
|
-
}
|
215
|
-
}
|
216
|
-
}
|
217
|
-
|
218
|
-
|
219
|
-
// Tabbable tabs
|
220
|
-
// -------------------------
|
221
|
-
|
222
|
-
// Hide tabbable panes to start, show them when `.active`
|
223
|
-
.tab-content {
|
224
|
-
> .tab-pane {
|
225
|
-
display: none;
|
226
|
-
}
|
227
|
-
> .active {
|
228
|
-
display: block;
|
229
|
-
}
|
230
|
-
}
|
231
|
-
|
232
|
-
|
233
|
-
// Dropdowns
|
234
|
-
// -------------------------
|
235
|
-
|
236
|
-
// Specific dropdowns
|
237
|
-
.nav-tabs .dropdown-menu {
|
238
|
-
// make dropdown border overlap tab border
|
239
|
-
margin-top: -1px;
|
240
|
-
// Remove the top rounded corners here since there is a hard edge above the menu
|
241
|
-
@include border-top-radius(0);
|
242
|
-
}
|