Fix sticky headers so they don't hide behind header bar on desktop
This commit is contained in:
parent
576aa22880
commit
b7b96833d0
1 changed files with 17 additions and 5 deletions
|
@ -465,11 +465,23 @@ dl.glossary dt {
|
||||||
/* -- proposals page -------------------------------------------------------- */
|
/* -- proposals page -------------------------------------------------------- */
|
||||||
|
|
||||||
#tables-of-tracked-proposals h2 {
|
#tables-of-tracked-proposals h2 {
|
||||||
margin-top: 7px;
|
padding-left: 10px;
|
||||||
padding-left: 10px;
|
position: -webkit-sticky;
|
||||||
position: -webkit-sticky;
|
position: sticky;
|
||||||
position: sticky;
|
}
|
||||||
top: 0px;
|
|
||||||
|
/* Move sticky headers below header bar on desktop */
|
||||||
|
@media all and (min-width:980px) {
|
||||||
|
#tables-of-tracked-proposals h2 {
|
||||||
|
top: 52px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sticky headers stick to the top on mobile */
|
||||||
|
@media all and (min-width:0px) and (max-width: 980px) {
|
||||||
|
#tables-of-tracked-proposals h2 {
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -- code displays --------------------------------------------------------- */
|
/* -- code displays --------------------------------------------------------- */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue