Skip to content

Commit 0820959

Browse files
committed
Satus updated
1 parent cdd012c commit 0820959

2 files changed

Lines changed: 243 additions & 100 deletions

File tree

satus.css

Lines changed: 118 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,48 +1189,154 @@
11891189
transform: translate(16px, 2px);
11901190
}
11911191

1192+
/*--------------------------------------------------------------
1193+
>>> TABLE
1194+
--------------------------------------------------------------*/
1195+
11921196
.satus-table
11931197
{
1194-
display: flex;
1198+
font-size: .875rem;
1199+
1200+
position: relative;
1201+
11951202
overflow: hidden;
1196-
flex-direction: column;
11971203

11981204
box-sizing: border-box;
1199-
height: 100%;
12001205

1201-
border: 1px solid #e4e4e4;
1202-
border-radius: 4px;
1203-
background: var(--background-2);
1206+
border: 1px solid #ececec;
1207+
border-radius: 6px;
12041208
}
12051209

12061210
.satus-table__head
12071211
{
1208-
font-weight: 700;
1209-
1212+
position: absolute;
12101213
z-index: 1;
1214+
top: 0;
1215+
left: 0;
12111216

12121217
display: flex;
12131218

12141219
box-sizing: border-box;
1220+
width: 100%;
12151221
height: 48px;
1222+
padding: 0 8px;
12161223

1224+
background: #fff;
12171225
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;
12181233

1234+
opacity: .7;
1235+
1236+
flex-shrink: 0;
12191237
align-items: center;
12201238
}
12211239

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+
12221284
.satus-table__body
12231285
{
12241286
overflow: hidden;
12251287

1226-
flex: 1;
1288+
width: 100%;
1289+
height: 100%;
1290+
1291+
background: #fff;
12271292
}
12281293

1229-
.satus-table__body .satus-scrollbar__content > div
1294+
.satus-table table
12301295
{
1231-
display: flex;
1296+
width: 100%;
12321297

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;
12341340
}
12351341

12361342
/*--------------------------------------------------------------

0 commit comments

Comments
 (0)