twitter-bootstrap-rails 2.2.8 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of twitter-bootstrap-rails might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +160 -228
- data/Rakefile +4 -6
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +279 -38
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/twitter/bootstrap/affix.js +142 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +92 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +110 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +223 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +170 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +151 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +280 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +113 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +170 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +128 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +457 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -13
- data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +1 -890
- data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +2026 -787
- data/app/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +1 -146
- data/app/helpers/bootstrap_flash_helper.rb +14 -7
- data/app/helpers/form_errors_helper.rb +22 -0
- data/app/helpers/glyph_helper.rb +8 -5
- data/app/helpers/modal_helper.rb +26 -22
- data/app/helpers/navbar_helper.rb +47 -32
- data/app/helpers/twitter_breadcrumbs_helper.rb +6 -2
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +8 -8
- data/lib/generators/bootstrap/install/install_generator.rb +3 -2
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +13 -11
- data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +5 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +1 -4
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +27 -48
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +19 -34
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +13 -30
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +2 -3
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +30 -10
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -8
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -9
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/index.html.erb +2 -2
- data/lib/generators/bootstrap/themed/templates/index.html.haml +2 -2
- data/lib/generators/bootstrap/themed/templates/index.html.slim +4 -5
- data/lib/generators/bootstrap/themed/templates/new.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/show.html.erb +5 -7
- data/lib/generators/bootstrap/themed/templates/show.html.haml +4 -4
- data/lib/generators/bootstrap/themed/templates/show.html.slim +6 -7
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +5 -5
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +3 -3
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +4 -4
- data/lib/generators/bootstrap/themed/themed_generator.rb +2 -2
- data/lib/twitter/bootstrap/rails/breadcrumbs.rb +69 -0
- data/lib/twitter/bootstrap/rails/engine.rb +17 -10
- data/lib/twitter/bootstrap/rails/version.rb +2 -2
- data/spec/lib/breadcrumbs_spec.rb +99 -0
- data/spec/lib/twitter_bootstrap_rails/badge_label_helper_spec.rb +12 -4
- data/spec/lib/twitter_bootstrap_rails/bootstrap_flash_helper_spec.rb +128 -0
- data/spec/lib/twitter_bootstrap_rails/form_errors_helper_spec.rb +148 -0
- data/spec/lib/twitter_bootstrap_rails/glyph_helper_spec.rb +24 -0
- data/spec/lib/twitter_bootstrap_rails/modal_helper_spec.rb +15 -15
- data/spec/lib/twitter_bootstrap_rails/navbar_helper_spec.rb +207 -173
- data/spec/lib/twitter_bootstrap_rails/uri_state_spec.rb +18 -16
- data/spec/spec_helper.rb +11 -1
- data/vendor/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5796 -1
- data/vendor/static-source/bootstrap.less +0 -1
- data/vendor/static-source/fontawesome.less +0 -1
- data/vendor/static-source/sprites.less +1 -1
- data/vendor/toolkit/fontawesome/bordered-pulled.less +16 -0
- data/vendor/toolkit/fontawesome/core.less +8 -126
- data/vendor/toolkit/fontawesome/fixed-width.less +6 -0
- data/vendor/toolkit/fontawesome/font-awesome.less +9 -25
- data/vendor/toolkit/fontawesome/icons.less +549 -378
- data/vendor/toolkit/fontawesome/larger.less +13 -0
- data/vendor/toolkit/fontawesome/list.less +19 -0
- data/vendor/toolkit/fontawesome/mixins.less +16 -39
- data/vendor/toolkit/fontawesome/path.less +5 -5
- data/vendor/toolkit/fontawesome/rotated-flipped.less +20 -0
- data/vendor/toolkit/fontawesome/spinning.less +29 -0
- data/vendor/toolkit/fontawesome/stacked.less +20 -0
- data/vendor/toolkit/fontawesome/variables.less +557 -731
- data/vendor/toolkit/twitter/bootstrap/alerts.less +47 -58
- data/vendor/toolkit/twitter/bootstrap/badges.less +55 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +26 -39
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +11 -9
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +168 -152
- data/vendor/toolkit/twitter/bootstrap/buttons.less +101 -170
- data/vendor/toolkit/twitter/bootstrap/carousel.less +150 -65
- data/vendor/toolkit/twitter/bootstrap/close.less +20 -19
- data/vendor/toolkit/twitter/bootstrap/code.less +38 -30
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +12 -3
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +115 -148
- data/vendor/toolkit/twitter/bootstrap/forms.less +401 -547
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +234 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +74 -11
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +166 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +48 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +64 -0
- data/vendor/toolkit/twitter/bootstrap/list-group.less +132 -0
- data/vendor/toolkit/twitter/bootstrap/media.less +8 -7
- data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +14 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +52 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/center-block.less +7 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/clearfix.less +22 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/forms.less +85 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/gradients.less +59 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid-framework.less +91 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid.less +122 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/hide-text.less +21 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/image.less +33 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/labels.less +12 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/list-group.less +29 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-divider.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/opacity.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/pagination.less +23 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/panels.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/progress-bar.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/reset-filter.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/resize.less +6 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/size.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/tab-focus.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/table-row.less +28 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-emphasis.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +224 -0
- data/vendor/toolkit/twitter/bootstrap/mixins.less +36 -699
- data/vendor/toolkit/twitter/bootstrap/modals.less +109 -54
- data/vendor/toolkit/twitter/bootstrap/navbar.less +542 -384
- data/vendor/toolkit/twitter/bootstrap/navs.less +192 -359
- data/vendor/toolkit/twitter/bootstrap/normalize.less +425 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +46 -34
- data/vendor/toolkit/twitter/bootstrap/pagination.less +70 -105
- data/vendor/toolkit/twitter/bootstrap/panels.less +248 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +61 -61
- data/vendor/toolkit/twitter/bootstrap/print.less +101 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +51 -73
- data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +34 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +177 -42
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +120 -23
- data/vendor/toolkit/twitter/bootstrap/tables.less +171 -182
- data/vendor/toolkit/twitter/bootstrap/theme.less +260 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +26 -43
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +49 -24
- data/vendor/toolkit/twitter/bootstrap/type.less +208 -147
- data/vendor/toolkit/twitter/bootstrap/utilities.less +33 -7
- data/vendor/toolkit/twitter/bootstrap/variables.less +761 -215
- data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
- metadata +156 -130
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +0 -117
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +0 -99
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-button.js +0 -105
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +0 -207
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +0 -167
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +0 -169
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +0 -247
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +0 -114
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +0 -162
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +0 -144
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +0 -361
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +0 -60
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +0 -335
- data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +0 -42
- data/test/lib/breadcrumbs_test.rb +0 -75
- data/test/test_helper.rb +0 -11
- data/vendor/toolkit/fontawesome/bootstrap.less +0 -84
- data/vendor/toolkit/fontawesome/extras.less +0 -93
- data/vendor/toolkit/fontawesome/font-awesome-ie7.less +0 -1953
- data/vendor/toolkit/twitter/bootstrap/accordion.less +0 -34
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +0 -25
- data/vendor/toolkit/twitter/bootstrap/labels-badges.less +0 -84
- data/vendor/toolkit/twitter/bootstrap/layouts.less +0 -16
- data/vendor/toolkit/twitter/bootstrap/reset.less +0 -216
- data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +0 -28
- data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +0 -193
- data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +0 -19
- data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +0 -189
- data/vendor/toolkit/twitter/bootstrap/responsive.less +0 -48
- data/vendor/toolkit/twitter/bootstrap/sprites.less +0 -197
@@ -0,0 +1,248 @@
|
|
1
|
+
//
|
2
|
+
// Panels
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.panel {
|
8
|
+
margin-bottom: @line-height-computed;
|
9
|
+
background-color: @panel-bg;
|
10
|
+
border: 1px solid transparent;
|
11
|
+
border-radius: @panel-border-radius;
|
12
|
+
.box-shadow(0 1px 1px rgba(0,0,0,.05));
|
13
|
+
}
|
14
|
+
|
15
|
+
// Panel contents
|
16
|
+
.panel-body {
|
17
|
+
padding: @panel-body-padding;
|
18
|
+
&:extend(.clearfix all);
|
19
|
+
}
|
20
|
+
|
21
|
+
// Optional heading
|
22
|
+
.panel-heading {
|
23
|
+
padding: @panel-heading-padding;
|
24
|
+
border-bottom: 1px solid transparent;
|
25
|
+
.border-top-radius((@panel-border-radius - 1));
|
26
|
+
|
27
|
+
> .dropdown .dropdown-toggle {
|
28
|
+
color: inherit;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// Within heading, strip any `h*` tag of its default margins for spacing.
|
33
|
+
.panel-title {
|
34
|
+
margin-top: 0;
|
35
|
+
margin-bottom: 0;
|
36
|
+
font-size: ceil((@font-size-base * 1.125));
|
37
|
+
color: inherit;
|
38
|
+
|
39
|
+
> a {
|
40
|
+
color: inherit;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// Optional footer (stays gray in every modifier class)
|
45
|
+
.panel-footer {
|
46
|
+
padding: @panel-footer-padding;
|
47
|
+
background-color: @panel-footer-bg;
|
48
|
+
border-top: 1px solid @panel-inner-border;
|
49
|
+
.border-bottom-radius((@panel-border-radius - 1));
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
// List groups in panels
|
54
|
+
//
|
55
|
+
// By default, space out list group content from panel headings to account for
|
56
|
+
// any kind of custom content between the two.
|
57
|
+
|
58
|
+
.panel {
|
59
|
+
> .list-group {
|
60
|
+
margin-bottom: 0;
|
61
|
+
|
62
|
+
.list-group-item {
|
63
|
+
border-width: 1px 0;
|
64
|
+
border-radius: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
// Add border top radius for first one
|
68
|
+
&:first-child {
|
69
|
+
.list-group-item:first-child {
|
70
|
+
border-top: 0;
|
71
|
+
.border-top-radius((@panel-border-radius - 1));
|
72
|
+
}
|
73
|
+
}
|
74
|
+
// Add border bottom radius for last one
|
75
|
+
&:last-child {
|
76
|
+
.list-group-item:last-child {
|
77
|
+
border-bottom: 0;
|
78
|
+
.border-bottom-radius((@panel-border-radius - 1));
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
// Collapse space between when there's no additional content.
|
84
|
+
.panel-heading + .list-group {
|
85
|
+
.list-group-item:first-child {
|
86
|
+
border-top-width: 0;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
.list-group + .panel-footer {
|
90
|
+
border-top-width: 0;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Tables in panels
|
94
|
+
//
|
95
|
+
// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
|
96
|
+
// watch it go full width.
|
97
|
+
|
98
|
+
.panel {
|
99
|
+
> .table,
|
100
|
+
> .table-responsive > .table,
|
101
|
+
> .panel-collapse > .table {
|
102
|
+
margin-bottom: 0;
|
103
|
+
|
104
|
+
caption {
|
105
|
+
padding-left: @panel-body-padding;
|
106
|
+
padding-right: @panel-body-padding;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
// Add border top radius for first one
|
110
|
+
> .table:first-child,
|
111
|
+
> .table-responsive:first-child > .table:first-child {
|
112
|
+
.border-top-radius((@panel-border-radius - 1));
|
113
|
+
|
114
|
+
> thead:first-child,
|
115
|
+
> tbody:first-child {
|
116
|
+
> tr:first-child {
|
117
|
+
td:first-child,
|
118
|
+
th:first-child {
|
119
|
+
border-top-left-radius: (@panel-border-radius - 1);
|
120
|
+
}
|
121
|
+
td:last-child,
|
122
|
+
th:last-child {
|
123
|
+
border-top-right-radius: (@panel-border-radius - 1);
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
// Add border bottom radius for last one
|
129
|
+
> .table:last-child,
|
130
|
+
> .table-responsive:last-child > .table:last-child {
|
131
|
+
.border-bottom-radius((@panel-border-radius - 1));
|
132
|
+
|
133
|
+
> tbody:last-child,
|
134
|
+
> tfoot:last-child {
|
135
|
+
> tr:last-child {
|
136
|
+
td:first-child,
|
137
|
+
th:first-child {
|
138
|
+
border-bottom-left-radius: (@panel-border-radius - 1);
|
139
|
+
}
|
140
|
+
td:last-child,
|
141
|
+
th:last-child {
|
142
|
+
border-bottom-right-radius: (@panel-border-radius - 1);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
> .panel-body + .table,
|
148
|
+
> .panel-body + .table-responsive {
|
149
|
+
border-top: 1px solid @table-border-color;
|
150
|
+
}
|
151
|
+
> .table > tbody:first-child > tr:first-child th,
|
152
|
+
> .table > tbody:first-child > tr:first-child td {
|
153
|
+
border-top: 0;
|
154
|
+
}
|
155
|
+
> .table-bordered,
|
156
|
+
> .table-responsive > .table-bordered {
|
157
|
+
border: 0;
|
158
|
+
> thead,
|
159
|
+
> tbody,
|
160
|
+
> tfoot {
|
161
|
+
> tr {
|
162
|
+
> th:first-child,
|
163
|
+
> td:first-child {
|
164
|
+
border-left: 0;
|
165
|
+
}
|
166
|
+
> th:last-child,
|
167
|
+
> td:last-child {
|
168
|
+
border-right: 0;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
> thead,
|
173
|
+
> tbody {
|
174
|
+
> tr:first-child {
|
175
|
+
> td,
|
176
|
+
> th {
|
177
|
+
border-bottom: 0;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
> tbody,
|
182
|
+
> tfoot {
|
183
|
+
> tr:last-child {
|
184
|
+
> td,
|
185
|
+
> th {
|
186
|
+
border-bottom: 0;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
> .table-responsive {
|
192
|
+
border: 0;
|
193
|
+
margin-bottom: 0;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
// Collapsable panels (aka, accordion)
|
199
|
+
//
|
200
|
+
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
201
|
+
// the help of our collapse JavaScript plugin.
|
202
|
+
|
203
|
+
.panel-group {
|
204
|
+
margin-bottom: @line-height-computed;
|
205
|
+
|
206
|
+
// Tighten up margin so it's only between panels
|
207
|
+
.panel {
|
208
|
+
margin-bottom: 0;
|
209
|
+
border-radius: @panel-border-radius;
|
210
|
+
+ .panel {
|
211
|
+
margin-top: 5px;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
.panel-heading {
|
216
|
+
border-bottom: 0;
|
217
|
+
+ .panel-collapse > .panel-body {
|
218
|
+
border-top: 1px solid @panel-inner-border;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
.panel-footer {
|
222
|
+
border-top: 0;
|
223
|
+
+ .panel-collapse .panel-body {
|
224
|
+
border-bottom: 1px solid @panel-inner-border;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
// Contextual variations
|
231
|
+
.panel-default {
|
232
|
+
.panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
|
233
|
+
}
|
234
|
+
.panel-primary {
|
235
|
+
.panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
|
236
|
+
}
|
237
|
+
.panel-success {
|
238
|
+
.panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
|
239
|
+
}
|
240
|
+
.panel-info {
|
241
|
+
.panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
|
242
|
+
}
|
243
|
+
.panel-warning {
|
244
|
+
.panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
|
245
|
+
}
|
246
|
+
.panel-danger {
|
247
|
+
.panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);
|
248
|
+
}
|
@@ -7,43 +7,37 @@
|
|
7
7
|
position: absolute;
|
8
8
|
top: 0;
|
9
9
|
left: 0;
|
10
|
-
z-index: @
|
10
|
+
z-index: @zindex-popover;
|
11
11
|
display: none;
|
12
|
-
max-width:
|
12
|
+
max-width: @popover-max-width;
|
13
13
|
padding: 1px;
|
14
14
|
text-align: left; // Reset given new insertion method
|
15
|
-
background-color: @
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
border:
|
20
|
-
border: 1px solid rgba(0,0,0,.2);
|
21
|
-
.border-radius(6px);
|
15
|
+
background-color: @popover-bg;
|
16
|
+
background-clip: padding-box;
|
17
|
+
border: 1px solid @popover-fallback-border-color;
|
18
|
+
border: 1px solid @popover-border-color;
|
19
|
+
border-radius: @border-radius-large;
|
22
20
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
23
21
|
|
24
22
|
// Overrides for proper insertion
|
25
23
|
white-space: normal;
|
26
24
|
|
27
25
|
// Offset the popover to account for the popover arrow
|
28
|
-
&.top { margin-top: -
|
29
|
-
&.right { margin-left:
|
30
|
-
&.bottom { margin-top:
|
31
|
-
&.left { margin-left: -
|
26
|
+
&.top { margin-top: -@popover-arrow-width; }
|
27
|
+
&.right { margin-left: @popover-arrow-width; }
|
28
|
+
&.bottom { margin-top: @popover-arrow-width; }
|
29
|
+
&.left { margin-left: -@popover-arrow-width; }
|
32
30
|
}
|
33
31
|
|
34
32
|
.popover-title {
|
35
33
|
margin: 0; // reset heading margin
|
36
34
|
padding: 8px 14px;
|
37
|
-
font-size:
|
35
|
+
font-size: @font-size-base;
|
38
36
|
font-weight: normal;
|
39
37
|
line-height: 18px;
|
40
|
-
background-color: @
|
41
|
-
border-bottom: 1px solid darken(@
|
42
|
-
|
43
|
-
|
44
|
-
&:empty {
|
45
|
-
display: none;
|
46
|
-
}
|
38
|
+
background-color: @popover-title-bg;
|
39
|
+
border-bottom: 1px solid darken(@popover-title-bg, 5%);
|
40
|
+
border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0;
|
47
41
|
}
|
48
42
|
|
49
43
|
.popover-content {
|
@@ -54,79 +48,85 @@
|
|
54
48
|
//
|
55
49
|
// .arrow is outer, .arrow:after is inner
|
56
50
|
|
57
|
-
.popover .arrow
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
51
|
+
.popover > .arrow {
|
52
|
+
&,
|
53
|
+
&:after {
|
54
|
+
position: absolute;
|
55
|
+
display: block;
|
56
|
+
width: 0;
|
57
|
+
height: 0;
|
58
|
+
border-color: transparent;
|
59
|
+
border-style: solid;
|
60
|
+
}
|
65
61
|
}
|
66
|
-
.popover .arrow {
|
67
|
-
border-width: @
|
62
|
+
.popover > .arrow {
|
63
|
+
border-width: @popover-arrow-outer-width;
|
68
64
|
}
|
69
|
-
.popover .arrow:after {
|
70
|
-
border-width: @
|
65
|
+
.popover > .arrow:after {
|
66
|
+
border-width: @popover-arrow-width;
|
71
67
|
content: "";
|
72
68
|
}
|
73
69
|
|
74
70
|
.popover {
|
75
|
-
&.top .arrow {
|
71
|
+
&.top > .arrow {
|
76
72
|
left: 50%;
|
77
|
-
margin-left: -@
|
73
|
+
margin-left: -@popover-arrow-outer-width;
|
78
74
|
border-bottom-width: 0;
|
79
|
-
border-top-color:
|
80
|
-
border-top-color: @
|
81
|
-
bottom: -@
|
75
|
+
border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
76
|
+
border-top-color: @popover-arrow-outer-color;
|
77
|
+
bottom: -@popover-arrow-outer-width;
|
82
78
|
&:after {
|
79
|
+
content: " ";
|
83
80
|
bottom: 1px;
|
84
|
-
margin-left: -@
|
81
|
+
margin-left: -@popover-arrow-width;
|
85
82
|
border-bottom-width: 0;
|
86
|
-
border-top-color: @
|
83
|
+
border-top-color: @popover-arrow-color;
|
87
84
|
}
|
88
85
|
}
|
89
|
-
&.right .arrow {
|
86
|
+
&.right > .arrow {
|
90
87
|
top: 50%;
|
91
|
-
left: -@
|
92
|
-
margin-top: -@
|
88
|
+
left: -@popover-arrow-outer-width;
|
89
|
+
margin-top: -@popover-arrow-outer-width;
|
93
90
|
border-left-width: 0;
|
94
|
-
border-right-color:
|
95
|
-
border-right-color: @
|
91
|
+
border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
92
|
+
border-right-color: @popover-arrow-outer-color;
|
96
93
|
&:after {
|
94
|
+
content: " ";
|
97
95
|
left: 1px;
|
98
|
-
bottom: -@
|
96
|
+
bottom: -@popover-arrow-width;
|
99
97
|
border-left-width: 0;
|
100
|
-
border-right-color: @
|
98
|
+
border-right-color: @popover-arrow-color;
|
101
99
|
}
|
102
100
|
}
|
103
|
-
&.bottom .arrow {
|
101
|
+
&.bottom > .arrow {
|
104
102
|
left: 50%;
|
105
|
-
margin-left: -@
|
103
|
+
margin-left: -@popover-arrow-outer-width;
|
106
104
|
border-top-width: 0;
|
107
|
-
border-bottom-color:
|
108
|
-
border-bottom-color: @
|
109
|
-
top: -@
|
105
|
+
border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
106
|
+
border-bottom-color: @popover-arrow-outer-color;
|
107
|
+
top: -@popover-arrow-outer-width;
|
110
108
|
&:after {
|
109
|
+
content: " ";
|
111
110
|
top: 1px;
|
112
|
-
margin-left: -@
|
111
|
+
margin-left: -@popover-arrow-width;
|
113
112
|
border-top-width: 0;
|
114
|
-
border-bottom-color: @
|
113
|
+
border-bottom-color: @popover-arrow-color;
|
115
114
|
}
|
116
115
|
}
|
117
116
|
|
118
|
-
&.left .arrow {
|
117
|
+
&.left > .arrow {
|
119
118
|
top: 50%;
|
120
|
-
right: -@
|
121
|
-
margin-top: -@
|
119
|
+
right: -@popover-arrow-outer-width;
|
120
|
+
margin-top: -@popover-arrow-outer-width;
|
122
121
|
border-right-width: 0;
|
123
|
-
border-left-color:
|
124
|
-
border-left-color: @
|
122
|
+
border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
123
|
+
border-left-color: @popover-arrow-outer-color;
|
125
124
|
&:after {
|
125
|
+
content: " ";
|
126
126
|
right: 1px;
|
127
127
|
border-right-width: 0;
|
128
|
-
border-left-color: @
|
129
|
-
bottom: -@
|
128
|
+
border-left-color: @popover-arrow-color;
|
129
|
+
bottom: -@popover-arrow-width;
|
130
130
|
}
|
131
131
|
}
|
132
132
|
|
@@ -0,0 +1,101 @@
|
|
1
|
+
//
|
2
|
+
// Basic print styles
|
3
|
+
// --------------------------------------------------
|
4
|
+
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
|
5
|
+
|
6
|
+
@media print {
|
7
|
+
|
8
|
+
* {
|
9
|
+
text-shadow: none !important;
|
10
|
+
color: #000 !important; // Black prints faster: h5bp.com/s
|
11
|
+
background: transparent !important;
|
12
|
+
box-shadow: none !important;
|
13
|
+
}
|
14
|
+
|
15
|
+
a,
|
16
|
+
a:visited {
|
17
|
+
text-decoration: underline;
|
18
|
+
}
|
19
|
+
|
20
|
+
a[href]:after {
|
21
|
+
content: " (" attr(href) ")";
|
22
|
+
}
|
23
|
+
|
24
|
+
abbr[title]:after {
|
25
|
+
content: " (" attr(title) ")";
|
26
|
+
}
|
27
|
+
|
28
|
+
// Don't show links for images, or javascript/internal links
|
29
|
+
a[href^="javascript:"]:after,
|
30
|
+
a[href^="#"]:after {
|
31
|
+
content: "";
|
32
|
+
}
|
33
|
+
|
34
|
+
pre,
|
35
|
+
blockquote {
|
36
|
+
border: 1px solid #999;
|
37
|
+
page-break-inside: avoid;
|
38
|
+
}
|
39
|
+
|
40
|
+
thead {
|
41
|
+
display: table-header-group; // h5bp.com/t
|
42
|
+
}
|
43
|
+
|
44
|
+
tr,
|
45
|
+
img {
|
46
|
+
page-break-inside: avoid;
|
47
|
+
}
|
48
|
+
|
49
|
+
img {
|
50
|
+
max-width: 100% !important;
|
51
|
+
}
|
52
|
+
|
53
|
+
p,
|
54
|
+
h2,
|
55
|
+
h3 {
|
56
|
+
orphans: 3;
|
57
|
+
widows: 3;
|
58
|
+
}
|
59
|
+
|
60
|
+
h2,
|
61
|
+
h3 {
|
62
|
+
page-break-after: avoid;
|
63
|
+
}
|
64
|
+
|
65
|
+
// Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
|
66
|
+
// Once fixed, we can just straight up remove this.
|
67
|
+
select {
|
68
|
+
background: #fff !important;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Bootstrap components
|
72
|
+
.navbar {
|
73
|
+
display: none;
|
74
|
+
}
|
75
|
+
.table {
|
76
|
+
td,
|
77
|
+
th {
|
78
|
+
background-color: #fff !important;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
.btn,
|
82
|
+
.dropup > .btn {
|
83
|
+
> .caret {
|
84
|
+
border-top-color: #000 !important;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
.label {
|
88
|
+
border: 1px solid #000;
|
89
|
+
}
|
90
|
+
|
91
|
+
.table {
|
92
|
+
border-collapse: collapse !important;
|
93
|
+
}
|
94
|
+
.table-bordered {
|
95
|
+
th,
|
96
|
+
td {
|
97
|
+
border: 1px solid #ddd !important;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
}
|
@@ -3,34 +3,16 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
//
|
7
|
-
//
|
6
|
+
// Bar animations
|
7
|
+
// -------------------------
|
8
8
|
|
9
|
-
//
|
9
|
+
// WebKit
|
10
10
|
@-webkit-keyframes progress-bar-stripes {
|
11
11
|
from { background-position: 40px 0; }
|
12
12
|
to { background-position: 0 0; }
|
13
13
|
}
|
14
14
|
|
15
|
-
//
|
16
|
-
@-moz-keyframes progress-bar-stripes {
|
17
|
-
from { background-position: 40px 0; }
|
18
|
-
to { background-position: 0 0; }
|
19
|
-
}
|
20
|
-
|
21
|
-
// IE9
|
22
|
-
@-ms-keyframes progress-bar-stripes {
|
23
|
-
from { background-position: 40px 0; }
|
24
|
-
to { background-position: 0 0; }
|
25
|
-
}
|
26
|
-
|
27
|
-
// Opera
|
28
|
-
@-o-keyframes progress-bar-stripes {
|
29
|
-
from { background-position: 0 0; }
|
30
|
-
to { background-position: 40px 0; }
|
31
|
-
}
|
32
|
-
|
33
|
-
// Spec
|
15
|
+
// Spec and IE10+
|
34
16
|
@keyframes progress-bar-stripes {
|
35
17
|
from { background-position: 40px 0; }
|
36
18
|
to { background-position: 0 0; }
|
@@ -38,85 +20,81 @@
|
|
38
20
|
|
39
21
|
|
40
22
|
|
41
|
-
//
|
42
|
-
//
|
23
|
+
// Bar itself
|
24
|
+
// -------------------------
|
43
25
|
|
44
26
|
// Outer container
|
45
27
|
.progress {
|
46
28
|
overflow: hidden;
|
47
|
-
height: @
|
48
|
-
margin-bottom: @
|
49
|
-
|
29
|
+
height: @line-height-computed;
|
30
|
+
margin-bottom: @line-height-computed;
|
31
|
+
background-color: @progress-bg;
|
32
|
+
border-radius: @border-radius-base;
|
50
33
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
51
|
-
.border-radius(@baseBorderRadius);
|
52
34
|
}
|
53
35
|
|
54
36
|
// Bar of progress
|
55
|
-
.progress
|
37
|
+
.progress-bar {
|
38
|
+
float: left;
|
56
39
|
width: 0%;
|
57
40
|
height: 100%;
|
58
|
-
|
59
|
-
|
60
|
-
|
41
|
+
font-size: @font-size-small;
|
42
|
+
line-height: @line-height-computed;
|
43
|
+
color: @progress-bar-color;
|
61
44
|
text-align: center;
|
62
|
-
|
63
|
-
#gradient > .vertical(#149bdf, #0480be);
|
45
|
+
background-color: @progress-bar-bg;
|
64
46
|
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
65
|
-
.box-sizing(border-box);
|
66
47
|
.transition(width .6s ease);
|
67
48
|
}
|
68
|
-
.progress .bar + .bar {
|
69
|
-
.box-shadow(~"inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15)");
|
70
|
-
}
|
71
49
|
|
72
50
|
// Striped bars
|
73
|
-
|
74
|
-
|
75
|
-
|
51
|
+
//
|
52
|
+
// `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
|
53
|
+
// `.progress-bar-striped` class, which you just add to an existing
|
54
|
+
// `.progress-bar`.
|
55
|
+
.progress-striped .progress-bar,
|
56
|
+
.progress-bar-striped {
|
57
|
+
#gradient > .striped();
|
58
|
+
background-size: 40px 40px;
|
76
59
|
}
|
77
60
|
|
78
61
|
// Call animation for the active one
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
62
|
+
//
|
63
|
+
// `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
|
64
|
+
// `.progress-bar.active` approach.
|
65
|
+
.progress.active .progress-bar,
|
66
|
+
.progress-bar.active {
|
67
|
+
.animation(progress-bar-stripes 2s linear infinite);
|
68
|
+
}
|
69
|
+
|
70
|
+
// Account for lower percentages
|
71
|
+
.progress-bar {
|
72
|
+
&[aria-valuenow="0"] {
|
73
|
+
color: @gray-light;
|
74
|
+
min-width: 30px;
|
75
|
+
background-color: transparent;
|
76
|
+
background-image: none;
|
77
|
+
box-shadow: none;
|
78
|
+
}
|
85
79
|
}
|
86
80
|
|
87
81
|
|
88
82
|
|
89
|
-
//
|
90
|
-
//
|
83
|
+
// Variations
|
84
|
+
// -------------------------
|
91
85
|
|
92
|
-
|
93
|
-
.progress-
|
94
|
-
#gradient > .vertical(#ee5f5b, #c43c35);
|
95
|
-
}
|
96
|
-
.progress-danger.progress-striped .bar, .progress-striped .bar-danger {
|
97
|
-
#gradient > .striped(#ee5f5b);
|
86
|
+
.progress-bar-success {
|
87
|
+
.progress-bar-variant(@progress-bar-success-bg);
|
98
88
|
}
|
99
89
|
|
100
|
-
|
101
|
-
.progress-
|
102
|
-
#gradient > .vertical(#62c462, #57a957);
|
103
|
-
}
|
104
|
-
.progress-success.progress-striped .bar, .progress-striped .bar-success {
|
105
|
-
#gradient > .striped(#62c462);
|
90
|
+
.progress-bar-info {
|
91
|
+
.progress-bar-variant(@progress-bar-info-bg);
|
106
92
|
}
|
107
93
|
|
108
|
-
|
109
|
-
.progress-
|
110
|
-
#gradient > .vertical(#5bc0de, #339bb9);
|
111
|
-
}
|
112
|
-
.progress-info.progress-striped .bar, .progress-striped .bar-info {
|
113
|
-
#gradient > .striped(#5bc0de);
|
94
|
+
.progress-bar-warning {
|
95
|
+
.progress-bar-variant(@progress-bar-warning-bg);
|
114
96
|
}
|
115
97
|
|
116
|
-
|
117
|
-
.progress-
|
118
|
-
#gradient > .vertical(lighten(@orange, 15%), @orange);
|
119
|
-
}
|
120
|
-
.progress-warning.progress-striped .bar, .progress-striped .bar-warning {
|
121
|
-
#gradient > .striped(lighten(@orange, 15%));
|
98
|
+
.progress-bar-danger {
|
99
|
+
.progress-bar-variant(@progress-bar-danger-bg);
|
122
100
|
}
|