Skip to content

Commit 3c2406a

Browse files
authored
Use CSS inset shorthand (#30939)
Use [inset](https://developer.mozilla.org/en-US/docs/Web/CSS/inset) shorthand instead of longhands. There may be more cases but these ones I was able to definitely identify.
1 parent 40de54e commit 3c2406a

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

web_src/css/helpers.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ Gitea's private styles use `g-` prefix.
2020

2121
.g-table-auto-ellipsis td.auto-ellipsis span {
2222
position: absolute;
23-
left: 0;
24-
right: 0;
25-
top: 0;
26-
bottom: 0;
23+
inset: 0;
2724
padding: inherit;
2825
white-space: nowrap;
2926
overflow: hidden;

web_src/css/markup/content.css

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

205205
.markup input[type="checkbox"]::after {
206206
position: absolute;
207-
left: 0;
208-
top: 0;
209-
bottom: 0;
210-
right: 0;
207+
inset: 0;
211208
pointer-events: none;
212209
background: var(--color-text);
213210
mask-size: cover;

web_src/css/modules/dimmer.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
.ui.dimmer {
44
position: fixed;
55
display: none;
6-
top: 0;
7-
left: 0;
8-
right: 0;
9-
bottom: 0;
6+
inset: 0;
107
background: var(--color-overlay-backdrop);
118
opacity: 0;
129
z-index: 1000;

0 commit comments

Comments
 (0)