nitro_sg 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/fonts/fontawesome.js +1978 -0
  3. data/fonts/regular.js +1217 -0
  4. data/lib/nitro_sg/version.rb +1 -1
  5. data/sass-mixins/_global.scss +415 -0
  6. data/sass-mixins/_normalize.scss +424 -0
  7. data/sass-mixins/_print.scss +101 -0
  8. data/sass-mixins/application.scss +29 -0
  9. data/sass-mixins/application.scss.flow +1592 -0
  10. data/sass-mixins/base-mixins/_all.scss +11 -0
  11. data/sass-mixins/base-mixins/_all.scss.flow +6 -0
  12. data/sass-mixins/base-mixins/_border-radius.scss +25 -0
  13. data/sass-mixins/base-mixins/_breakpoints.scss +95 -0
  14. data/sass-mixins/base-mixins/_color.sass +22 -0
  15. data/sass-mixins/base-mixins/_forms.scss +33 -0
  16. data/sass-mixins/base-mixins/_general.scss +599 -0
  17. data/sass-mixins/base-mixins/_grid-framework.scss +81 -0
  18. data/sass-mixins/base-mixins/_grid.scss +126 -0
  19. data/sass-mixins/base-mixins/_hover.scss +26 -0
  20. data/sass-mixins/base-mixins/_images.scss +33 -0
  21. data/sass-mixins/base-mixins/_media-queries.sass +58 -0
  22. data/sass-mixins/base-mixins/_type.scss +46 -0
  23. data/sass-mixins/base-variables/_all.scss +11 -0
  24. data/sass-mixins/base-variables/_animation-curves.scss +37 -0
  25. data/sass-mixins/base-variables/_bootstrap-variables.scss +284 -0
  26. data/sass-mixins/base-variables/_border-radius.sass +27 -0
  27. data/sass-mixins/base-variables/_color-bootstrap.scss +62 -0
  28. data/sass-mixins/base-variables/_color-deprecated.scss +26 -0
  29. data/sass-mixins/base-variables/_color-ui-elements.scss +20 -0
  30. data/sass-mixins/base-variables/_colors-export.scss +13 -0
  31. data/sass-mixins/base-variables/_colors-export.scss.flow +92 -0
  32. data/sass-mixins/base-variables/_colors.scss +267 -0
  33. data/sass-mixins/base-variables/_colors.scss.flow +5 -0
  34. data/sass-mixins/base-variables/_fonts.scss +97 -0
  35. data/sass-mixins/base-variables/_forms.scss +44 -0
  36. data/sass-mixins/base-variables/_opacity.scss +9 -0
  37. data/sass-mixins/base-variables/_positioning.scss +24 -0
  38. data/sass-mixins/base-variables/_shadows.scss +5 -0
  39. data/sass-mixins/base-variables/_sizing-ui-elements.scss +2 -0
  40. data/sass-mixins/base-variables/_spacing.sass +27 -0
  41. data/sass-mixins/base-variables/_typography.sass +79 -0
  42. data/sass-mixins/class-helpers/_all.scss +17 -0
  43. data/sass-mixins/class-helpers/_borders.scss +40 -0
  44. data/sass-mixins/class-helpers/_color.sass +61 -0
  45. data/sass-mixins/class-helpers/_display.scss +40 -0
  46. data/sass-mixins/class-helpers/_flexbox.scss +213 -0
  47. data/sass-mixins/class-helpers/_glyphicons.scss +307 -0
  48. data/sass-mixins/class-helpers/_line-height.scss +21 -0
  49. data/sass-mixins/class-helpers/_radius-and-shadows.scss +49 -0
  50. data/sass-mixins/class-helpers/_responsive-utilities.scss +179 -0
  51. data/sass-mixins/class-helpers/_screen-readers.scss +34 -0
  52. data/sass-mixins/class-helpers/_spacing.scss +51 -0
  53. data/sass-mixins/class-helpers/_type.scss +323 -0
  54. data/sass-mixins/class-helpers/_z-index.scss +10 -0
  55. data/sass-mixins/components.scss +5 -0
  56. data/sass-mixins/nitro-ui/_alerts.scss +139 -0
  57. data/sass-mixins/nitro-ui/_all.scss +33 -0
  58. data/sass-mixins/nitro-ui/_animations.scss +37 -0
  59. data/sass-mixins/nitro-ui/_carousel.scss +281 -0
  60. data/sass-mixins/nitro-ui/_code.scss +87 -0
  61. data/sass-mixins/nitro-ui/_connect-cards.scss +150 -0
  62. data/sass-mixins/nitro-ui/_dashboards.scss +516 -0
  63. data/sass-mixins/nitro-ui/_fixed-confirmation-toast.scss +48 -0
  64. data/sass-mixins/nitro-ui/_full-menu.scss +168 -0
  65. data/sass-mixins/nitro-ui/_grid.scss +92 -0
  66. data/sass-mixins/nitro-ui/_icon-toggle.scss +37 -0
  67. data/sass-mixins/nitro-ui/_jumbotron.scss +65 -0
  68. data/sass-mixins/nitro-ui/_links.scss +69 -0
  69. data/sass-mixins/nitro-ui/_list-group.scss +219 -0
  70. data/sass-mixins/nitro-ui/_media.scss +66 -0
  71. data/sass-mixins/nitro-ui/_modals.scss +311 -0
  72. data/sass-mixins/nitro-ui/_notify.scss +56 -0
  73. data/sass-mixins/nitro-ui/_popovers.scss +167 -0
  74. data/sass-mixins/nitro-ui/_progress-bars.scss +125 -0
  75. data/sass-mixins/nitro-ui/_responsive-embed.scss +35 -0
  76. data/sass-mixins/nitro-ui/_side-modal.scss +92 -0
  77. data/sass-mixins/nitro-ui/_tables-responsive.scss +253 -0
  78. data/sass-mixins/nitro-ui/_tables.scss +296 -0
  79. data/sass-mixins/nitro-ui/_thumbnails.scss +38 -0
  80. data/sass-mixins/nitro-ui/_tooltip.scss +124 -0
  81. data/sass-mixins/nitro-ui/_typography.scss +176 -0
  82. data/sass-mixins/nitro-ui/_value-stat.scss +149 -0
  83. data/sass-mixins/nitro-ui/_wells.scss +37 -0
  84. data/sass-mixins/nitro-ui/buttons/_all.scss +97 -0
  85. data/sass-mixins/nitro-ui/buttons/_button-capping.scss +21 -0
  86. data/sass-mixins/nitro-ui/buttons/_button-groups.scss +236 -0
  87. data/sass-mixins/nitro-ui/buttons/_button-mixins.scss +66 -0
  88. data/sass-mixins/nitro-ui/buttons/_button-variables.scss +51 -0
  89. data/sass-mixins/nitro-ui/buttons/_choice-buttons.scss +9 -0
  90. data/sass-mixins/nitro-ui/buttons/_circle-buttons.scss +30 -0
  91. data/sass-mixins/nitro-ui/buttons/_close.scss +45 -0
  92. data/sass-mixins/nitro-ui/buttons/_dropdowns.scss +270 -0
  93. data/sass-mixins/nitro-ui/buttons/_ghost-buttons.scss +58 -0
  94. data/sass-mixins/nitro-ui/buttons/_link-buttons.scss +53 -0
  95. data/sass-mixins/nitro-ui/buttons/_solid-buttons.scss +69 -0
  96. data/sass-mixins/nitro-ui/cards-panels/_all.scss +3 -0
  97. data/sass-mixins/nitro-ui/cards-panels/_cards.scss +409 -0
  98. data/sass-mixins/nitro-ui/cards-panels/_collapsible-card.scss +19 -0
  99. data/sass-mixins/nitro-ui/cards-panels/_panel-collapse.scss +34 -0
  100. data/sass-mixins/nitro-ui/cards-panels/_panel-list-groups.scss +41 -0
  101. data/sass-mixins/nitro-ui/cards-panels/_panel-tables.scss +111 -0
  102. data/sass-mixins/nitro-ui/cards-panels/_panels.scss +120 -0
  103. data/sass-mixins/nitro-ui/forms/_all.scss +18 -0
  104. data/sass-mixins/nitro-ui/forms/_checkbox-radio.scss +154 -0
  105. data/sass-mixins/nitro-ui/forms/_checkbox-toggle.scss +77 -0
  106. data/sass-mixins/nitro-ui/forms/_color-feedback.scss +53 -0
  107. data/sass-mixins/nitro-ui/forms/_dropdown.scss +12 -0
  108. data/sass-mixins/nitro-ui/forms/_form-group.scss +104 -0
  109. data/sass-mixins/nitro-ui/forms/_general-element-reset.scss +120 -0
  110. data/sass-mixins/nitro-ui/forms/_help-block.scss +11 -0
  111. data/sass-mixins/nitro-ui/forms/_horizontal-forms.scss +69 -0
  112. data/sass-mixins/nitro-ui/forms/_input-groups.scss +169 -0
  113. data/sass-mixins/nitro-ui/forms/_label.scss +29 -0
  114. data/sass-mixins/nitro-ui/forms/_multi-input-group.scss +89 -0
  115. data/sass-mixins/nitro-ui/forms/_static-form-text.scss +19 -0
  116. data/sass-mixins/nitro-ui/forms/_validation-states.scss +78 -0
  117. data/sass-mixins/nitro-ui/layouts/_sidebar-layout.scss +59 -0
  118. data/sass-mixins/nitro-ui/navigation/_all.scss +36 -0
  119. data/sass-mixins/nitro-ui/navigation/_breadcrumbs.scss +30 -0
  120. data/sass-mixins/nitro-ui/navigation/_pager.scss +71 -0
  121. data/sass-mixins/nitro-ui/navigation/_pagination.scss +212 -0
  122. data/sass-mixins/nitro-ui/navigation/navbar/_brand.scss +25 -0
  123. data/sass-mixins/nitro-ui/navigation/navbar/_collapse-content.scss +49 -0
  124. data/sass-mixins/nitro-ui/navigation/navbar/_default-navbar.scss +33 -0
  125. data/sass-mixins/nitro-ui/navigation/navbar/_dropdowns-buttons.scss +29 -0
  126. data/sass-mixins/nitro-ui/navigation/navbar/_floats.scss +21 -0
  127. data/sass-mixins/nitro-ui/navigation/navbar/_flush.scss +14 -0
  128. data/sass-mixins/nitro-ui/navigation/navbar/_forms.scss +41 -0
  129. data/sass-mixins/nitro-ui/navigation/navbar/_header.scss +31 -0
  130. data/sass-mixins/nitro-ui/navigation/navbar/_inverse-navbar.scss +32 -0
  131. data/sass-mixins/nitro-ui/navigation/navbar/_light-navbar.scss +36 -0
  132. data/sass-mixins/nitro-ui/navigation/navbar/_links.scss +52 -0
  133. data/sass-mixins/nitro-ui/navigation/navbar/_mixins.scss +161 -0
  134. data/sass-mixins/nitro-ui/navigation/navbar/_navbar.scss +29 -0
  135. data/sass-mixins/nitro-ui/navigation/navbar/_position.scss +50 -0
  136. data/sass-mixins/nitro-ui/navigation/navbar/_text.scss +13 -0
  137. data/sass-mixins/nitro-ui/navigation/navbar/_toggle-button.scss +37 -0
  138. data/sass-mixins/nitro-ui/navigation/navbar/_variables.scss +8 -0
  139. data/sass-mixins/nitro-ui/navigation/navs/_nav-dropdowns.scss +10 -0
  140. data/sass-mixins/nitro-ui/navigation/navs/_nav-justified.scss +32 -0
  141. data/sass-mixins/nitro-ui/navigation/navs/_nav-pills.scss +41 -0
  142. data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs-justified.scss +30 -0
  143. data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs.scss +41 -0
  144. data/sass-mixins/nitro-ui/navigation/navs/_nav.scss +383 -0
  145. data/sass-mixins/nitro-ui/navigation/navs/_navs.scss +70 -0
  146. data/sass-mixins/nitro-ui/navigation/navs/_tabbable-tabs.scss +12 -0
  147. data/sass-mixins/nitro-ui/navigation/navs/_variables.scss +23 -0
  148. data/sass-mixins/nitro-ui/tables/_all.scss +14 -0
  149. data/sass-mixins/nitro-ui/tables/_as-cards.scss +49 -0
  150. data/sass-mixins/nitro-ui/tables/_content.scss +13 -0
  151. data/sass-mixins/nitro-ui/tables/_headers.scss +17 -0
  152. data/sass-mixins/nitro-ui/tables/_hover.scss +66 -0
  153. data/sass-mixins/nitro-ui/tables/_mixins.scss +0 -0
  154. data/sass-mixins/nitro-ui/tables/_mobile.scss +138 -0
  155. data/sass-mixins/nitro-ui/tables/_reset.scss +17 -0
  156. data/sass-mixins/nitro-ui/tables/_single-line.scss +35 -0
  157. data/sass-mixins/nitro-ui/tables/_structure.scss +39 -0
  158. data/sass-mixins/nitro-ui/tables/_table-card.scss +88 -0
  159. data/sass-mixins/nitro-ui/tables/_table-dark.scss +92 -0
  160. data/sass-mixins/nitro-ui/tables/_variables.scss +23 -0
  161. data/sass-mixins/vendor/_bootstrap-overrides.scss +41 -0
  162. data/sass-mixins/vendor/_dropzone.scss +388 -0
  163. data/sass-mixins/vendor/_nitro-bootstrap.scss +95 -0
  164. data/sass-mixins/vendor/_nitro-dropzone.scss +56 -0
  165. data/sass-mixins/vendor/_react-datetime.scss +105 -0
  166. data/sass-mixins/vendor/_selectize.scss +407 -0
  167. data/sass-mixins/vendor/_sweet-alert-extended.scss +3 -0
  168. data/sass-mixins/vendor/react-select.css +375 -0
  169. data/sass-mixins/vendor/svg-with-js.css +5 -0
  170. data/sass-mixins/vendor/type-ahead.scss +43 -0
  171. 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
+ }