Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b3fd937

Browse files
authored
Use shorthand "inset" property (#10825)
1 parent 5d0b513 commit b3fd937

10 files changed

+12
-48
lines changed

res/css/structures/_CompatibilityPage.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
.mx_CompatibilityPage_box {
88
position: absolute;
9-
top: 0;
10-
bottom: 0;
11-
left: 0;
12-
right: 0;
9+
inset: 0;
1310
margin: auto;
1411
width: 500px;
1512
height: 300px;

res/css/structures/_TabbedView.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ limitations under the License.
2121
padding: 0 0 0 16px;
2222
display: flex;
2323
flex-direction: column;
24-
top: 0;
25-
bottom: 0;
26-
left: 0;
27-
right: 0;
24+
inset: 0;
2825
margin-top: 8px;
2926
}
3027

res/css/views/dialogs/_PollCreateDialog.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ limitations under the License.
1717
.mx_PollCreateDialog {
1818
.mx_PollCreateDialog_busy {
1919
position: absolute;
20-
left: 0px;
21-
right: 0px;
22-
top: 0px;
23-
bottom: 0px;
20+
inset: 0;
2421
background-color: rgba($background, 0.6);
2522
z-index: 1;
2623
}

res/css/views/elements/_AccessibleButton.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,7 @@ limitations under the License.
186186
content: "";
187187
display: block;
188188
position: absolute;
189-
top: 0;
190-
bottom: 0;
191-
left: 0;
192-
right: 0;
189+
inset: 0;
193190
background-color: #ffffff;
194191
mask-repeat: no-repeat;
195192
mask-position: center;

res/css/views/elements/_InviteReason.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ limitations under the License.
2525
.mx_InviteReason_view {
2626
display: none;
2727
position: absolute;
28-
top: 0;
29-
bottom: 0;
30-
left: 0;
31-
right: 0;
28+
inset: 0;
3229
justify-content: center;
3330
align-items: center;
3431
cursor: pointer;

res/css/views/messages/_MImageBody.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,7 @@ $timeline-image-border-radius: 8px;
9292

9393
.mx_HiddenImagePlaceholder {
9494
position: absolute;
95-
left: 0;
96-
top: 0;
97-
bottom: 0;
98-
right: 0;
95+
inset: 0;
9996

10097
/* To center the text in the middle of the frame */
10198
display: flex;

res/css/views/rooms/_E2EIcon.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ limitations under the License.
3030
content: "";
3131
display: block;
3232
position: absolute;
33-
top: 0;
34-
bottom: 0;
35-
left: 0;
36-
right: 0;
33+
inset: 0;
3734
mask-repeat: no-repeat;
3835
mask-position: center;
3936
mask-size: contain;

res/css/views/rooms/_EventTile.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,10 +836,7 @@ $left-gutter: 64px;
836836
content: "";
837837
display: block;
838838
position: absolute;
839-
top: 0;
840-
bottom: 0;
841-
left: 0;
842-
right: 0;
839+
inset: 0;
843840
mask-repeat: no-repeat;
844841
mask-position: center;
845842
mask-size: contain;

res/css/views/rooms/_JumpToBottomButton.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ limitations under the License.
6464
.mx_JumpToBottomButton_scrollDown::before {
6565
content: "";
6666
position: absolute;
67-
top: 0;
68-
bottom: 0;
69-
left: 0;
70-
right: 0;
67+
inset: 0;
7168
mask-image: url("$(res)/img/element-icons/message/chevron-up.svg");
7269
mask-repeat: no-repeat;
7370
mask-size: 20px;

res/css/views/settings/_AvatarSetting.pcss

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ limitations under the License.
2626

2727
/* position to place the hover bg over the entire thing */
2828
position: absolute;
29-
top: 0;
30-
bottom: 0;
31-
left: 0;
32-
right: 0;
29+
inset: 0;
3330

3431
pointer-events: none; /* let the pointer fall through the underlying thing */
3532

@@ -45,10 +42,7 @@ limitations under the License.
4542
.mx_AvatarSetting_hoverBg {
4643
/* absolute position to lazily fill the entire container */
4744
position: absolute;
48-
top: 0;
49-
bottom: 0;
50-
left: 0;
51-
right: 0;
45+
inset: 0;
5246

5347
opacity: 0.5;
5448
background-color: $quinary-content;
@@ -98,10 +92,7 @@ limitations under the License.
9892
mask-position: center;
9993
content: "";
10094
position: absolute;
101-
top: 0;
102-
bottom: 0;
103-
left: 0;
104-
right: 0;
95+
inset: 0;
10596
}
10697

10798
.mx_AvatarSetting_uploadButton {

0 commit comments

Comments
 (0)