Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Scrollable Tables |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | .table-scrollable { |
||
| 6 | width: 100%; |
||
| 7 | overflow-x: auto; |
||
| 8 | overflow-y: hidden; |
||
| 9 | border: 1px solid $general-panel-border-color; |
||
| 10 | margin: 10px 0 !important; |
||
| 11 | |||
| 12 | .DTS & { |
||
| 13 | border: 0; |
||
| 14 | } |
||
| 15 | |||
| 16 | &.table-scrollable-borderless { |
||
| 17 | border: 0; |
||
| 18 | } |
||
| 19 | |||
| 20 | > .table { |
||
| 21 | width: 100% !important; |
||
| 22 | margin: 0 !important; |
||
| 23 | margin-bottom: 0; |
||
| 24 | background-color: #fff; |
||
| 25 | |||
| 26 | > thead > tr > th, |
||
| 27 | > tbody > tr > th, |
||
| 28 | > tfoot > tr > th, |
||
| 29 | > tfoot > tr > th, |
||
| 30 | > tfoot > tr > td { |
||
| 31 | white-space: nowrap; |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | > .table-bordered { |
||
| 36 | border: 0; |
||
| 37 | |||
| 38 | > thead > tr > th:first-child, |
||
| 39 | > tbody > tr > th:first-child, |
||
| 40 | > tfoot > tr > th:first-child, |
||
| 41 | > thead > tr > td:first-child, |
||
| 42 | > tbody > tr > td:first-child, |
||
| 43 | > tfoot > tr > td:first-child { |
||
| 44 | border-left: 0; |
||
| 45 | } |
||
| 46 | |||
| 47 | > thead > tr > th:last-child, |
||
| 48 | > tbody > tr > th:last-child, |
||
| 49 | > tfoot > tr > th:last-child, |
||
| 50 | > thead > tr > td:last-child, |
||
| 51 | > tbody > tr > td:last-child, |
||
| 52 | > tfoot > tr > td:last-child { |
||
| 53 | border-right: 0; |
||
| 54 | } |
||
| 55 | |||
| 56 | > thead > tr:last-child > th, |
||
| 57 | > tbody > tr:last-child > th, |
||
| 58 | > tfoot > tr:last-child > th, |
||
| 59 | > thead > tr:last-child > td, |
||
| 60 | > tbody > tr:last-child > td, |
||
| 61 | > tfoot > tr:last-child > td { |
||
| 62 | border-bottom: 0; |
||
| 63 | } |
||
| 64 | } |
||
| 65 | } |
||
| 66 | |||
| 67 | /*** |
||
| 68 | Customized Bootstrap Tables |
||
| 69 | ***/ |
||
| 70 | |||
| 71 | .table { |
||
| 72 | td, |
||
| 73 | th { |
||
| 74 | font-size: 14px; |
||
| 75 | } |
||
| 76 | |||
| 77 | &.table-bordered { |
||
| 78 | thead > tr > th { |
||
| 79 | border-bottom: 0; |
||
| 80 | } |
||
| 81 | } |
||
| 82 | |||
| 83 | td .img-responsive { |
||
| 84 | width:100%; |
||
| 85 | } |
||
| 86 | } |
||
| 87 | |||
| 88 | /*** |
||
| 89 | Responsive Flip Scroll Tables |
||
| 90 | ***/ |
||
| 91 | |||
| 92 | .flip-scroll table { |
||
| 93 | width: 100%; |
||
| 94 | } |
||
| 95 | |||
| 96 | @media only screen and (max-width: $screen-sm-min) { /* 768px */ |
||
| 97 | |||
| 98 | .flip-scroll .flip-content:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } |
||
| 99 | .flip-scroll * html .flip-content { zoom: 1; } |
||
| 100 | .flip-scroll *:first-child+html .flip-content { zoom: 1; } |
||
| 101 | |||
| 102 | .flip-scroll table { width: 100%; border-collapse: collapse; border-spacing: 0; } |
||
| 103 | |||
| 104 | .flip-scroll th, |
||
| 105 | .flip-scroll td { margin: 0; vertical-align: top; } |
||
| 106 | .flip-scroll th { |
||
| 107 | text-align: left; |
||
| 108 | border: 0 !important; |
||
| 109 | border-bottom: 1px solid #ddd !important; |
||
| 110 | border-right: 1px solid #ddd !important; |
||
| 111 | font-size: 13px !important; |
||
| 112 | padding: 5px; |
||
| 113 | width: auto !important; |
||
| 114 | } |
||
| 115 | |||
| 116 | .flip-scroll table { display: block; position: relative; width: 100%; } |
||
| 117 | .flip-scroll thead { |
||
| 118 | display: block; |
||
| 119 | float: left; |
||
| 120 | } |
||
| 121 | .flip-scroll tbody { |
||
| 122 | display: block; |
||
| 123 | width: auto; |
||
| 124 | position: relative; |
||
| 125 | overflow-x: auto; |
||
| 126 | white-space: nowrap; |
||
| 127 | } |
||
| 128 | |||
| 129 | .flip-scroll .flip-content tbody tr td { font-size: 13px; line-height: 1.483; } |
||
| 130 | .flip-scroll .table-bordered.flip-content tbody tr td { font-size: 13px; line-height: 1.43; } |
||
| 131 | |||
| 132 | .flip-scroll thead tr { display: block; } |
||
| 133 | .flip-scroll th { display: block; text-align: right; } |
||
| 134 | .flip-scroll tbody tr { display: inline-block; vertical-align: top; margin-left: -5px; } |
||
| 135 | .flip-scroll td { display: block; min-height: 1.25em; text-align: left; border-top: 0 !important; border-left: 0 !important; border-right: 0 !important} |
||
| 136 | |||
| 137 | /* sort out borders */ |
||
| 138 | |||
| 139 | .flip-scroll th { border-bottom: 0; border-left: 0; } |
||
| 140 | .flip-scroll td { border-left: 0; border-right: 0; border-bottom: 0; } |
||
| 141 | .flip-scroll tbody tr { border-left: 1px solid #ddd; } |
||
| 142 | .flip-scroll th:last-child, |
||
| 143 | .flip-scroll td:last-child { border-bottom: 1px solid #ddd; } |
||
| 144 | } |
||
| 145 | |||
| 146 | /*** |
||
| 147 | Custom tables |
||
| 148 | ***/ |
||
| 149 | |||
| 150 | .table-toolbar { |
||
| 151 | margin-bottom: 20px; |
||
| 152 | |||
| 153 | @include clearfix(); |
||
| 154 | } |
||
| 155 | |||
| 156 | .table.table-full-width { |
||
| 157 | width: 100% !important; |
||
| 158 | } |
||
| 159 | |||
| 160 | .table .btn { |
||
| 161 | margin-top: 0px; |
||
| 162 | margin-left: 0px; |
||
| 163 | margin-right: 5px; |
||
| 164 | } |
||
| 165 | |||
| 166 | .table thead tr th { |
||
| 167 | font-size: 14px; |
||
| 168 | font-weight: 600; |
||
| 169 | } |
||
| 170 | |||
| 171 | .table-advance { |
||
| 172 | margin-bottom: 10px !important; |
||
| 173 | } |
||
| 174 | |||
| 175 | .table-advance thead { |
||
| 176 | color: $general-panel-font-color; |
||
| 177 | } |
||
| 178 | |||
| 179 | .table-advance thead tr th{ |
||
| 180 | background-color: $general-panel-bg-color; |
||
| 181 | font-size: 14px; |
||
| 182 | font-weight: 400; |
||
| 183 | color: $general-panel-font-color; |
||
| 184 | } |
||
| 185 | |||
| 186 | .table-advance div.success, |
||
| 187 | .table-advance div.info, |
||
| 188 | .table-advance div.important, |
||
| 189 | .table-advance div.warning, |
||
| 190 | .table-advance div.danger { |
||
| 191 | position: absolute; |
||
| 192 | margin-top:-5px; |
||
| 193 | float: left; |
||
| 194 | width: 2px; |
||
| 195 | height: 30px; |
||
| 196 | margin-right: 20px !important; |
||
| 197 | } |
||
| 198 | |||
| 199 | .table-advance tr td { |
||
| 200 | border-left-width: 0px; |
||
| 201 | } |
||
| 202 | |||
| 203 | .table-advance tr td:first-child { |
||
| 204 | border-left-width: 2px !important; |
||
| 205 | } |
||
| 206 | |||
| 207 | .table-advance tr td.highlight:first-child a { |
||
| 208 | margin-left: 15px; |
||
| 209 | } |
||
| 210 | |||
| 211 | .table-advance td.highlight div.primary { |
||
| 212 | border-left: 2px solid $brand-primary; |
||
| 213 | } |
||
| 214 | |||
| 215 | .table-advance td.highlight div.success { |
||
| 216 | border-left: 2px solid $brand-success; |
||
| 217 | } |
||
| 218 | |||
| 219 | .table-advance td.highlight div.info { |
||
| 220 | border-left: 2px solid $brand-info; |
||
| 221 | } |
||
| 222 | |||
| 223 | .table-advance td.highlight div.warning { |
||
| 224 | border-left: 2px solid $brand-warning; |
||
| 225 | } |
||
| 226 | |||
| 227 | .table-advance td.highlight div.danger { |
||
| 228 | border-left: 2px solid $brand-danger; |
||
| 229 | } |
||
| 230 | |||
| 231 | @media (max-width: $screen-xs-max) { /* 767px */ |
||
| 232 | .table-advance { |
||
| 233 | tr { |
||
| 234 | > td.highlight:first-child a { |
||
| 235 | margin-left: 8px; |
||
| 236 | } |
||
| 237 | } |
||
| 238 | } |
||
| 239 | } |
||
| 240 | |||
| 241 | |||
| 242 | /*** |
||
| 243 | Light Table |
||
| 244 | ***/ |
||
| 245 | |||
| 246 | .table.table-light { |
||
| 247 | border: 0 !important; |
||
| 248 | |||
| 249 | > thead { |
||
| 250 | > tr { |
||
| 251 | &:hover { |
||
| 252 | > th { |
||
| 253 | background: none; |
||
| 254 | } |
||
| 255 | } |
||
| 256 | |||
| 257 | &.uppercase { |
||
| 258 | text-transform: uppercase; |
||
| 259 | } |
||
| 260 | |||
| 261 | > th { |
||
| 262 | font-weight: 600; |
||
| 263 | font-size: 13px; |
||
| 264 | color: darken(#B5BFC4, 12%); |
||
| 265 | font-family: $font-family-primary; |
||
| 266 | border: 0; |
||
| 267 | border-bottom:1px solid #F2F5F8; |
||
| 268 | } |
||
| 269 | } |
||
| 270 | } |
||
| 271 | |||
| 272 | > tbody { |
||
| 273 | > tr { |
||
| 274 | &:last-child { |
||
| 275 | > td { |
||
| 276 | border: 0; |
||
| 277 | } |
||
| 278 | } |
||
| 279 | |||
| 280 | > td { |
||
| 281 | border: 0; |
||
| 282 | border-bottom:1px solid #F2F5F8; |
||
| 283 | color: darken(#AAB4BB, 12%); |
||
| 284 | vertical-align: middle; |
||
| 285 | |||
| 286 | &.fit { |
||
| 287 | width: 1px; |
||
| 288 | padding-right: 3px; |
||
| 289 | } |
||
| 290 | |||
| 291 | .user-pic { |
||
| 292 | display: inline-block; |
||
| 293 | vertical-align: middle; |
||
| 294 | height: 30px; |
||
| 295 | @include border-radius(100%); |
||
| 296 | } |
||
| 297 | } |
||
| 298 | } |
||
| 299 | } |
||
| 300 | |||
| 301 | &.table-hover > tbody > tr { |
||
| 302 | > td:hover, |
||
| 303 | > th:hover, |
||
| 304 | &:hover > td{ |
||
| 305 | background: lighten(#94A0B2, 34%) !important; |
||
| 306 | } |
||
| 307 | } |
||
| 308 | } |
||
| 309 | |||
| 310 | .table-hover > tbody > tr:hover, |
||
| 311 | .table-hover > tbody > tr:hover > td { |
||
| 312 | background: lighten(#94A0B2, 32%) !important; |
||
| 313 | } |