Spaces:
Running
Running
| .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; | |
| } | |
| } | |