mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-09-23 10:19:43 +00:00
perf(core): ⚡️ add CSS containment to suitable elements
This commit is contained in:
parent
75ab097ba1
commit
ca41b42aec
|
@ -69,6 +69,7 @@
|
|||
min-width: 16rem;
|
||||
max-height: var( --header-card-maxheight );
|
||||
margin: var( --space-xs );
|
||||
contain: content;
|
||||
overscroll-behavior: contain;
|
||||
user-select: none;
|
||||
.citizen-card();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
width: var( --header-button-size );
|
||||
height: var( --header-button-size );
|
||||
border-radius: var( --border-radius--small );
|
||||
contain: strict;
|
||||
place-items: center;
|
||||
|
||||
// Used in checkbox hack
|
||||
|
@ -32,6 +33,7 @@
|
|||
display: block;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
// Pure CSS icons
|
||||
|
@ -39,6 +41,7 @@
|
|||
overflow: hidden; // Sometimes CSS animation can clip
|
||||
width: var( --header-icon-size );
|
||||
height: var( --header-icon-size );
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
&Icon,
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
display: block;
|
||||
width: var( --size-icon );
|
||||
height: var( --size-icon );
|
||||
contain: strict;
|
||||
|
||||
&:before {
|
||||
display: block;
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
.citizen-body {
|
||||
grid-area: content;
|
||||
contain: content;
|
||||
}
|
||||
|
||||
a.image {
|
||||
|
|
|
@ -16,6 +16,7 @@ figure[ typeof~='mw:File/Frame' ] {
|
|||
|
||||
> img {
|
||||
transition: @transition-transform;
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
// Add affordance to replace magnify icon
|
||||
|
|
Loading…
Reference in a new issue