mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-27 09:42:48 +00:00
feat: avoid layout shift in init
This commit is contained in:
parent
b4b66b8172
commit
9162321c3c
|
@ -36,6 +36,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Avoid layout shift by assigning the grid property early on
|
||||
* Because display:block does not take into account of bottom margin of the content
|
||||
*/
|
||||
.tabber__section {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide all other panels
|
||||
* All panels are stacked vertically initially
|
||||
|
|
Loading…
Reference in a new issue