Fix sticky headers

This commit is contained in:
Claude Brisson
2024-02-17 19:52:26 +01:00
parent 9ff354873d
commit cdd35dc126

View File

@@ -63,7 +63,6 @@
#players-list { #players-list {
max-width: 95vw; max-width: 95vw;
overflow-x: auto;
} }
#player { #player {
@@ -195,16 +194,17 @@
max-width: max(30vw, 15em); max-width: max(30vw, 15em);
border: solid 2px darkgray; border: solid 2px darkgray;
border-radius: 5px; border-radius: 5px;
padding: 1em 0.5em; padding: 0 0.2em;
&:before { &:before {
position: absolute; position: sticky;
background-color: white;
width: 100%;
content: attr(title); content: attr(title);
top: -0.5em; top: 0;
left: 50%;
transform: translate(-50%, 0px);
white-space: nowrap; white-space: nowrap;
font-size: smaller; font-size: smaller;
font-weight: bold; font-weight: bold;
z-index: 2;
} }
.listitem { .listitem {
display: flex; display: flex;
@@ -340,7 +340,6 @@
} }
#standings-container { #standings-container {
max-width: 95vw; max-width: 95vw;
overflow-x: auto;
} }
.ui.steps { .ui.steps {