_tables.scss 3.25 KB
Newer Older
1
2
.table>thead>tr>th {
    border-color: #ccc;
Robert Lyon's avatar
Robert Lyon committed
3
4
5
6
7
8
9
10
11
    &.active {
        background: lighten($table-bg-active, 3%);
    }
}
td.short {
    width: 180px;
}
td.tiny {
    width: 20px;
12
13
}

14
15
.table {
    max-width:100%;
16
    border-collapse: separate;
17
18
19
20
    .icon-cell {
        min-width: 50px; //width of two icons
    }

Naomi Guyer's avatar
Naomi Guyer committed
21
22
23
24
    label {
        min-width: 0;
    }

25
    thead {
26
        text-transform: uppercase;
27
        color: $gray;
28
        font-size: $font-size-base - 2;
29
30
31
        th {
            font-weight: 300;
        }
32
33
34
35
36
37
        .allnone-toggles {
            width: 80px;
            .btn-xs {
                font-size: 10px;
            }
        }
38
39
40
41
42
43
    }

    td input[type=radio],
    td input[type=checkbox] {
        margin: 0 auto;
        display: block;
Naomi Guyer's avatar
Naomi Guyer committed
44
45
46
        &.with-label {
            margin: 0;
        }
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
    }

    td {
        white-space: normal;
        &.movebuttons {
            width: 50px;
            .movedown,
            .moveup {
                color: #000000;
                font-size: 20px;
            }
        }
        &.control-buttons {
            width: 90px;
            a,
            .pieform {
                display: inline-block;
            }
65
66
67
            .btn-xs {
                padding: 2px 7px;
            }
68
69
        }
        h3 {
70
71
            font-weight: 300;
            font-family: $font-family-serif;
72
            font-size: $font-size-base + 3;
73
74
75
            margin: 0;
        }
    }
76
77
78
79

    .narrow {
        width: 20px;
    }
80
81
82
83

    small {
        font-size: $font-size-base - 2;
    }
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
}

.table-hover {
  > tbody > tr {
    &.no-hover {
        &:hover {
            background:inherit;
            cursor: default;
        }
    }
        &:hover {
            cursor: pointer;
        }
    }
}

100
101
102
103
104
105
106
.table-padded {
    >tbody>tr>td {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136

.table-small{
    font-size: 0.8em;
    th {
        font-size: 0.8em;
    }
    >thead>tr>th,
    >thead>tr>td,
    >tbody>tr>th,
    >tbody>tr>td,
    >tfoot>tr>th,
    >tfoot>tr>td {
        padding: 5px 3px;
        &:first-child {
            padding-left:8px;
        }
        &:last-child {
            padding-right: 8px;
        }
    }

    > thead>tr> th {
        padding: 10px 3px;
    }

    .btn-xs {
        font-size: 10px;
    }
}

137
138
139
140
141
142
143
.table-short {
    width: 100%;
    @media screen and (min-width: $screen-sm-min) {
        width: 40%;
    }
}

144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
.table-selectedlist {
    font-size: $font-size-small;
}

table.table tr {
    .with-checkbox {
        min-width: 74px;

        input {
            margin-top:12px;
            margin-right:3px;
            float:left;
        }
    }
}
Robert Lyon's avatar
Robert Lyon committed
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184

.table > thead > tr.th-has-shared > th {
    padding-bottom: 15px;
}

.th-shared-wrap {
    position: relative;
    padding-top: 7px;
}

.th-shared-heading {
    position: absolute;
    top: -8px;
    left: 13px;
    width: 200%;
    text-align: center;
}

.th-shared-title {
    font-size: 0.8em;
    position: relative;
    margin-bottom: -12px;
    display: block;
}

.table-help-text {
185
    @extend .text-midtone;
Robert Lyon's avatar
Robert Lyon committed
186
187
188
189
190
191
192
193
    float: right;
    display: block;
    line-height: 30px;
    vertical-align: bottom;
    margin: 5px;
    font-size: 16px;
    font-weight: 100;
}
194
195
196
197

// Unset border top on the first row of the table
.table>tbody>tr:first-child>td {
    border-top-width: 0;
198
}