perf(core): ️ add CSS containment to suitable elements

This commit is contained in:
alistair3149 2022-12-06 15:29:49 -05:00
parent 75ab097ba1
commit ca41b42aec
No known key found for this signature in database
5 changed files with 7 additions and 0 deletions

View file

@ -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();

View file

@ -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,

View file

@ -17,6 +17,7 @@
display: block;
width: var( --size-icon );
height: var( --size-icon );
contain: strict;
&:before {
display: block;

View file

@ -37,6 +37,7 @@
.citizen-body {
grid-area: content;
contain: content;
}
a.image {

View file

@ -16,6 +16,7 @@ figure[ typeof~='mw:File/Frame' ] {
> img {
transition: @transition-transform;
contain: strict;
}
// Add affordance to replace magnify icon