Use shorthand "inset" property (#10825)

This commit is contained in:
Suguru Hirahara 2023-05-09 10:02:12 +00:00 committed by GitHub
parent 5d0b5131f2
commit b3fd9377d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 48 deletions

View file

@ -26,10 +26,7 @@ limitations under the License.
/* position to place the hover bg over the entire thing */
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
inset: 0;
pointer-events: none; /* let the pointer fall through the underlying thing */
@ -45,10 +42,7 @@ limitations under the License.
.mx_AvatarSetting_hoverBg {
/* absolute position to lazily fill the entire container */
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
inset: 0;
opacity: 0.5;
background-color: $quinary-content;
@ -98,10 +92,7 @@ limitations under the License.
mask-position: center;
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
inset: 0;
}
.mx_AvatarSetting_uploadButton {