Spaces:
Running
Running
File size: 942 Bytes
50e8e86 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
.table-section {
text-align: left;
}
.table-section__container {
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
max-width: 100%;
overflow-x: auto;
position: relative;
}
table {
width: 100%;
border-collapse: collapse;
min-width: 600px;
table-layout: fixed;
}
th,
td {
padding: 10px;
padding-left: 30px;
text-align: left;
border: 1px solid #ddd;
background-color: white;
}
td:first-child,
th:first-child {
padding: 10px;
text-align: center;
position: sticky;
left: 0;
z-index: 10;
background-color: #f9f9f9;
box-shadow: 2px 0 2px -1px rgba(0, 0, 0, 0.1);
width: fit-content;
}
th:first-child {
position: sticky;
left: 0;
z-index: 11;
background-color: #f2f2f2;
}
tr:hover > td {
background-color: #f2f2f2;
}
@media (max-width: 600px) {
.table-container {
font-size: 13px;
}
th,
td {
padding: 6px;
}
td:first-child,
th:first-child {
width: fit-content;
}
}
|