Some minor style tweaks
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / tabularBox.scss
CommitLineData
1223c43c
AE
1.tabularBox > .content {
2 border-width: 0;
3}
4
5.tabularList {
e2368a74 6 border-bottom: 1px solid $wcfContentBorder;
1223c43c
AE
7 display: flex;
8 flex-direction: column;
9}
10
11.tabularListRow {
12 flex: 0 0 auto;
13 padding: 5px 0;
14
15 &.divider + li:not(.divider) {
e2368a74 16 border-top-color: $wcfContentBorder;
4eb2df9a
MW
17 }
18
19 &:not(.tabularListRowHead):hover {
20 background-color: $wcfTabularBoxBackgroundActive;
1223c43c
AE
21 }
22}
23
24.tabularListRowHead {
25 border-bottom: 2px solid currentColor;
26 color: $wcfTabularBoxHeadline;
27
28 & + li {
29 border-top-width: 0;
f2b50825 30 }
1223c43c
AE
31}
32
33.tabularListRow:not(.tabularListRowHead) {
34 border-top: 1px solid $wcfContentBorderInner;
35}
36
37.tabularListColumns {
38 align-items: center;
39 display: flex;
f2b50825 40
1223c43c
AE
41 > li {
42 flex: 0 0 auto;
43 padding: 5px 10px;
44 }
45}
46
47.tabularListRowHead > .tabularListColumns > li {
48 > a {
49 color: $wcfTabularBoxHeadline;
50 display: block;
f2b50825 51
1223c43c
AE
52 @extend .wcfFontHeadline;
53 }
54
55 &.ASC > a,
56 &.DESC > a {
57 padding-right: 14px;
58 position: relative;
59
60 &:after {
61 display: inline-block;
62 font-family: FontAwesome;
63 margin-left: 7px;
64 position: absolute;
f2b50825
AE
65 }
66 }
1223c43c
AE
67
68 &.ASC > a:after {
69 content: $fa-var-caret-up;
70 top: 1px;
71 }
72
73 &.DESC > a:after {
74 content: $fa-var-caret-down;
75 top: 2px;
76 }
77
78 &.active > a,
79 > a:hover {
80 color: $wcfTabularBoxHeadlineActive;
81 }
f2b50825
AE
82}
83
84.tabularBoxTitle {
85 > header {
86 border-bottom: 1px solid currentColor;
87 color: $wcfTabularBoxHeadline;
88 padding: 10px 0;
89
90 > h1,
91 > h2,
92 > h3 {
945f563e 93 @extend .wcfFontHeadline;
f2b50825
AE
94 }
95
96 a,
97 .icon {
98 color: $wcfTabularBoxHeadline;
99
100 &:hover {
101 color: $wcfTabularBoxHeadlineActive;
102 }
103 }
104
105 .collapsibleButton {
106 cursor: pointer;
107 transition: transform .2s linear;
108 }
109 }
110}
111
f2b50825
AE
112/* table */
113.table {
e2368a74 114 border-bottom: 1px solid $wcfContentBorder;
f2b50825
AE
115 border-spacing: 0;
116 width: 100%;
117
118 td,
119 th {
120 padding: 10px;
121 text-align: left;
122 vertical-align: middle;
123 // non-standard webkit value
124 word-break: break-word;
125
126 > label {
127 cursor: pointer;
128 display: block;
129 }
130 }
131
132 th {
133 border-bottom: 2px solid currentColor;
e2368a74 134 color: $wcfContentBorder;
f2b50825
AE
135 text-align: left;
136 white-space: nowrap;
137
945f563e 138 @extend .wcfFontHeadline;
f2b50825
AE
139
140 > a {
141 color: $wcfTabularBoxHeadline;
142 display: block;
143 }
144
145 &.active > a,
146 > a:hover {
147 color: $wcfTabularBoxHeadlineActive;
148 }
149
150 &.ASC,
151 &.DESC {
152 > a::after {
153 display: inline-block;
154 font-family: FontAwesome;
155 margin-left: 5px;
156 }
157 }
158
159 &.ASC > a::after {
160 content: $fa-var-caret-up;
161 }
162
163 &.DESC > a::after {
164 content: $fa-var-caret-down;
165 }
166
167 /* alignment only */
168 &.columnMark,
169 &.columnStatus {
170 text-align: center;
171 }
172
173 &.columnDate,
174 &.columnDigits,
175 &.columnID {
176 text-align: right;
177 }
178 }
179
180 td {
181 &.columnMark,
182 &.columnStatus {
183 text-align: center;
184 width: 1px;
185 white-space: nowrap;
186 word-wrap: normal;
187 }
188
189 &.columnDigits,
190 &.columnID {
191 text-align: right;
192 width: 1px;
193 white-space: nowrap;
194 word-wrap: normal;
195 }
196
197 &.columnIcon {
198 text-align: left;
199 width: 1px;
200 white-space: nowrap;
201 word-wrap: normal;
202 }
203
204 &.columnTitle {
205 font-weight: bold;
206 text-align: left;
207 }
208
209 &.columnText {
210 font-weight: normal;
211 text-align: left;
212 max-width: 20%;
213 }
214
215 &.columnDate {
f2b50825
AE
216 text-align: right;
217 width: 1px;
218 white-space: nowrap;
219 word-wrap: normal;
945f563e
AE
220
221 @extend .wcfFontSmall;
f2b50825
AE
222 }
223
224 &.columnURL, &.columnSmallText {
f2b50825 225 text-align: left;
945f563e
AE
226
227 @extend .wcfFontSmall;
228
f2b50825
AE
229 }
230 }
231
232 tr {
233 &:hover > td {
234 background-color: rgb(242, 242, 242);
235 }
236
237 &:not(:last-child) > td {
ed8c9052 238 border-bottom: 1px solid $wcfContentBorderInner;
f2b50825
AE
239 }
240 }
241
242 .statusDisplay {
243 float: right;
244
245 .statusIcons {
246 float: right;
247 margin-left: 5px;
248
249 li {
250 display: inline-block;
251 }
252 }
253 }
254}
255
256// TODO below
257/*.table {
258 tr {
259 &.jsMarked {
260 color: @wcfSelectedColor;
261
262 > td {
263 background-color: @wcfSelectedBackgroundColor !important;
264 }
265
266 a:not(.badge) {
267 color: @wcfSelectedColor;
268 }
269 }
270 }
271}*/