twitter-bootstrap-rails 2.2.8 → 4.0.0
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 +229 -322
- data/Rakefile +4 -6
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -13
- data/app/assets/javascripts/twitter/bootstrap/affix.js +162 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +94 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +120 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +237 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +211 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +165 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +337 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +108 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +172 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +155 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +514 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +1 -890
- 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 +12 -6
- 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.css +3 -4
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +9 -18
- 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 +4 -2
- data/lib/generators/bootstrap/themed/templates/index.html.haml +3 -2
- data/lib/generators/bootstrap/themed/templates/index.html.slim +6 -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/sprites.less +1 -1
- data/vendor/toolkit/twitter/bootstrap/alerts.less +51 -57
- data/vendor/toolkit/twitter/bootstrap/badges.less +66 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +29 -36
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +11 -9
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +167 -152
- data/vendor/toolkit/twitter/bootstrap/buttons.less +107 -169
- data/vendor/toolkit/twitter/bootstrap/carousel.less +177 -65
- data/vendor/toolkit/twitter/bootstrap/close.less +21 -19
- data/vendor/toolkit/twitter/bootstrap/code.less +38 -30
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +15 -4
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +120 -152
- data/vendor/toolkit/twitter/bootstrap/forms.less +470 -547
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +305 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +74 -11
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +171 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +54 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +64 -0
- data/vendor/toolkit/twitter/bootstrap/list-group.less +130 -0
- data/vendor/toolkit/twitter/bootstrap/media.less +40 -29
- data/vendor/toolkit/twitter/bootstrap/mixins.less +37 -699
- data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +14 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +65 -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 +30 -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 +24 -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/reset-text.less +18 -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 +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +227 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +109 -54
- data/vendor/toolkit/twitter/bootstrap/navbar.less +547 -384
- data/vendor/toolkit/twitter/bootstrap/navs.less +192 -359
- data/vendor/toolkit/twitter/bootstrap/normalize.less +424 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +45 -34
- data/vendor/toolkit/twitter/bootstrap/pagination.less +71 -105
- data/vendor/toolkit/twitter/bootstrap/panels.less +271 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +66 -68
- data/vendor/toolkit/twitter/bootstrap/print.less +101 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +40 -75
- data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +35 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +177 -42
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +131 -23
- data/vendor/toolkit/twitter/bootstrap/tables.less +172 -182
- data/vendor/toolkit/twitter/bootstrap/theme.less +291 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +27 -44
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +58 -27
- data/vendor/toolkit/twitter/bootstrap/type.less +209 -154
- data/vendor/toolkit/twitter/bootstrap/utilities.less +32 -7
- data/vendor/toolkit/twitter/bootstrap/variables.less +784 -216
- data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
- metadata +156 -141
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -399
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- 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/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +0 -787
- 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/static-source/fontawesome.less +0 -9
- data/vendor/toolkit/fontawesome/bootstrap.less +0 -84
- data/vendor/toolkit/fontawesome/core.less +0 -129
- data/vendor/toolkit/fontawesome/extras.less +0 -93
- data/vendor/toolkit/fontawesome/font-awesome-ie7.less +0 -1953
- data/vendor/toolkit/fontawesome/font-awesome.less +0 -33
- data/vendor/toolkit/fontawesome/icons.less +0 -381
- data/vendor/toolkit/fontawesome/mixins.less +0 -48
- data/vendor/toolkit/fontawesome/path.less +0 -14
- data/vendor/toolkit/fontawesome/variables.less +0 -735
- 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
@@ -3,242 +3,232 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
// BASE TABLES
|
7
|
-
// -----------------
|
8
|
-
|
9
6
|
table {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
background-color: @table-bg;
|
8
|
+
}
|
9
|
+
caption {
|
10
|
+
padding-top: @table-cell-padding;
|
11
|
+
padding-bottom: @table-cell-padding;
|
12
|
+
color: @text-muted;
|
13
|
+
text-align: left;
|
14
|
+
}
|
15
|
+
th {
|
16
|
+
text-align: left;
|
14
17
|
}
|
15
18
|
|
16
|
-
|
17
|
-
//
|
19
|
+
|
20
|
+
// Baseline styles
|
18
21
|
|
19
22
|
.table {
|
20
23
|
width: 100%;
|
21
|
-
|
24
|
+
max-width: 100%;
|
25
|
+
margin-bottom: @line-height-computed;
|
22
26
|
// Cells
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
> thead,
|
28
|
+
> tbody,
|
29
|
+
> tfoot {
|
30
|
+
> tr {
|
31
|
+
> th,
|
32
|
+
> td {
|
33
|
+
padding: @table-cell-padding;
|
34
|
+
line-height: @line-height-base;
|
35
|
+
vertical-align: top;
|
36
|
+
border-top: 1px solid @table-border-color;
|
37
|
+
}
|
38
|
+
}
|
33
39
|
}
|
34
40
|
// Bottom align for column headings
|
35
|
-
thead th {
|
41
|
+
> thead > tr > th {
|
36
42
|
vertical-align: bottom;
|
43
|
+
border-bottom: 2px solid @table-border-color;
|
37
44
|
}
|
38
45
|
// Remove top border from thead by default
|
39
|
-
caption + thead
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
+
> caption + thead,
|
47
|
+
> colgroup + thead,
|
48
|
+
> thead:first-child {
|
49
|
+
> tr:first-child {
|
50
|
+
> th,
|
51
|
+
> td {
|
52
|
+
border-top: 0;
|
53
|
+
}
|
54
|
+
}
|
46
55
|
}
|
47
56
|
// Account for multiple tbody instances
|
48
|
-
tbody + tbody {
|
49
|
-
border-top: 2px solid @
|
57
|
+
> tbody + tbody {
|
58
|
+
border-top: 2px solid @table-border-color;
|
50
59
|
}
|
51
60
|
|
52
61
|
// Nesting
|
53
62
|
.table {
|
54
|
-
background-color: @
|
63
|
+
background-color: @body-bg;
|
55
64
|
}
|
56
65
|
}
|
57
66
|
|
58
67
|
|
59
|
-
|
60
|
-
// CONDENSED TABLE W/ HALF PADDING
|
61
|
-
// -------------------------------
|
68
|
+
// Condensed table w/ half padding
|
62
69
|
|
63
70
|
.table-condensed {
|
64
|
-
|
65
|
-
|
66
|
-
|
71
|
+
> thead,
|
72
|
+
> tbody,
|
73
|
+
> tfoot {
|
74
|
+
> tr {
|
75
|
+
> th,
|
76
|
+
> td {
|
77
|
+
padding: @table-condensed-cell-padding;
|
78
|
+
}
|
79
|
+
}
|
67
80
|
}
|
68
81
|
}
|
69
82
|
|
70
83
|
|
71
|
-
//
|
72
|
-
//
|
84
|
+
// Bordered version
|
85
|
+
//
|
86
|
+
// Add borders all around the table and between all the columns.
|
73
87
|
|
74
88
|
.table-bordered {
|
75
|
-
border: 1px solid @
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
caption + thead tr:first-child th,
|
86
|
-
caption + tbody tr:first-child th,
|
87
|
-
caption + tbody tr:first-child td,
|
88
|
-
colgroup + thead tr:first-child th,
|
89
|
-
colgroup + tbody tr:first-child th,
|
90
|
-
colgroup + tbody tr:first-child td,
|
91
|
-
thead:first-child tr:first-child th,
|
92
|
-
tbody:first-child tr:first-child th,
|
93
|
-
tbody:first-child tr:first-child td {
|
94
|
-
border-top: 0;
|
95
|
-
}
|
96
|
-
// For first th/td in the first row in the first thead or tbody
|
97
|
-
thead:first-child tr:first-child > th:first-child,
|
98
|
-
tbody:first-child tr:first-child > td:first-child,
|
99
|
-
tbody:first-child tr:first-child > th:first-child {
|
100
|
-
.border-top-left-radius(@baseBorderRadius);
|
101
|
-
}
|
102
|
-
// For last th/td in the first row in the first thead or tbody
|
103
|
-
thead:first-child tr:first-child > th:last-child,
|
104
|
-
tbody:first-child tr:first-child > td:last-child,
|
105
|
-
tbody:first-child tr:first-child > th:last-child {
|
106
|
-
.border-top-right-radius(@baseBorderRadius);
|
107
|
-
}
|
108
|
-
// For first th/td (can be either) in the last row in the last thead, tbody, and tfoot
|
109
|
-
thead:last-child tr:last-child > th:first-child,
|
110
|
-
tbody:last-child tr:last-child > td:first-child,
|
111
|
-
tbody:last-child tr:last-child > th:first-child,
|
112
|
-
tfoot:last-child tr:last-child > td:first-child,
|
113
|
-
tfoot:last-child tr:last-child > th:first-child {
|
114
|
-
.border-bottom-left-radius(@baseBorderRadius);
|
115
|
-
}
|
116
|
-
// For last th/td (can be either) in the last row in the last thead, tbody, and tfoot
|
117
|
-
thead:last-child tr:last-child > th:last-child,
|
118
|
-
tbody:last-child tr:last-child > td:last-child,
|
119
|
-
tbody:last-child tr:last-child > th:last-child,
|
120
|
-
tfoot:last-child tr:last-child > td:last-child,
|
121
|
-
tfoot:last-child tr:last-child > th:last-child {
|
122
|
-
.border-bottom-right-radius(@baseBorderRadius);
|
123
|
-
}
|
124
|
-
|
125
|
-
// Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
|
126
|
-
tfoot + tbody:last-child tr:last-child td:first-child {
|
127
|
-
.border-bottom-left-radius(0);
|
128
|
-
}
|
129
|
-
tfoot + tbody:last-child tr:last-child td:last-child {
|
130
|
-
.border-bottom-right-radius(0);
|
131
|
-
}
|
132
|
-
|
133
|
-
// Special fixes to round the left border on the first td/th
|
134
|
-
caption + thead tr:first-child th:first-child,
|
135
|
-
caption + tbody tr:first-child td:first-child,
|
136
|
-
colgroup + thead tr:first-child th:first-child,
|
137
|
-
colgroup + tbody tr:first-child td:first-child {
|
138
|
-
.border-top-left-radius(@baseBorderRadius);
|
89
|
+
border: 1px solid @table-border-color;
|
90
|
+
> thead,
|
91
|
+
> tbody,
|
92
|
+
> tfoot {
|
93
|
+
> tr {
|
94
|
+
> th,
|
95
|
+
> td {
|
96
|
+
border: 1px solid @table-border-color;
|
97
|
+
}
|
98
|
+
}
|
139
99
|
}
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
100
|
+
> thead > tr {
|
101
|
+
> th,
|
102
|
+
> td {
|
103
|
+
border-bottom-width: 2px;
|
104
|
+
}
|
145
105
|
}
|
146
|
-
|
147
106
|
}
|
148
107
|
|
149
108
|
|
150
|
-
|
151
|
-
|
152
|
-
// ZEBRA-STRIPING
|
153
|
-
// --------------
|
154
|
-
|
109
|
+
// Zebra-striping
|
110
|
+
//
|
155
111
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
112
|
+
|
156
113
|
.table-striped {
|
157
|
-
tbody {
|
158
|
-
|
159
|
-
> tr:nth-child(odd) > th {
|
160
|
-
background-color: @tableBackgroundAccent;
|
161
|
-
}
|
114
|
+
> tbody > tr:nth-of-type(odd) {
|
115
|
+
background-color: @table-bg-accent;
|
162
116
|
}
|
163
117
|
}
|
164
118
|
|
165
119
|
|
166
|
-
//
|
167
|
-
//
|
120
|
+
// Hover effect
|
121
|
+
//
|
168
122
|
// Placed here since it has to come after the potential zebra striping
|
123
|
+
|
169
124
|
.table-hover {
|
170
|
-
tbody {
|
171
|
-
|
172
|
-
tr:hover > th {
|
173
|
-
background-color: @tableBackgroundHover;
|
174
|
-
}
|
125
|
+
> tbody > tr:hover {
|
126
|
+
background-color: @table-bg-hover;
|
175
127
|
}
|
176
128
|
}
|
177
129
|
|
178
130
|
|
179
|
-
//
|
180
|
-
//
|
131
|
+
// Table cell sizing
|
132
|
+
//
|
133
|
+
// Reset default table behavior
|
181
134
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
.row-fluid table th[class*="span"] {
|
187
|
-
display: table-cell;
|
188
|
-
float: none; // undo default grid column styles
|
189
|
-
margin-left: 0; // undo default grid column styles
|
135
|
+
table col[class*="col-"] {
|
136
|
+
position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
|
137
|
+
float: none;
|
138
|
+
display: table-column;
|
190
139
|
}
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
&.span6 { .tableColumns(6); }
|
201
|
-
&.span7 { .tableColumns(7); }
|
202
|
-
&.span8 { .tableColumns(8); }
|
203
|
-
&.span9 { .tableColumns(9); }
|
204
|
-
&.span10 { .tableColumns(10); }
|
205
|
-
&.span11 { .tableColumns(11); }
|
206
|
-
&.span12 { .tableColumns(12); }
|
140
|
+
table {
|
141
|
+
td,
|
142
|
+
th {
|
143
|
+
&[class*="col-"] {
|
144
|
+
position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
|
145
|
+
float: none;
|
146
|
+
display: table-cell;
|
147
|
+
}
|
148
|
+
}
|
207
149
|
}
|
208
150
|
|
209
151
|
|
152
|
+
// Table backgrounds
|
153
|
+
//
|
154
|
+
// Exact selectors below required to override `.table-striped` and prevent
|
155
|
+
// inheritance to nested tables.
|
210
156
|
|
211
|
-
//
|
212
|
-
|
213
|
-
|
157
|
+
// Generate the contextual variants
|
158
|
+
.table-row-variant(active; @table-bg-active);
|
159
|
+
.table-row-variant(success; @state-success-bg);
|
160
|
+
.table-row-variant(info; @state-info-bg);
|
161
|
+
.table-row-variant(warning; @state-warning-bg);
|
162
|
+
.table-row-variant(danger; @state-danger-bg);
|
214
163
|
|
215
|
-
.table tbody tr {
|
216
|
-
&.success > td {
|
217
|
-
background-color: @successBackground;
|
218
|
-
}
|
219
|
-
&.error > td {
|
220
|
-
background-color: @errorBackground;
|
221
|
-
}
|
222
|
-
&.warning > td {
|
223
|
-
background-color: @warningBackground;
|
224
|
-
}
|
225
|
-
&.info > td {
|
226
|
-
background-color: @infoBackground;
|
227
|
-
}
|
228
|
-
}
|
229
164
|
|
230
|
-
//
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
165
|
+
// Responsive tables
|
166
|
+
//
|
167
|
+
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
|
168
|
+
// by enabling horizontal scrolling. Only applies <768px. Everything above that
|
169
|
+
// will display normally.
|
170
|
+
|
171
|
+
.table-responsive {
|
172
|
+
overflow-x: auto;
|
173
|
+
min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
|
174
|
+
|
175
|
+
@media screen and (max-width: @screen-xs-max) {
|
176
|
+
width: 100%;
|
177
|
+
margin-bottom: (@line-height-computed * 0.75);
|
178
|
+
overflow-y: hidden;
|
179
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
180
|
+
border: 1px solid @table-border-color;
|
181
|
+
|
182
|
+
// Tighten up spacing
|
183
|
+
> .table {
|
184
|
+
margin-bottom: 0;
|
185
|
+
|
186
|
+
// Ensure the content doesn't wrap
|
187
|
+
> thead,
|
188
|
+
> tbody,
|
189
|
+
> tfoot {
|
190
|
+
> tr {
|
191
|
+
> th,
|
192
|
+
> td {
|
193
|
+
white-space: nowrap;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
// Special overrides for the bordered tables
|
200
|
+
> .table-bordered {
|
201
|
+
border: 0;
|
202
|
+
|
203
|
+
// Nuke the appropriate borders so that the parent can handle them
|
204
|
+
> thead,
|
205
|
+
> tbody,
|
206
|
+
> tfoot {
|
207
|
+
> tr {
|
208
|
+
> th:first-child,
|
209
|
+
> td:first-child {
|
210
|
+
border-left: 0;
|
211
|
+
}
|
212
|
+
> th:last-child,
|
213
|
+
> td:last-child {
|
214
|
+
border-right: 0;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
// Only nuke the last row's bottom-border in `tbody` and `tfoot` since
|
220
|
+
// chances are there will be only one `tr` in a `thead` and that would
|
221
|
+
// remove the border altogether.
|
222
|
+
> tbody,
|
223
|
+
> tfoot {
|
224
|
+
> tr:last-child {
|
225
|
+
> th,
|
226
|
+
> td {
|
227
|
+
border-bottom: 0;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
}
|
243
233
|
}
|
244
234
|
}
|
@@ -0,0 +1,291 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v3.3.6 (http://getbootstrap.com)
|
3
|
+
* Copyright 2011-2015 Twitter, Inc.
|
4
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5
|
+
*/
|
6
|
+
|
7
|
+
//
|
8
|
+
// Load core variables and mixins
|
9
|
+
// --------------------------------------------------
|
10
|
+
|
11
|
+
@import "variables.less";
|
12
|
+
@import "mixins.less";
|
13
|
+
|
14
|
+
|
15
|
+
//
|
16
|
+
// Buttons
|
17
|
+
// --------------------------------------------------
|
18
|
+
|
19
|
+
// Common styles
|
20
|
+
.btn-default,
|
21
|
+
.btn-primary,
|
22
|
+
.btn-success,
|
23
|
+
.btn-info,
|
24
|
+
.btn-warning,
|
25
|
+
.btn-danger {
|
26
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
27
|
+
@shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
|
28
|
+
.box-shadow(@shadow);
|
29
|
+
|
30
|
+
// Reset the shadow
|
31
|
+
&:active,
|
32
|
+
&.active {
|
33
|
+
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
34
|
+
}
|
35
|
+
|
36
|
+
&.disabled,
|
37
|
+
&[disabled],
|
38
|
+
fieldset[disabled] & {
|
39
|
+
.box-shadow(none);
|
40
|
+
}
|
41
|
+
|
42
|
+
.badge {
|
43
|
+
text-shadow: none;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
// Mixin for generating new styles
|
48
|
+
.btn-styles(@btn-color: #555) {
|
49
|
+
#gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
|
50
|
+
.reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620
|
51
|
+
background-repeat: repeat-x;
|
52
|
+
border-color: darken(@btn-color, 14%);
|
53
|
+
|
54
|
+
&:hover,
|
55
|
+
&:focus {
|
56
|
+
background-color: darken(@btn-color, 12%);
|
57
|
+
background-position: 0 -15px;
|
58
|
+
}
|
59
|
+
|
60
|
+
&:active,
|
61
|
+
&.active {
|
62
|
+
background-color: darken(@btn-color, 12%);
|
63
|
+
border-color: darken(@btn-color, 14%);
|
64
|
+
}
|
65
|
+
|
66
|
+
&.disabled,
|
67
|
+
&[disabled],
|
68
|
+
fieldset[disabled] & {
|
69
|
+
&,
|
70
|
+
&:hover,
|
71
|
+
&:focus,
|
72
|
+
&.focus,
|
73
|
+
&:active,
|
74
|
+
&.active {
|
75
|
+
background-color: darken(@btn-color, 12%);
|
76
|
+
background-image: none;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
// Common styles
|
82
|
+
.btn {
|
83
|
+
// Remove the gradient for the pressed/active state
|
84
|
+
&:active,
|
85
|
+
&.active {
|
86
|
+
background-image: none;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
// Apply the mixin to the buttons
|
91
|
+
.btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
|
92
|
+
.btn-primary { .btn-styles(@btn-primary-bg); }
|
93
|
+
.btn-success { .btn-styles(@btn-success-bg); }
|
94
|
+
.btn-info { .btn-styles(@btn-info-bg); }
|
95
|
+
.btn-warning { .btn-styles(@btn-warning-bg); }
|
96
|
+
.btn-danger { .btn-styles(@btn-danger-bg); }
|
97
|
+
|
98
|
+
|
99
|
+
//
|
100
|
+
// Images
|
101
|
+
// --------------------------------------------------
|
102
|
+
|
103
|
+
.thumbnail,
|
104
|
+
.img-thumbnail {
|
105
|
+
.box-shadow(0 1px 2px rgba(0,0,0,.075));
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
//
|
110
|
+
// Dropdowns
|
111
|
+
// --------------------------------------------------
|
112
|
+
|
113
|
+
.dropdown-menu > li > a:hover,
|
114
|
+
.dropdown-menu > li > a:focus {
|
115
|
+
#gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
|
116
|
+
background-color: darken(@dropdown-link-hover-bg, 5%);
|
117
|
+
}
|
118
|
+
.dropdown-menu > .active > a,
|
119
|
+
.dropdown-menu > .active > a:hover,
|
120
|
+
.dropdown-menu > .active > a:focus {
|
121
|
+
#gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
|
122
|
+
background-color: darken(@dropdown-link-active-bg, 5%);
|
123
|
+
}
|
124
|
+
|
125
|
+
|
126
|
+
//
|
127
|
+
// Navbar
|
128
|
+
// --------------------------------------------------
|
129
|
+
|
130
|
+
// Default navbar
|
131
|
+
.navbar-default {
|
132
|
+
#gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);
|
133
|
+
.reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
|
134
|
+
border-radius: @navbar-border-radius;
|
135
|
+
@shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
|
136
|
+
.box-shadow(@shadow);
|
137
|
+
|
138
|
+
.navbar-nav > .open > a,
|
139
|
+
.navbar-nav > .active > a {
|
140
|
+
#gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));
|
141
|
+
.box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
|
142
|
+
}
|
143
|
+
}
|
144
|
+
.navbar-brand,
|
145
|
+
.navbar-nav > li > a {
|
146
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.25);
|
147
|
+
}
|
148
|
+
|
149
|
+
// Inverted navbar
|
150
|
+
.navbar-inverse {
|
151
|
+
#gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
|
152
|
+
.reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
|
153
|
+
border-radius: @navbar-border-radius;
|
154
|
+
.navbar-nav > .open > a,
|
155
|
+
.navbar-nav > .active > a {
|
156
|
+
#gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));
|
157
|
+
.box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
|
158
|
+
}
|
159
|
+
|
160
|
+
.navbar-brand,
|
161
|
+
.navbar-nav > li > a {
|
162
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
// Undo rounded corners in static and fixed navbars
|
167
|
+
.navbar-static-top,
|
168
|
+
.navbar-fixed-top,
|
169
|
+
.navbar-fixed-bottom {
|
170
|
+
border-radius: 0;
|
171
|
+
}
|
172
|
+
|
173
|
+
// Fix active state of dropdown items in collapsed mode
|
174
|
+
@media (max-width: @grid-float-breakpoint-max) {
|
175
|
+
.navbar .navbar-nav .open .dropdown-menu > .active > a {
|
176
|
+
&,
|
177
|
+
&:hover,
|
178
|
+
&:focus {
|
179
|
+
color: #fff;
|
180
|
+
#gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
//
|
187
|
+
// Alerts
|
188
|
+
// --------------------------------------------------
|
189
|
+
|
190
|
+
// Common styles
|
191
|
+
.alert {
|
192
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.2);
|
193
|
+
@shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
|
194
|
+
.box-shadow(@shadow);
|
195
|
+
}
|
196
|
+
|
197
|
+
// Mixin for generating new styles
|
198
|
+
.alert-styles(@color) {
|
199
|
+
#gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));
|
200
|
+
border-color: darken(@color, 15%);
|
201
|
+
}
|
202
|
+
|
203
|
+
// Apply the mixin to the alerts
|
204
|
+
.alert-success { .alert-styles(@alert-success-bg); }
|
205
|
+
.alert-info { .alert-styles(@alert-info-bg); }
|
206
|
+
.alert-warning { .alert-styles(@alert-warning-bg); }
|
207
|
+
.alert-danger { .alert-styles(@alert-danger-bg); }
|
208
|
+
|
209
|
+
|
210
|
+
//
|
211
|
+
// Progress bars
|
212
|
+
// --------------------------------------------------
|
213
|
+
|
214
|
+
// Give the progress background some depth
|
215
|
+
.progress {
|
216
|
+
#gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)
|
217
|
+
}
|
218
|
+
|
219
|
+
// Mixin for generating new styles
|
220
|
+
.progress-bar-styles(@color) {
|
221
|
+
#gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));
|
222
|
+
}
|
223
|
+
|
224
|
+
// Apply the mixin to the progress bars
|
225
|
+
.progress-bar { .progress-bar-styles(@progress-bar-bg); }
|
226
|
+
.progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }
|
227
|
+
.progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }
|
228
|
+
.progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }
|
229
|
+
.progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }
|
230
|
+
|
231
|
+
// Reset the striped class because our mixins don't do multiple gradients and
|
232
|
+
// the above custom styles override the new `.progress-bar-striped` in v3.2.0.
|
233
|
+
.progress-bar-striped {
|
234
|
+
#gradient > .striped();
|
235
|
+
}
|
236
|
+
|
237
|
+
|
238
|
+
//
|
239
|
+
// List groups
|
240
|
+
// --------------------------------------------------
|
241
|
+
|
242
|
+
.list-group {
|
243
|
+
border-radius: @border-radius-base;
|
244
|
+
.box-shadow(0 1px 2px rgba(0,0,0,.075));
|
245
|
+
}
|
246
|
+
.list-group-item.active,
|
247
|
+
.list-group-item.active:hover,
|
248
|
+
.list-group-item.active:focus {
|
249
|
+
text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
|
250
|
+
#gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
|
251
|
+
border-color: darken(@list-group-active-border, 7.5%);
|
252
|
+
|
253
|
+
.badge {
|
254
|
+
text-shadow: none;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
|
259
|
+
//
|
260
|
+
// Panels
|
261
|
+
// --------------------------------------------------
|
262
|
+
|
263
|
+
// Common styles
|
264
|
+
.panel {
|
265
|
+
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
266
|
+
}
|
267
|
+
|
268
|
+
// Mixin for generating new styles
|
269
|
+
.panel-heading-styles(@color) {
|
270
|
+
#gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));
|
271
|
+
}
|
272
|
+
|
273
|
+
// Apply the mixin to the panel headings only
|
274
|
+
.panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }
|
275
|
+
.panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }
|
276
|
+
.panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }
|
277
|
+
.panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }
|
278
|
+
.panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }
|
279
|
+
.panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }
|
280
|
+
|
281
|
+
|
282
|
+
//
|
283
|
+
// Wells
|
284
|
+
// --------------------------------------------------
|
285
|
+
|
286
|
+
.well {
|
287
|
+
#gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);
|
288
|
+
border-color: darken(@well-bg, 10%);
|
289
|
+
@shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
|
290
|
+
.box-shadow(@shadow);
|
291
|
+
}
|