mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-22 18:21:39 +01:00
make date header sticky with css
this has the limitation that it needs to have a fixed with and an opaque background, but that's better than not making it sticky for now.
This commit is contained in:
parent
c538f5dbb1
commit
85a06876cd
@ -424,9 +424,20 @@ only loads when the top comes into view*/
|
||||
}
|
||||
|
||||
.DateHeader {
|
||||
color: var(--light-text-color);
|
||||
font-weight: bold;
|
||||
padding: 12px 4px;
|
||||
text-align: center;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
position: sticky;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
.DateHeader time {
|
||||
margin: 0 auto;
|
||||
padding: 12px 4px;
|
||||
width: 250px;
|
||||
padding: 12px;
|
||||
display: block;
|
||||
color: var(--light-text-color);
|
||||
background-color: var(--background-color-primary);
|
||||
border-radius: 8px;
|
||||
text-align: center;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user