nitro_sg 3.0.0 → 3.0.1
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.
- checksums.yaml +4 -4
- data/fonts/fontawesome.js +1978 -0
- data/fonts/regular.js +1217 -0
- data/lib/nitro_sg/version.rb +1 -1
- data/sass-mixins/_global.scss +415 -0
- data/sass-mixins/_normalize.scss +424 -0
- data/sass-mixins/_print.scss +101 -0
- data/sass-mixins/application.scss +29 -0
- data/sass-mixins/application.scss.flow +1592 -0
- data/sass-mixins/base-mixins/_all.scss +11 -0
- data/sass-mixins/base-mixins/_all.scss.flow +6 -0
- data/sass-mixins/base-mixins/_border-radius.scss +25 -0
- data/sass-mixins/base-mixins/_breakpoints.scss +95 -0
- data/sass-mixins/base-mixins/_color.sass +22 -0
- data/sass-mixins/base-mixins/_forms.scss +33 -0
- data/sass-mixins/base-mixins/_general.scss +599 -0
- data/sass-mixins/base-mixins/_grid-framework.scss +81 -0
- data/sass-mixins/base-mixins/_grid.scss +126 -0
- data/sass-mixins/base-mixins/_hover.scss +26 -0
- data/sass-mixins/base-mixins/_images.scss +33 -0
- data/sass-mixins/base-mixins/_media-queries.sass +58 -0
- data/sass-mixins/base-mixins/_type.scss +46 -0
- data/sass-mixins/base-variables/_all.scss +11 -0
- data/sass-mixins/base-variables/_animation-curves.scss +37 -0
- data/sass-mixins/base-variables/_bootstrap-variables.scss +284 -0
- data/sass-mixins/base-variables/_border-radius.sass +27 -0
- data/sass-mixins/base-variables/_color-bootstrap.scss +62 -0
- data/sass-mixins/base-variables/_color-deprecated.scss +26 -0
- data/sass-mixins/base-variables/_color-ui-elements.scss +20 -0
- data/sass-mixins/base-variables/_colors-export.scss +13 -0
- data/sass-mixins/base-variables/_colors-export.scss.flow +92 -0
- data/sass-mixins/base-variables/_colors.scss +267 -0
- data/sass-mixins/base-variables/_colors.scss.flow +5 -0
- data/sass-mixins/base-variables/_fonts.scss +97 -0
- data/sass-mixins/base-variables/_forms.scss +44 -0
- data/sass-mixins/base-variables/_opacity.scss +9 -0
- data/sass-mixins/base-variables/_positioning.scss +24 -0
- data/sass-mixins/base-variables/_shadows.scss +5 -0
- data/sass-mixins/base-variables/_sizing-ui-elements.scss +2 -0
- data/sass-mixins/base-variables/_spacing.sass +27 -0
- data/sass-mixins/base-variables/_typography.sass +79 -0
- data/sass-mixins/class-helpers/_all.scss +17 -0
- data/sass-mixins/class-helpers/_borders.scss +40 -0
- data/sass-mixins/class-helpers/_color.sass +61 -0
- data/sass-mixins/class-helpers/_display.scss +40 -0
- data/sass-mixins/class-helpers/_flexbox.scss +213 -0
- data/sass-mixins/class-helpers/_glyphicons.scss +307 -0
- data/sass-mixins/class-helpers/_line-height.scss +21 -0
- data/sass-mixins/class-helpers/_radius-and-shadows.scss +49 -0
- data/sass-mixins/class-helpers/_responsive-utilities.scss +179 -0
- data/sass-mixins/class-helpers/_screen-readers.scss +34 -0
- data/sass-mixins/class-helpers/_spacing.scss +51 -0
- data/sass-mixins/class-helpers/_type.scss +323 -0
- data/sass-mixins/class-helpers/_z-index.scss +10 -0
- data/sass-mixins/components.scss +5 -0
- data/sass-mixins/nitro-ui/_alerts.scss +139 -0
- data/sass-mixins/nitro-ui/_all.scss +33 -0
- data/sass-mixins/nitro-ui/_animations.scss +37 -0
- data/sass-mixins/nitro-ui/_carousel.scss +281 -0
- data/sass-mixins/nitro-ui/_code.scss +87 -0
- data/sass-mixins/nitro-ui/_connect-cards.scss +150 -0
- data/sass-mixins/nitro-ui/_dashboards.scss +516 -0
- data/sass-mixins/nitro-ui/_fixed-confirmation-toast.scss +48 -0
- data/sass-mixins/nitro-ui/_full-menu.scss +168 -0
- data/sass-mixins/nitro-ui/_grid.scss +92 -0
- data/sass-mixins/nitro-ui/_icon-toggle.scss +37 -0
- data/sass-mixins/nitro-ui/_jumbotron.scss +65 -0
- data/sass-mixins/nitro-ui/_links.scss +69 -0
- data/sass-mixins/nitro-ui/_list-group.scss +219 -0
- data/sass-mixins/nitro-ui/_media.scss +66 -0
- data/sass-mixins/nitro-ui/_modals.scss +311 -0
- data/sass-mixins/nitro-ui/_notify.scss +56 -0
- data/sass-mixins/nitro-ui/_popovers.scss +167 -0
- data/sass-mixins/nitro-ui/_progress-bars.scss +125 -0
- data/sass-mixins/nitro-ui/_responsive-embed.scss +35 -0
- data/sass-mixins/nitro-ui/_side-modal.scss +92 -0
- data/sass-mixins/nitro-ui/_tables-responsive.scss +253 -0
- data/sass-mixins/nitro-ui/_tables.scss +296 -0
- data/sass-mixins/nitro-ui/_thumbnails.scss +38 -0
- data/sass-mixins/nitro-ui/_tooltip.scss +124 -0
- data/sass-mixins/nitro-ui/_typography.scss +176 -0
- data/sass-mixins/nitro-ui/_value-stat.scss +149 -0
- data/sass-mixins/nitro-ui/_wells.scss +37 -0
- data/sass-mixins/nitro-ui/buttons/_all.scss +97 -0
- data/sass-mixins/nitro-ui/buttons/_button-capping.scss +21 -0
- data/sass-mixins/nitro-ui/buttons/_button-groups.scss +236 -0
- data/sass-mixins/nitro-ui/buttons/_button-mixins.scss +66 -0
- data/sass-mixins/nitro-ui/buttons/_button-variables.scss +51 -0
- data/sass-mixins/nitro-ui/buttons/_choice-buttons.scss +9 -0
- data/sass-mixins/nitro-ui/buttons/_circle-buttons.scss +30 -0
- data/sass-mixins/nitro-ui/buttons/_close.scss +45 -0
- data/sass-mixins/nitro-ui/buttons/_dropdowns.scss +270 -0
- data/sass-mixins/nitro-ui/buttons/_ghost-buttons.scss +58 -0
- data/sass-mixins/nitro-ui/buttons/_link-buttons.scss +53 -0
- data/sass-mixins/nitro-ui/buttons/_solid-buttons.scss +69 -0
- data/sass-mixins/nitro-ui/cards-panels/_all.scss +3 -0
- data/sass-mixins/nitro-ui/cards-panels/_cards.scss +409 -0
- data/sass-mixins/nitro-ui/cards-panels/_collapsible-card.scss +19 -0
- data/sass-mixins/nitro-ui/cards-panels/_panel-collapse.scss +34 -0
- data/sass-mixins/nitro-ui/cards-panels/_panel-list-groups.scss +41 -0
- data/sass-mixins/nitro-ui/cards-panels/_panel-tables.scss +111 -0
- data/sass-mixins/nitro-ui/cards-panels/_panels.scss +120 -0
- data/sass-mixins/nitro-ui/forms/_all.scss +18 -0
- data/sass-mixins/nitro-ui/forms/_checkbox-radio.scss +154 -0
- data/sass-mixins/nitro-ui/forms/_checkbox-toggle.scss +77 -0
- data/sass-mixins/nitro-ui/forms/_color-feedback.scss +53 -0
- data/sass-mixins/nitro-ui/forms/_dropdown.scss +12 -0
- data/sass-mixins/nitro-ui/forms/_form-group.scss +104 -0
- data/sass-mixins/nitro-ui/forms/_general-element-reset.scss +120 -0
- data/sass-mixins/nitro-ui/forms/_help-block.scss +11 -0
- data/sass-mixins/nitro-ui/forms/_horizontal-forms.scss +69 -0
- data/sass-mixins/nitro-ui/forms/_input-groups.scss +169 -0
- data/sass-mixins/nitro-ui/forms/_label.scss +29 -0
- data/sass-mixins/nitro-ui/forms/_multi-input-group.scss +89 -0
- data/sass-mixins/nitro-ui/forms/_static-form-text.scss +19 -0
- data/sass-mixins/nitro-ui/forms/_validation-states.scss +78 -0
- data/sass-mixins/nitro-ui/layouts/_sidebar-layout.scss +59 -0
- data/sass-mixins/nitro-ui/navigation/_all.scss +36 -0
- data/sass-mixins/nitro-ui/navigation/_breadcrumbs.scss +30 -0
- data/sass-mixins/nitro-ui/navigation/_pager.scss +71 -0
- data/sass-mixins/nitro-ui/navigation/_pagination.scss +212 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_brand.scss +25 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_collapse-content.scss +49 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_default-navbar.scss +33 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_dropdowns-buttons.scss +29 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_floats.scss +21 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_flush.scss +14 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_forms.scss +41 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_header.scss +31 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_inverse-navbar.scss +32 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_light-navbar.scss +36 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_links.scss +52 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_mixins.scss +161 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_navbar.scss +29 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_position.scss +50 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_text.scss +13 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_toggle-button.scss +37 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_variables.scss +8 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-dropdowns.scss +10 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-justified.scss +32 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-pills.scss +41 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs-justified.scss +30 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs.scss +41 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav.scss +383 -0
- data/sass-mixins/nitro-ui/navigation/navs/_navs.scss +70 -0
- data/sass-mixins/nitro-ui/navigation/navs/_tabbable-tabs.scss +12 -0
- data/sass-mixins/nitro-ui/navigation/navs/_variables.scss +23 -0
- data/sass-mixins/nitro-ui/tables/_all.scss +14 -0
- data/sass-mixins/nitro-ui/tables/_as-cards.scss +49 -0
- data/sass-mixins/nitro-ui/tables/_content.scss +13 -0
- data/sass-mixins/nitro-ui/tables/_headers.scss +17 -0
- data/sass-mixins/nitro-ui/tables/_hover.scss +66 -0
- data/sass-mixins/nitro-ui/tables/_mixins.scss +0 -0
- data/sass-mixins/nitro-ui/tables/_mobile.scss +138 -0
- data/sass-mixins/nitro-ui/tables/_reset.scss +17 -0
- data/sass-mixins/nitro-ui/tables/_single-line.scss +35 -0
- data/sass-mixins/nitro-ui/tables/_structure.scss +39 -0
- data/sass-mixins/nitro-ui/tables/_table-card.scss +88 -0
- data/sass-mixins/nitro-ui/tables/_table-dark.scss +92 -0
- data/sass-mixins/nitro-ui/tables/_variables.scss +23 -0
- data/sass-mixins/vendor/_bootstrap-overrides.scss +41 -0
- data/sass-mixins/vendor/_dropzone.scss +388 -0
- data/sass-mixins/vendor/_nitro-bootstrap.scss +95 -0
- data/sass-mixins/vendor/_nitro-dropzone.scss +56 -0
- data/sass-mixins/vendor/_react-datetime.scss +105 -0
- data/sass-mixins/vendor/_selectize.scss +407 -0
- data/sass-mixins/vendor/_sweet-alert-extended.scss +3 -0
- data/sass-mixins/vendor/react-select.css +375 -0
- data/sass-mixins/vendor/svg-with-js.css +5 -0
- data/sass-mixins/vendor/type-ahead.scss +43 -0
- metadata +170 -2
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/* Responsive Table -------------------------------------- */
|
|
2
|
+
.table {
|
|
3
|
+
color: $ink;
|
|
4
|
+
font-size: 13px;
|
|
5
|
+
background-color: #fff;
|
|
6
|
+
width: 100%;
|
|
7
|
+
|
|
8
|
+
tr {
|
|
9
|
+
&.ghost {
|
|
10
|
+
background-color: #ecf3ec;
|
|
11
|
+
color: $medium-dark-grey;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.shadow {
|
|
15
|
+
td {
|
|
16
|
+
background-color: $lavender;
|
|
17
|
+
color: $medium-dark-grey;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.add, &.update {
|
|
22
|
+
border-right: solid 3px $dark-orange;
|
|
23
|
+
border-left: solid 3px $dark-orange;
|
|
24
|
+
td {
|
|
25
|
+
background-color: $light-orange;
|
|
26
|
+
color: $medium-dark-grey;
|
|
27
|
+
}
|
|
28
|
+
.text-muted {
|
|
29
|
+
color: $medium-dark-grey;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.void {
|
|
34
|
+
td {
|
|
35
|
+
color: $medium-dark-grey;
|
|
36
|
+
a {
|
|
37
|
+
color: $medium-dark-grey;
|
|
38
|
+
text-decoration: line-through;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
th {
|
|
45
|
+
color: $ink-lighter;
|
|
46
|
+
background-color: tint($sky, 20%);
|
|
47
|
+
&.sort {
|
|
48
|
+
background-color: $table-bg-stripe-color;
|
|
49
|
+
}
|
|
50
|
+
a {
|
|
51
|
+
color: $header-color;
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
&:hover {
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
td {
|
|
60
|
+
vertical-align: top;
|
|
61
|
+
&.sort { background-color: shade($sky-lighter, 3%) }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* let table-responsive parent elements show dropdowns */
|
|
66
|
+
/* outside of their dimensions */
|
|
67
|
+
.table-responsive-with-dropdowns {
|
|
68
|
+
overflow-x: visible;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.table-striped {
|
|
72
|
+
tbody > tr:nth-child(odd) > td.sort { background-color: shade($sky-lighter, 5%) }
|
|
73
|
+
|
|
74
|
+
tbody > tr.ghost:nth-child(odd) > th,
|
|
75
|
+
tbody > tr.ghost:nth-child(odd) > td { background-color: #ecf3ec; }
|
|
76
|
+
|
|
77
|
+
tbody > tr.add:nth-child(odd) > th,
|
|
78
|
+
tbody > tr.add:nth-child(odd) > td,
|
|
79
|
+
tbody > tr.update:nth-child(odd) > th,
|
|
80
|
+
tbody > tr.update:nth-child(odd) > td { background-color: $light-orange; }
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Use bootstrap responsive tables by default, have this */
|
|
84
|
+
/* alternative method if it's more desireable. */
|
|
85
|
+
/* You can add the .hide-labels class to prevent the left labels */
|
|
86
|
+
.collapse-and-rotate {
|
|
87
|
+
|
|
88
|
+
@media only screen and (max-width: 600px) {
|
|
89
|
+
|
|
90
|
+
table, table.table-condensed {
|
|
91
|
+
/* show all columns - assumes we're rotating the table view to a column. */
|
|
92
|
+
tr {
|
|
93
|
+
border-bottom: solid 1px $medium-grey;
|
|
94
|
+
td, th {
|
|
95
|
+
display: block;
|
|
96
|
+
visibility: visible;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* twist table view into a column view */
|
|
101
|
+
thead {
|
|
102
|
+
tr {
|
|
103
|
+
left: -9999px;
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: -9999px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
tbody {
|
|
109
|
+
td {
|
|
110
|
+
/* Behave like a "row" */
|
|
111
|
+
border: none;
|
|
112
|
+
border-bottom: 1px solid $light-grey;
|
|
113
|
+
min-height: 2.2em;
|
|
114
|
+
padding-left: 34%;
|
|
115
|
+
position: relative;
|
|
116
|
+
text-align:left;
|
|
117
|
+
white-space: normal;
|
|
118
|
+
}
|
|
119
|
+
td:before {
|
|
120
|
+
content: attr(data-title);
|
|
121
|
+
/* Top/left values mimic padding */
|
|
122
|
+
color: $dark-blue;
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
left: 16px;
|
|
125
|
+
padding-right: 10px;
|
|
126
|
+
position: absolute; /* Now like a table header */
|
|
127
|
+
text-align:left;
|
|
128
|
+
top: 6px;
|
|
129
|
+
width: 25%;
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.hide-labels {
|
|
137
|
+
@media only screen and (max-width: 600px) {
|
|
138
|
+
table, table.table-condensed {
|
|
139
|
+
tbody {
|
|
140
|
+
td {
|
|
141
|
+
padding-left: 5px;
|
|
142
|
+
}
|
|
143
|
+
td:before {
|
|
144
|
+
left: 0;
|
|
145
|
+
padding-right: 0;
|
|
146
|
+
position: relative;
|
|
147
|
+
width: 0;
|
|
148
|
+
}
|
|
149
|
+
td:before { content: ''; }
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/* iPad Responsive Table -------------------------------------- */
|
|
158
|
+
/* This is a copy of the normal table-responsive bootstrap code
|
|
159
|
+
only applied to iPad sized devices.
|
|
160
|
+
*/
|
|
161
|
+
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px){
|
|
162
|
+
.table-responsive {
|
|
163
|
+
width: 100%;
|
|
164
|
+
margin-bottom: 15px;
|
|
165
|
+
overflow-x: scroll;
|
|
166
|
+
overflow-y: hidden;
|
|
167
|
+
-webkit-overflow-scrolling: touch;
|
|
168
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
169
|
+
border: 1px solid #ddd;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.table-responsive > .table {
|
|
173
|
+
margin-bottom: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.table-responsive > .table > thead > tr > th,
|
|
177
|
+
.table-responsive > .table > tbody > tr > th,
|
|
178
|
+
.table-responsive > .table > tfoot > tr > th,
|
|
179
|
+
.table-responsive > .table > thead > tr > td,
|
|
180
|
+
.table-responsive > .table > tbody > tr > td,
|
|
181
|
+
.table-responsive > .table > tfoot > tr > td {
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.table-responsive > .table-bordered {
|
|
186
|
+
border: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.table-responsive > .table-bordered > thead > tr > th:first-child,
|
|
190
|
+
.table-responsive > .table-bordered > tbody > tr > th:first-child,
|
|
191
|
+
.table-responsive > .table-bordered > tfoot > tr > th:first-child,
|
|
192
|
+
.table-responsive > .table-bordered > thead > tr > td:first-child,
|
|
193
|
+
.table-responsive > .table-bordered > tbody > tr > td:first-child,
|
|
194
|
+
.table-responsive > .table-bordered > tfoot > tr > td:first-child {
|
|
195
|
+
border-right: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.table-responsive > .table-bordered > thead > tr > th:last-child,
|
|
199
|
+
.table-responsive > .table-bordered > tbody > tr > th:last-child,
|
|
200
|
+
.table-responsive > .table-bordered > tfoot > tr > th:last-child,
|
|
201
|
+
.table-responsive > .table-bordered > thead > tr > td:last-child,
|
|
202
|
+
.table-responsive > .table-bordered > tbody > tr > td:last-child,
|
|
203
|
+
.table-responsive > .table-bordered > tfoot > tr > td:last-child {
|
|
204
|
+
border-left: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.table-responsive > .table-bordered > tbody > tr:last-child > th,
|
|
208
|
+
.table-responsive > .table-bordered > tfoot > tr:last-child > th,
|
|
209
|
+
.table-responsive > .table-bordered > tbody > tr:last-child > td,
|
|
210
|
+
.table-responsive > .table-bordered > tfoot > tr:last-child > td {
|
|
211
|
+
border-bottom: 0;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* tablesorter headers should have a pointer since they are clickable. */
|
|
216
|
+
.tablesorter-bootstrap {
|
|
217
|
+
.tablesorter-header { cursor: pointer; }
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
// TODO: Should import these pixel sizes from Bootstrap
|
|
224
|
+
|
|
225
|
+
.columns-responsive-narrow {
|
|
226
|
+
column-count: 2;
|
|
227
|
+
-moz-column-count: 2;
|
|
228
|
+
-webkit-column-count: 2;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@media (min-width: 768px) {
|
|
232
|
+
.columns-responsive-narrow {
|
|
233
|
+
column-count: 3;
|
|
234
|
+
-moz-column-count: 3;
|
|
235
|
+
-webkit-column-count: 3;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@media (min-width: 992px) {
|
|
240
|
+
.columns-responsive-narrow {
|
|
241
|
+
column-count: 5;
|
|
242
|
+
-moz-column-count: 5;
|
|
243
|
+
-webkit-column-count: 5;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@media (min-width: 1200px) {
|
|
248
|
+
.columns-responsive-narrow {
|
|
249
|
+
column-count: 6;
|
|
250
|
+
-moz-column-count: 6;
|
|
251
|
+
-webkit-column-count: 6;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
//== Tables
|
|
2
|
+
//
|
|
3
|
+
//## Customizes the `.table` component with basic values, each used across all table variations.
|
|
4
|
+
|
|
5
|
+
//** Padding for `<th>`s and `<td>`s.
|
|
6
|
+
$table-cell-padding: 8px !default;
|
|
7
|
+
//** Padding for cells in `.table-condensed`.
|
|
8
|
+
$table-condensed-cell-padding: 5px !default;
|
|
9
|
+
|
|
10
|
+
//** Default background color used for all tables.
|
|
11
|
+
$table-bg: transparent !default;
|
|
12
|
+
//** Background color used for `.table-striped`.
|
|
13
|
+
$table-bg-accent: #f9f9f9 !default;
|
|
14
|
+
//** Background color used for `.table-hover`.
|
|
15
|
+
$table-bg-hover: #f5f5f5 !default;
|
|
16
|
+
$table-bg-active: $table-bg-hover !default;
|
|
17
|
+
|
|
18
|
+
//** Border color for table and cell borders.
|
|
19
|
+
$border-color: $sky !default;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
// Tables
|
|
28
|
+
|
|
29
|
+
@mixin table-row-variant($state, $background) {
|
|
30
|
+
// Exact selectors below required to override `.table-striped` and prevent
|
|
31
|
+
// inheritance to nested tables.
|
|
32
|
+
.table > thead > tr,
|
|
33
|
+
.table > tbody > tr,
|
|
34
|
+
.table > tfoot > tr {
|
|
35
|
+
> td.#{$state},
|
|
36
|
+
> th.#{$state},
|
|
37
|
+
&.#{$state} > td,
|
|
38
|
+
&.#{$state} > th {
|
|
39
|
+
background-color: $background;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Hover states for `.table-hover`
|
|
44
|
+
// Note: this is not available for cells or rows within `thead` or `tfoot`.
|
|
45
|
+
.table-hover > tbody > tr {
|
|
46
|
+
> td.#{$state}:hover,
|
|
47
|
+
> th.#{$state}:hover,
|
|
48
|
+
&.#{$state}:hover > td,
|
|
49
|
+
&:hover > .#{$state},
|
|
50
|
+
&.#{$state}:hover > th {
|
|
51
|
+
background-color: darken($background, 5%);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
//
|
|
64
|
+
// Tables
|
|
65
|
+
// --------------------------------------------------
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
table {
|
|
69
|
+
background-color: $table-bg;
|
|
70
|
+
}
|
|
71
|
+
caption {
|
|
72
|
+
padding-top: $table-cell-padding;
|
|
73
|
+
padding-bottom: $table-cell-padding;
|
|
74
|
+
color: $text-muted;
|
|
75
|
+
text-align: left;
|
|
76
|
+
}
|
|
77
|
+
th {
|
|
78
|
+
text-align: left;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
// Baseline styles
|
|
83
|
+
|
|
84
|
+
.table {
|
|
85
|
+
width: 100%;
|
|
86
|
+
max-width: 100%;
|
|
87
|
+
margin-bottom: $line-height-computed;
|
|
88
|
+
// Cells
|
|
89
|
+
> thead,
|
|
90
|
+
> tbody,
|
|
91
|
+
> tfoot {
|
|
92
|
+
> tr {
|
|
93
|
+
> th,
|
|
94
|
+
> td {
|
|
95
|
+
padding: $table-cell-padding;
|
|
96
|
+
line-height: 1.42857;
|
|
97
|
+
vertical-align: top;
|
|
98
|
+
border-top: 1px solid $border-color;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// Bottom align for column headings
|
|
103
|
+
> thead > tr > th {
|
|
104
|
+
vertical-align: bottom;
|
|
105
|
+
border-bottom: 2px solid $border-color;
|
|
106
|
+
}
|
|
107
|
+
// Remove top border from thead by default
|
|
108
|
+
> caption + thead,
|
|
109
|
+
> colgroup + thead,
|
|
110
|
+
> thead:first-child {
|
|
111
|
+
> tr:first-child {
|
|
112
|
+
> th,
|
|
113
|
+
> td {
|
|
114
|
+
border-top: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
// Account for multiple tbody instances
|
|
119
|
+
> tbody + tbody {
|
|
120
|
+
border-top: 2px solid $border-color;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Nesting
|
|
124
|
+
.table {
|
|
125
|
+
background-color: $body-bg;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
// Condensed table w/ half padding
|
|
131
|
+
|
|
132
|
+
.table-condensed {
|
|
133
|
+
> thead,
|
|
134
|
+
> tbody,
|
|
135
|
+
> tfoot {
|
|
136
|
+
> tr {
|
|
137
|
+
> th,
|
|
138
|
+
> td {
|
|
139
|
+
padding: $table-condensed-cell-padding;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
// Bordered version
|
|
147
|
+
//
|
|
148
|
+
// Add borders all around the table and between all the columns.
|
|
149
|
+
|
|
150
|
+
.table-bordered {
|
|
151
|
+
border: 1px solid $border-color;
|
|
152
|
+
> thead,
|
|
153
|
+
> tbody,
|
|
154
|
+
> tfoot {
|
|
155
|
+
> tr {
|
|
156
|
+
> th,
|
|
157
|
+
> td {
|
|
158
|
+
border: 1px solid $border-color;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
> thead > tr {
|
|
163
|
+
> th,
|
|
164
|
+
> td {
|
|
165
|
+
border-bottom-width: 2px;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
// Zebra-striping
|
|
172
|
+
//
|
|
173
|
+
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
|
174
|
+
|
|
175
|
+
.table-striped {
|
|
176
|
+
> tbody > tr:nth-of-type(odd) {
|
|
177
|
+
background-color: $sky-lighter;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
// Hover effect
|
|
183
|
+
//
|
|
184
|
+
// Placed here since it has to come after the potential zebra striping
|
|
185
|
+
|
|
186
|
+
.table-hover {
|
|
187
|
+
> tbody > tr:hover {
|
|
188
|
+
background-color: $table-bg-hover;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
// Table cell sizing
|
|
194
|
+
//
|
|
195
|
+
// Reset default table behavior
|
|
196
|
+
|
|
197
|
+
table col[class*="col-"] {
|
|
198
|
+
position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
|
|
199
|
+
float: none;
|
|
200
|
+
display: table-column;
|
|
201
|
+
}
|
|
202
|
+
table {
|
|
203
|
+
td,
|
|
204
|
+
th {
|
|
205
|
+
&[class*="col-"] {
|
|
206
|
+
position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
|
|
207
|
+
float: none;
|
|
208
|
+
display: table-cell;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
// Table backgrounds
|
|
215
|
+
//
|
|
216
|
+
// Exact selectors below required to override `.table-striped` and prevent
|
|
217
|
+
// inheritance to nested tables.
|
|
218
|
+
|
|
219
|
+
// Generate the contextual variants
|
|
220
|
+
@include table-row-variant('active', $table-bg-active);
|
|
221
|
+
@include table-row-variant('success', $state-success-bg);
|
|
222
|
+
@include table-row-variant('info', $state-info-bg);
|
|
223
|
+
@include table-row-variant('warning', $state-warning-bg);
|
|
224
|
+
@include table-row-variant('danger', $state-danger-bg);
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
// Responsive tables
|
|
228
|
+
//
|
|
229
|
+
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
|
|
230
|
+
// by enabling horizontal scrolling. Only applies <768px. Everything above that
|
|
231
|
+
// will display normally.
|
|
232
|
+
|
|
233
|
+
.table-responsive {
|
|
234
|
+
overflow-x: auto;
|
|
235
|
+
min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
|
|
236
|
+
|
|
237
|
+
@media screen and (max-width: $screen-xs-max) {
|
|
238
|
+
width: 100%;
|
|
239
|
+
margin-bottom: ($line-height-computed * 0.75);
|
|
240
|
+
overflow-y: hidden;
|
|
241
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
242
|
+
border: 1px solid $border-color;
|
|
243
|
+
|
|
244
|
+
// Tighten up spacing
|
|
245
|
+
> .table {
|
|
246
|
+
margin-bottom: 0;
|
|
247
|
+
|
|
248
|
+
// Ensure the content doesn't wrap
|
|
249
|
+
> thead,
|
|
250
|
+
> tbody,
|
|
251
|
+
> tfoot {
|
|
252
|
+
> tr {
|
|
253
|
+
> th,
|
|
254
|
+
> td {
|
|
255
|
+
white-space: nowrap;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// Special overrides for the bordered tables
|
|
262
|
+
> .table-bordered {
|
|
263
|
+
border: 0;
|
|
264
|
+
|
|
265
|
+
// Nuke the appropriate borders so that the parent can handle them
|
|
266
|
+
> thead,
|
|
267
|
+
> tbody,
|
|
268
|
+
> tfoot {
|
|
269
|
+
> tr {
|
|
270
|
+
> th:first-child,
|
|
271
|
+
> td:first-child {
|
|
272
|
+
border-left: 0;
|
|
273
|
+
}
|
|
274
|
+
> th:last-child,
|
|
275
|
+
> td:last-child {
|
|
276
|
+
border-right: 0;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// Only nuke the last row's bottom-border in `tbody` and `tfoot` since
|
|
282
|
+
// chances are there will be only one `tr` in a `thead` and that would
|
|
283
|
+
// remove the border altogether.
|
|
284
|
+
> tbody,
|
|
285
|
+
> tfoot {
|
|
286
|
+
> tr:last-child {
|
|
287
|
+
> th,
|
|
288
|
+
> td {
|
|
289
|
+
border-bottom: 0;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|