rails_admin 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rails_admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-affix.js +99 -74
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-alert.js +48 -55
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-button.js +70 -65
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-carousel.js +163 -147
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-collapse.js +117 -114
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-dropdown.js +89 -107
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-modal.js +208 -175
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-popover.js +77 -78
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-scrollspy.js +137 -129
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-tab.js +85 -101
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-tooltip.js +364 -268
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-transition.js +51 -52
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-typeahead.js +1782 -335
- data/app/assets/javascripts/rails_admin/ra.filter-box.js +1 -1
- data/app/assets/javascripts/rails_admin/ra.filtering-multiselect.js +3 -3
- data/app/assets/javascripts/rails_admin/ra.filtering-select.js +1 -1
- data/app/assets/javascripts/rails_admin/ra.remote-form.js +6 -2
- data/app/assets/stylesheets/rails_admin/base/theming.scss +34 -14
- data/app/assets/stylesheets/rails_admin/bootstrap/_alerts.scss +47 -58
- data/app/assets/stylesheets/rails_admin/bootstrap/_badges.scss +57 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_breadcrumbs.scss +12 -10
- data/app/assets/stylesheets/rails_admin/bootstrap/_button-groups.scss +163 -152
- data/app/assets/stylesheets/rails_admin/bootstrap/_buttons.scss +98 -169
- data/app/assets/stylesheets/rails_admin/bootstrap/_carousel.scss +151 -66
- data/app/assets/stylesheets/rails_admin/bootstrap/_close.scss +11 -8
- data/app/assets/stylesheets/rails_admin/bootstrap/_code.scss +36 -29
- data/app/assets/stylesheets/rails_admin/bootstrap/_component-animations.scss +16 -3
- data/app/assets/stylesheets/rails_admin/bootstrap/_dropdowns.scss +115 -148
- data/app/assets/stylesheets/rails_admin/bootstrap/_forms.scss +396 -547
- data/app/assets/stylesheets/rails_admin/bootstrap/_glyphicons.scss +237 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_grid.scss +74 -11
- data/app/assets/stylesheets/rails_admin/bootstrap/_input-groups.scss +166 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_jumbotron.scss +48 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_labels.scss +66 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_list-group.scss +131 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_media.scss +8 -7
- data/app/assets/stylesheets/rails_admin/bootstrap/_mixins.scss +36 -693
- data/app/assets/stylesheets/rails_admin/bootstrap/_modals.scss +108 -53
- data/app/assets/stylesheets/rails_admin/bootstrap/_navbar.scss +545 -383
- data/app/assets/stylesheets/rails_admin/bootstrap/_navs.scss +191 -358
- data/app/assets/stylesheets/rails_admin/bootstrap/_normalize.scss +425 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_pager.scss +45 -33
- data/app/assets/stylesheets/rails_admin/bootstrap/_pagination.scss +70 -105
- data/app/assets/stylesheets/rails_admin/bootstrap/_panels.scss +243 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_popovers.scss +61 -61
- data/app/assets/stylesheets/rails_admin/bootstrap/_print.scss +101 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_progress-bars.scss +56 -73
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-embed.scss +34 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-utilities.scss +150 -50
- data/app/assets/stylesheets/rails_admin/bootstrap/_scaffolding.scss +120 -23
- data/app/assets/stylesheets/rails_admin/bootstrap/_tables.scss +168 -170
- data/app/assets/stylesheets/rails_admin/bootstrap/_theme.scss +258 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_thumbnails.scss +27 -42
- data/app/assets/stylesheets/rails_admin/bootstrap/_tooltip.scss +49 -24
- data/app/assets/stylesheets/rails_admin/bootstrap/_type.scss +200 -143
- data/app/assets/stylesheets/rails_admin/bootstrap/_utilities.scss +33 -21
- data/app/assets/stylesheets/rails_admin/bootstrap/_variables.scss +764 -215
- data/app/assets/stylesheets/rails_admin/bootstrap/_wells.scss +7 -7
- data/app/assets/stylesheets/rails_admin/bootstrap/bootstrap.scss +47 -60
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_alerts.scss +14 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_background-variant.scss +11 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_border-radius.scss +18 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss +50 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_center-block.scss +7 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_clearfix.scss +22 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_forms.scss +84 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_gradients.scss +58 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_grid-framework.scss +81 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_grid.scss +122 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_hide-text.scss +21 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_image.scss +34 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_labels.scss +12 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_list-group.scss +31 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_opacity.scss +8 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_pagination.scss +23 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_panels.scss +24 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_progress-bar.scss +10 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_reset-filter.scss +8 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_size.scss +10 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_tab-focus.scss +9 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_table-row.scss +28 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_text-overflow.scss +8 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_vendor-prefixes.scss +219 -0
- data/app/assets/stylesheets/rails_admin/ra.calendar-additions.scss +17 -0
- data/app/assets/stylesheets/rails_admin/rails_admin.scss.erb +9 -5
- data/app/helpers/rails_admin/application_helper.rb +20 -19
- data/app/helpers/rails_admin/form_builder.rb +14 -11
- data/app/views/kaminari/twitter-bootstrap/_paginator.html.haml +8 -9
- data/app/views/layouts/rails_admin/_navigation.html.haml +5 -5
- data/app/views/layouts/rails_admin/_secondary_navigation.html.haml +1 -1
- data/app/views/layouts/rails_admin/application.html.haml +9 -8
- data/app/views/layouts/rails_admin/pjax.html.haml +4 -3
- data/app/views/rails_admin/main/_form_datetime.html.haml +2 -1
- data/app/views/rails_admin/main/_form_field.html.haml +1 -1
- data/app/views/rails_admin/main/_form_text.html.haml +1 -1
- data/app/views/rails_admin/main/_submit_buttons.html.haml +1 -0
- data/app/views/rails_admin/main/dashboard.html.haml +1 -1
- data/app/views/rails_admin/main/export.html.haml +19 -16
- data/app/views/rails_admin/main/index.html.haml +11 -7
- data/app/views/rails_admin/main/show.html.haml +1 -1
- data/lib/rails_admin/adapters/active_record.rb +2 -2
- data/lib/rails_admin/adapters/mongoid/property.rb +1 -1
- data/lib/rails_admin/config/actions/bulk_delete.rb +0 -1
- data/lib/rails_admin/config/actions/edit.rb +0 -2
- data/lib/rails_admin/config/actions/export.rb +0 -2
- data/lib/rails_admin/config/actions/index.rb +0 -3
- data/lib/rails_admin/config/actions/new.rb +0 -2
- data/lib/rails_admin/config/configurable.rb +1 -1
- data/lib/rails_admin/config/fields/base.rb +9 -0
- data/lib/rails_admin/config/fields/factories/enum.rb +2 -3
- data/lib/rails_admin/config/fields/types/polymorphic_association.rb +4 -0
- data/lib/rails_admin/config/model.rb +2 -1
- data/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb +2 -2
- data/lib/rails_admin/support/csv_converter.rb +22 -42
- data/lib/rails_admin/version.rb +1 -1
- metadata +59 -18
- data/app/assets/stylesheets/rails_admin/bootstrap/_accordion.scss +0 -34
- data/app/assets/stylesheets/rails_admin/bootstrap/_hero-unit.scss +0 -25
- data/app/assets/stylesheets/rails_admin/bootstrap/_labels-badges.scss +0 -83
- data/app/assets/stylesheets/rails_admin/bootstrap/_layouts.scss +0 -16
- data/app/assets/stylesheets/rails_admin/bootstrap/_reset.scss +0 -216
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-1200px-min.scss +0 -28
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-767px-max.scss +0 -193
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-768px-979px.scss +0 -19
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-navbar.scss +0 -189
- data/app/assets/stylesheets/rails_admin/bootstrap/_sprites.scss +0 -197
- data/app/assets/stylesheets/rails_admin/bootstrap/responsive.scss +0 -48
@@ -6,109 +6,140 @@
|
|
6
6
|
// Base styles
|
7
7
|
// --------------------------------------------------
|
8
8
|
|
9
|
-
// Core
|
10
9
|
.btn {
|
11
10
|
display: inline-block;
|
12
|
-
@include ie7-inline-block();
|
13
|
-
padding: 4px 12px;
|
14
11
|
margin-bottom: 0; // For input.btn
|
15
|
-
font-
|
16
|
-
line-height: $baseLineHeight;
|
12
|
+
font-weight: $btn-font-weight;
|
17
13
|
text-align: center;
|
18
14
|
vertical-align: middle;
|
19
15
|
cursor: pointer;
|
20
|
-
|
21
|
-
border: 1px solid
|
22
|
-
|
23
|
-
|
24
|
-
@include
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
text-decoration: none;
|
33
|
-
background-position: 0 -15px;
|
34
|
-
|
35
|
-
// transition is only when going to hover/focus, otherwise the background
|
36
|
-
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
37
|
-
@include transition(background-position .1s linear);
|
16
|
+
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
17
|
+
border: 1px solid transparent;
|
18
|
+
white-space: nowrap;
|
19
|
+
@include button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $border-radius-base);
|
20
|
+
@include user-select(none);
|
21
|
+
|
22
|
+
&,
|
23
|
+
&:active,
|
24
|
+
&.active {
|
25
|
+
&:focus {
|
26
|
+
@include tab-focus();
|
27
|
+
}
|
38
28
|
}
|
39
29
|
|
40
|
-
|
30
|
+
&:hover,
|
41
31
|
&:focus {
|
42
|
-
|
32
|
+
color: $btn-default-color;
|
33
|
+
text-decoration: none;
|
43
34
|
}
|
44
35
|
|
45
|
-
|
46
|
-
&.active
|
47
|
-
&:active {
|
48
|
-
background-image: none;
|
36
|
+
&:active,
|
37
|
+
&.active {
|
49
38
|
outline: 0;
|
50
|
-
|
39
|
+
background-image: none;
|
40
|
+
@include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
51
41
|
}
|
52
42
|
|
53
|
-
// Disabled state
|
54
43
|
&.disabled,
|
55
|
-
&[disabled]
|
56
|
-
|
57
|
-
|
58
|
-
|
44
|
+
&[disabled],
|
45
|
+
fieldset[disabled] & {
|
46
|
+
cursor: not-allowed;
|
47
|
+
pointer-events: none; // Future-proof disabling of clicks
|
48
|
+
@include opacity(.65);
|
59
49
|
@include box-shadow(none);
|
60
50
|
}
|
61
|
-
|
62
51
|
}
|
63
52
|
|
64
53
|
|
65
|
-
|
66
|
-
// Button Sizes
|
54
|
+
// Alternate buttons
|
67
55
|
// --------------------------------------------------
|
68
56
|
|
69
|
-
|
70
|
-
|
71
|
-
padding: $paddingLarge;
|
72
|
-
font-size: $fontSizeLarge;
|
73
|
-
@include border-radius($borderRadiusLarge);
|
57
|
+
.btn-default {
|
58
|
+
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
|
74
59
|
}
|
75
|
-
.btn-
|
76
|
-
|
77
|
-
margin-top: 4px;
|
60
|
+
.btn-primary {
|
61
|
+
@include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
|
78
62
|
}
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
padding: $paddingSmall;
|
83
|
-
font-size: $fontSizeSmall;
|
84
|
-
@include border-radius($borderRadiusSmall);
|
63
|
+
// Success appears as green
|
64
|
+
.btn-success {
|
65
|
+
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
|
85
66
|
}
|
86
|
-
|
87
|
-
.btn-
|
88
|
-
|
67
|
+
// Info appears as blue-green
|
68
|
+
.btn-info {
|
69
|
+
@include button-variant($btn-info-color, $btn-info-bg, $btn-info-border);
|
70
|
+
}
|
71
|
+
// Warning appears as orange
|
72
|
+
.btn-warning {
|
73
|
+
@include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border);
|
74
|
+
}
|
75
|
+
// Danger and error appear as red
|
76
|
+
.btn-danger {
|
77
|
+
@include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border);
|
89
78
|
}
|
90
|
-
|
91
|
-
|
92
|
-
|
79
|
+
|
80
|
+
|
81
|
+
// Link buttons
|
82
|
+
// -------------------------
|
83
|
+
|
84
|
+
// Make a button look and behave like a link
|
85
|
+
.btn-link {
|
86
|
+
color: $link-color;
|
87
|
+
font-weight: normal;
|
88
|
+
cursor: pointer;
|
89
|
+
border-radius: 0;
|
90
|
+
|
91
|
+
&,
|
92
|
+
&:active,
|
93
|
+
&[disabled],
|
94
|
+
fieldset[disabled] & {
|
95
|
+
background-color: transparent;
|
96
|
+
@include box-shadow(none);
|
97
|
+
}
|
98
|
+
&,
|
99
|
+
&:hover,
|
100
|
+
&:focus,
|
101
|
+
&:active {
|
102
|
+
border-color: transparent;
|
103
|
+
}
|
104
|
+
&:hover,
|
105
|
+
&:focus {
|
106
|
+
color: $link-hover-color;
|
107
|
+
text-decoration: underline;
|
108
|
+
background-color: transparent;
|
109
|
+
}
|
110
|
+
&[disabled],
|
111
|
+
fieldset[disabled] & {
|
112
|
+
&:hover,
|
113
|
+
&:focus {
|
114
|
+
color: $btn-link-disabled-color;
|
115
|
+
text-decoration: none;
|
116
|
+
}
|
117
|
+
}
|
93
118
|
}
|
94
119
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
120
|
+
|
121
|
+
// Button Sizes
|
122
|
+
// --------------------------------------------------
|
123
|
+
|
124
|
+
.btn-lg {
|
125
|
+
// line-height: ensure even-numbered height of button next to large input
|
126
|
+
@include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
|
127
|
+
}
|
128
|
+
.btn-sm {
|
129
|
+
// line-height: ensure proper height of button next to small input
|
130
|
+
@include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
|
131
|
+
}
|
132
|
+
.btn-xs {
|
133
|
+
@include button-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $border-radius-small);
|
100
134
|
}
|
101
135
|
|
102
136
|
|
103
137
|
// Block button
|
104
|
-
//
|
138
|
+
// --------------------------------------------------
|
105
139
|
|
106
140
|
.btn-block {
|
107
141
|
display: block;
|
108
142
|
width: 100%;
|
109
|
-
padding-left: 0;
|
110
|
-
padding-right: 0;
|
111
|
-
@include box-sizing(border-box);
|
112
143
|
}
|
113
144
|
|
114
145
|
// Vertically space out multiple block buttons
|
@@ -124,105 +155,3 @@ input[type="button"] {
|
|
124
155
|
width: 100%;
|
125
156
|
}
|
126
157
|
}
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
// Alternate buttons
|
131
|
-
// --------------------------------------------------
|
132
|
-
|
133
|
-
// Provide *some* extra contrast for those who can get it
|
134
|
-
.btn-primary.active,
|
135
|
-
.btn-warning.active,
|
136
|
-
.btn-danger.active,
|
137
|
-
.btn-success.active,
|
138
|
-
.btn-info.active,
|
139
|
-
.btn-inverse.active {
|
140
|
-
color: rgba(255,255,255,.75);
|
141
|
-
}
|
142
|
-
|
143
|
-
// Set the backgrounds
|
144
|
-
// -------------------------
|
145
|
-
.btn-primary {
|
146
|
-
@include buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
|
147
|
-
}
|
148
|
-
// Warning appears are orange
|
149
|
-
.btn-warning {
|
150
|
-
@include buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight);
|
151
|
-
}
|
152
|
-
// Danger and error appear as red
|
153
|
-
.btn-danger {
|
154
|
-
@include buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight);
|
155
|
-
}
|
156
|
-
// Success appears as green
|
157
|
-
.btn-success {
|
158
|
-
@include buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight);
|
159
|
-
}
|
160
|
-
// Info appears as a neutral blue
|
161
|
-
.btn-info {
|
162
|
-
@include buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight);
|
163
|
-
}
|
164
|
-
// Inverse appears as dark gray
|
165
|
-
.btn-inverse {
|
166
|
-
@include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight);
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
// Cross-browser Jank
|
171
|
-
// --------------------------------------------------
|
172
|
-
|
173
|
-
button.btn,
|
174
|
-
input[type="submit"].btn {
|
175
|
-
|
176
|
-
// Firefox 3.6 only I believe
|
177
|
-
&::-moz-focus-inner {
|
178
|
-
padding: 0;
|
179
|
-
border: 0;
|
180
|
-
}
|
181
|
-
|
182
|
-
// IE7 has some default padding on button controls
|
183
|
-
*padding-top: 3px;
|
184
|
-
*padding-bottom: 3px;
|
185
|
-
|
186
|
-
&.btn-large {
|
187
|
-
*padding-top: 7px;
|
188
|
-
*padding-bottom: 7px;
|
189
|
-
}
|
190
|
-
&.btn-small {
|
191
|
-
*padding-top: 3px;
|
192
|
-
*padding-bottom: 3px;
|
193
|
-
}
|
194
|
-
&.btn-mini {
|
195
|
-
*padding-top: 1px;
|
196
|
-
*padding-bottom: 1px;
|
197
|
-
}
|
198
|
-
}
|
199
|
-
|
200
|
-
|
201
|
-
// Link buttons
|
202
|
-
// --------------------------------------------------
|
203
|
-
|
204
|
-
// Make a button look and behave like a link
|
205
|
-
.btn-link,
|
206
|
-
.btn-link:active,
|
207
|
-
.btn-link[disabled] {
|
208
|
-
background-color: transparent;
|
209
|
-
background-image: none;
|
210
|
-
@include box-shadow(none);
|
211
|
-
}
|
212
|
-
.btn-link {
|
213
|
-
border-color: transparent;
|
214
|
-
cursor: pointer;
|
215
|
-
color: $linkColor;
|
216
|
-
@include border-radius(0);
|
217
|
-
}
|
218
|
-
.btn-link:hover,
|
219
|
-
.btn-link:focus {
|
220
|
-
color: $linkColorHover;
|
221
|
-
text-decoration: underline;
|
222
|
-
background-color: transparent;
|
223
|
-
}
|
224
|
-
.btn-link[disabled]:hover,
|
225
|
-
.btn-link[disabled]:focus {
|
226
|
-
color: $grayDark;
|
227
|
-
text-decoration: none;
|
228
|
-
}
|
@@ -3,36 +3,34 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
+
// Wrapper for the slide container and indicators
|
6
7
|
.carousel {
|
7
8
|
position: relative;
|
8
|
-
margin-bottom: $baseLineHeight;
|
9
|
-
line-height: 1;
|
10
9
|
}
|
11
10
|
|
12
11
|
.carousel-inner {
|
12
|
+
position: relative;
|
13
13
|
overflow: hidden;
|
14
14
|
width: 100%;
|
15
|
-
position: relative;
|
16
|
-
}
|
17
|
-
|
18
|
-
.carousel-inner {
|
19
15
|
|
20
16
|
> .item {
|
21
17
|
display: none;
|
22
18
|
position: relative;
|
23
19
|
@include transition(.6s ease-in-out left);
|
24
20
|
|
25
|
-
|
21
|
+
// Account for jankitude on images
|
26
22
|
> img,
|
27
23
|
> a > img {
|
28
|
-
|
24
|
+
@include img-responsive();
|
29
25
|
line-height: 1;
|
30
26
|
}
|
31
27
|
}
|
32
28
|
|
33
29
|
> .active,
|
34
30
|
> .next,
|
35
|
-
> .prev {
|
31
|
+
> .prev {
|
32
|
+
display: block;
|
33
|
+
}
|
36
34
|
|
37
35
|
> .active {
|
38
36
|
left: 0;
|
@@ -70,89 +68,176 @@
|
|
70
68
|
|
71
69
|
.carousel-control {
|
72
70
|
position: absolute;
|
73
|
-
top:
|
74
|
-
left:
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
font-size:
|
79
|
-
|
80
|
-
line-height: 30px;
|
81
|
-
color: $white;
|
71
|
+
top: 0;
|
72
|
+
left: 0;
|
73
|
+
bottom: 0;
|
74
|
+
width: $carousel-control-width;
|
75
|
+
@include opacity($carousel-control-opacity);
|
76
|
+
font-size: $carousel-control-font-size;
|
77
|
+
color: $carousel-control-color;
|
82
78
|
text-align: center;
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
// in the middle of another animation
|
92
|
-
// ;_;
|
93
|
-
// .transition(opacity .2s linear);
|
94
|
-
|
95
|
-
// Reposition the right one
|
79
|
+
text-shadow: $carousel-text-shadow;
|
80
|
+
// We can't have this transition here because WebKit cancels the carousel
|
81
|
+
// animation if you trip this while in the middle of another animation.
|
82
|
+
|
83
|
+
// Set gradients for backgrounds
|
84
|
+
&.left {
|
85
|
+
@include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
|
86
|
+
}
|
96
87
|
&.right {
|
97
88
|
left: auto;
|
98
|
-
right:
|
89
|
+
right: 0;
|
90
|
+
@include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
|
99
91
|
}
|
100
92
|
|
101
93
|
// Hover/focus state
|
102
94
|
&:hover,
|
103
95
|
&:focus {
|
104
|
-
|
96
|
+
outline: 0;
|
97
|
+
color: $carousel-control-color;
|
105
98
|
text-decoration: none;
|
106
|
-
@include opacity(
|
99
|
+
@include opacity(.9);
|
100
|
+
}
|
101
|
+
|
102
|
+
// Toggles
|
103
|
+
.icon-prev,
|
104
|
+
.icon-next,
|
105
|
+
.glyphicon-chevron-left,
|
106
|
+
.glyphicon-chevron-right {
|
107
|
+
position: absolute;
|
108
|
+
top: 50%;
|
109
|
+
z-index: 5;
|
110
|
+
display: inline-block;
|
111
|
+
}
|
112
|
+
.icon-prev,
|
113
|
+
.glyphicon-chevron-left {
|
114
|
+
left: 50%;
|
115
|
+
margin-left: -10px;
|
116
|
+
}
|
117
|
+
.icon-next,
|
118
|
+
.glyphicon-chevron-right {
|
119
|
+
right: 50%;
|
120
|
+
margin-right: -10px;
|
121
|
+
}
|
122
|
+
.icon-prev,
|
123
|
+
.icon-next {
|
124
|
+
width: 20px;
|
125
|
+
height: 20px;
|
126
|
+
margin-top: -10px;
|
127
|
+
font-family: serif;
|
128
|
+
}
|
129
|
+
|
130
|
+
|
131
|
+
.icon-prev {
|
132
|
+
&:before {
|
133
|
+
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
134
|
+
}
|
135
|
+
}
|
136
|
+
.icon-next {
|
137
|
+
&:before {
|
138
|
+
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
139
|
+
}
|
107
140
|
}
|
108
141
|
}
|
109
142
|
|
110
|
-
//
|
111
|
-
//
|
143
|
+
// Optional indicator pips
|
144
|
+
//
|
145
|
+
// Add an unordered list with the following class and add a list item for each
|
146
|
+
// slide your carousel holds.
|
147
|
+
|
112
148
|
.carousel-indicators {
|
113
149
|
position: absolute;
|
114
|
-
|
115
|
-
|
116
|
-
z-index:
|
117
|
-
|
150
|
+
bottom: 10px;
|
151
|
+
left: 50%;
|
152
|
+
z-index: 15;
|
153
|
+
width: 60%;
|
154
|
+
margin-left: -30%;
|
155
|
+
padding-left: 0;
|
118
156
|
list-style: none;
|
157
|
+
text-align: center;
|
119
158
|
|
120
159
|
li {
|
121
|
-
display: block;
|
122
|
-
|
123
|
-
width: 10px;
|
160
|
+
display: inline-block;
|
161
|
+
width: 10px;
|
124
162
|
height: 10px;
|
125
|
-
margin
|
163
|
+
margin: 1px;
|
126
164
|
text-indent: -999px;
|
127
|
-
|
128
|
-
|
129
|
-
|
165
|
+
border: 1px solid $carousel-indicator-border-color;
|
166
|
+
border-radius: 10px;
|
167
|
+
cursor: pointer;
|
168
|
+
|
169
|
+
// IE8-9 hack for event handling
|
170
|
+
//
|
171
|
+
// Internet Explorer 8-9 does not support clicks on elements without a set
|
172
|
+
// `background-color`. We cannot use `filter` since that's not viewed as a
|
173
|
+
// background color by the browser. Thus, a hack is needed.
|
174
|
+
//
|
175
|
+
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
176
|
+
// set alpha transparency for the best results possible.
|
177
|
+
background-color: #000 \9; // IE8
|
178
|
+
background-color: rgba(0,0,0,0); // IE9
|
130
179
|
}
|
131
180
|
.active {
|
132
|
-
|
181
|
+
margin: 0;
|
182
|
+
width: 12px;
|
183
|
+
height: 12px;
|
184
|
+
background-color: $carousel-indicator-active-bg;
|
133
185
|
}
|
134
186
|
}
|
135
187
|
|
136
|
-
//
|
188
|
+
// Optional captions
|
137
189
|
// -----------------------------
|
138
|
-
|
190
|
+
// Hidden by default for smaller viewports
|
139
191
|
.carousel-caption {
|
140
192
|
position: absolute;
|
141
|
-
left:
|
142
|
-
right:
|
143
|
-
bottom:
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
}
|
153
|
-
.carousel-caption h4 {
|
154
|
-
margin: 0 0 5px;
|
193
|
+
left: 15%;
|
194
|
+
right: 15%;
|
195
|
+
bottom: 20px;
|
196
|
+
z-index: 10;
|
197
|
+
padding-top: 20px;
|
198
|
+
padding-bottom: 20px;
|
199
|
+
color: $carousel-caption-color;
|
200
|
+
text-align: center;
|
201
|
+
text-shadow: $carousel-text-shadow;
|
202
|
+
& .btn {
|
203
|
+
text-shadow: none; // No shadow for button elements in carousel-caption
|
204
|
+
}
|
155
205
|
}
|
156
|
-
|
157
|
-
|
206
|
+
|
207
|
+
|
208
|
+
// Scale up controls for tablets and up
|
209
|
+
@media screen and (min-width: $screen-sm-min) {
|
210
|
+
|
211
|
+
// Scale up the controls a smidge
|
212
|
+
.carousel-control {
|
213
|
+
.glyphicon-chevron-left,
|
214
|
+
.glyphicon-chevron-right,
|
215
|
+
.icon-prev,
|
216
|
+
.icon-next {
|
217
|
+
width: 30px;
|
218
|
+
height: 30px;
|
219
|
+
margin-top: -15px;
|
220
|
+
font-size: 30px;
|
221
|
+
}
|
222
|
+
.glyphicon-chevron-left,
|
223
|
+
.icon-prev {
|
224
|
+
margin-left: -15px;
|
225
|
+
}
|
226
|
+
.glyphicon-chevron-right,
|
227
|
+
.icon-next {
|
228
|
+
margin-right: -15px;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
// Show and left align the captions
|
233
|
+
.carousel-caption {
|
234
|
+
left: 20%;
|
235
|
+
right: 20%;
|
236
|
+
padding-bottom: 30px;
|
237
|
+
}
|
238
|
+
|
239
|
+
// Move up the indicators
|
240
|
+
.carousel-indicators {
|
241
|
+
bottom: 20px;
|
242
|
+
}
|
158
243
|
}
|