Spaces:
Running
Running
.custom-dataframe { | |
width: 100% ; | |
overflow-x: auto ; | |
} | |
.custom-dataframe table { | |
width: auto ; | |
min-width: 100% ; | |
font-size: 14px ; | |
} | |
.custom-dataframe thead th { | |
padding: 4px 8px ; | |
text-align: center ; | |
vertical-align: middle ; | |
white-space: nowrap ; | |
overflow: visible ; | |
font-size: 12px ; | |
font-weight: bold ; | |
line-height: 1.2 ; | |
} | |
.custom-dataframe tbody td { | |
padding: 4px 8px ; | |
text-align: right ; | |
vertical-align: middle ; | |
white-space: nowrap ; | |
overflow: visible ; | |
line-height: 1.2 ; | |
} | |
.custom-dataframe tbody td:first-child { | |
text-align: left ; | |
} | |
/* Adjust the sort indicator position */ | |
.custom-dataframe thead th::after { | |
font-size: 12px ; | |
line-height: 1 ; | |
margin-left: 4px ; | |
} | |
/* Style for global result columns */ | |
.custom-dataframe thead th:nth-child(-n+4), | |
.custom-dataframe tbody td:nth-child(-n+4) { | |
background-color: #f0f8ff ; /* Light blue background */ | |
} | |
/* Style for dimension-specific result columns */ | |
.custom-dataframe thead th:nth-child(n+5), | |
.custom-dataframe tbody td:nth-child(n+5) { | |
background-color: #f0fff0 ; /* Light green background */ | |
} | |
/* Alternating row colors for better readability */ | |
.custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+4) { | |
background-color: #e6f3ff ; /* Slightly darker light blue */ | |
} | |
.custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) { | |
background-color: #e6ffe6 ; /* Slightly darker light green */ | |
} | |
/* Dark mode specific styles */ | |
@media (prefers-color-scheme: dark) { | |
.custom-dataframe { | |
color: var(--body-text-color); | |
} | |
.custom-dataframe table { | |
background-color: var(--background-fill-primary); | |
} | |
.custom-dataframe thead th { | |
background-color: var(--background-fill-secondary); | |
color: var(--body-text-color); | |
} | |
.custom-dataframe tbody td { | |
color: var(--body-text-color); | |
} | |
/* Style for global result columns in dark mode */ | |
.custom-dataframe thead th:nth-child(-n+4), | |
.custom-dataframe tbody td:nth-child(-n+4) { | |
background-color: rgba(0, 100, 200, 0.1); | |
} | |
/* Style for dimension-specific result columns in dark mode */ | |
.custom-dataframe thead th:nth-child(n+5), | |
.custom-dataframe tbody td:nth-child(n+5) { | |
background-color: rgba(0, 150, 0, 0.1); | |
} | |
/* Hover effect for better row distinction in dark mode */ | |
.custom-dataframe tbody tr:hover td { | |
background-color: rgba(255, 255, 255, 0.05); | |
} | |
/* Alternating row colors for better readability in dark mode */ | |
.custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+4) { | |
background-color: rgba(0, 100, 200, 0.15); | |
} | |
.custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) { | |
background-color: rgba(0, 150, 0, 0.15); | |
} | |
} | |