Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

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