|
1189 | 1189 | transform: translate(16px, 2px); |
1190 | 1190 | } |
1191 | 1191 |
|
| 1192 | +/*-------------------------------------------------------------- |
| 1193 | +>>> TABLE |
| 1194 | +--------------------------------------------------------------*/ |
| 1195 | + |
1192 | 1196 | .satus-table |
1193 | 1197 | { |
1194 | | - display: flex; |
| 1198 | + font-size: .875rem; |
| 1199 | + |
| 1200 | + position: relative; |
| 1201 | + |
1195 | 1202 | overflow: hidden; |
1196 | | - flex-direction: column; |
1197 | 1203 |
|
1198 | 1204 | box-sizing: border-box; |
1199 | | - height: 100%; |
1200 | 1205 |
|
1201 | | - border: 1px solid #e4e4e4; |
1202 | | - border-radius: 4px; |
1203 | | - background: var(--background-2); |
| 1206 | + border: 1px solid #ececec; |
| 1207 | + border-radius: 6px; |
1204 | 1208 | } |
1205 | 1209 |
|
1206 | 1210 | .satus-table__head |
1207 | 1211 | { |
1208 | | - font-weight: 700; |
1209 | | - |
| 1212 | + position: absolute; |
1210 | 1213 | z-index: 1; |
| 1214 | + top: 0; |
| 1215 | + left: 0; |
1211 | 1216 |
|
1212 | 1217 | display: flex; |
1213 | 1218 |
|
1214 | 1219 | box-sizing: border-box; |
| 1220 | + width: 100%; |
1215 | 1221 | height: 48px; |
| 1222 | + padding: 0 8px; |
1216 | 1223 |
|
| 1224 | + background: #fff; |
1217 | 1225 | box-shadow: 0 2px 4px rgba(0, 0, 0, .1); |
| 1226 | +} |
| 1227 | + |
| 1228 | +.satus-table__head > div |
| 1229 | +{ |
| 1230 | + font-weight: 600; |
| 1231 | + |
| 1232 | + display: inline-flex; |
1218 | 1233 |
|
| 1234 | + opacity: .7; |
| 1235 | + |
| 1236 | + flex-shrink: 0; |
1219 | 1237 | align-items: center; |
1220 | 1238 | } |
1221 | 1239 |
|
| 1240 | +.satus-table__head > div:hover |
| 1241 | +{ |
| 1242 | + cursor: pointer; |
| 1243 | + |
| 1244 | + opacity: 1; |
| 1245 | +} |
| 1246 | + |
| 1247 | +.satus-table__head > div > span |
| 1248 | +{ |
| 1249 | + position: relative; |
| 1250 | +} |
| 1251 | + |
| 1252 | +.satus-table__head > div[data-sorting=asc] > span::after |
| 1253 | +{ |
| 1254 | + position: absolute; |
| 1255 | + top: calc(50% - 2px); |
| 1256 | + right: -14px; |
| 1257 | + |
| 1258 | + width: 0; |
| 1259 | + height: 0; |
| 1260 | + |
| 1261 | + content: ''; |
| 1262 | + |
| 1263 | + border-right: 4px solid transparent; |
| 1264 | + border-bottom: 5px solid currentColor; |
| 1265 | + border-left: 4px solid transparent; |
| 1266 | +} |
| 1267 | + |
| 1268 | +.satus-table__head > div[data-sorting=desc] > span::after |
| 1269 | +{ |
| 1270 | + position: absolute; |
| 1271 | + top: calc(50% - 2px); |
| 1272 | + right: -13px; |
| 1273 | + |
| 1274 | + width: 0; |
| 1275 | + height: 0; |
| 1276 | + |
| 1277 | + content: ''; |
| 1278 | + |
| 1279 | + border-top: 5px solid currentColor; |
| 1280 | + border-right: 4px solid transparent; |
| 1281 | + border-left: 4px solid transparent; |
| 1282 | +} |
| 1283 | + |
1222 | 1284 | .satus-table__body |
1223 | 1285 | { |
1224 | 1286 | overflow: hidden; |
1225 | 1287 |
|
1226 | | - flex: 1; |
| 1288 | + width: 100%; |
| 1289 | + height: 100%; |
| 1290 | + |
| 1291 | + background: #fff; |
1227 | 1292 | } |
1228 | 1293 |
|
1229 | | -.satus-table__body .satus-scrollbar__content > div |
| 1294 | +.satus-table table |
1230 | 1295 | { |
1231 | | - display: flex; |
| 1296 | + width: 100%; |
1232 | 1297 |
|
1233 | | - align-items: center; |
| 1298 | + border-spacing: 0; |
| 1299 | + border-collapse: collapse; |
| 1300 | +} |
| 1301 | + |
| 1302 | +.satus-table thead |
| 1303 | +{ |
| 1304 | + font-weight: 700; |
| 1305 | + |
| 1306 | + visibility: hidden; |
| 1307 | +} |
| 1308 | + |
| 1309 | +.satus-table thead th |
| 1310 | +{ |
| 1311 | + height: 48px; |
| 1312 | +} |
| 1313 | + |
| 1314 | +.satus-table th |
| 1315 | +{ |
| 1316 | + padding: 0 0 0 8px; |
| 1317 | +} |
| 1318 | + |
| 1319 | +.satus-table th:last-child |
| 1320 | +{ |
| 1321 | + padding: 0 8px; |
| 1322 | +} |
| 1323 | + |
| 1324 | +.satus-table td |
| 1325 | +{ |
| 1326 | + padding: 4px 0 4px 8px; |
| 1327 | +} |
| 1328 | + |
| 1329 | +.satus-table td:last-child |
| 1330 | +{ |
| 1331 | + padding: 4px 8px; |
| 1332 | +} |
| 1333 | + |
| 1334 | +.satus-table td > span |
| 1335 | +{ |
| 1336 | + display: block; |
| 1337 | + overflow: hidden; |
| 1338 | + |
| 1339 | + max-width: 100px; |
1234 | 1340 | } |
1235 | 1341 |
|
1236 | 1342 | /*-------------------------------------------------------------- |
|
0 commit comments