1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

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.

Signed-off-by: proton <proton_ab@tuta.io>
This commit is contained in:
silverwind 2024-05-11 16:28:56 +02:00 committed by proton
parent 286cb4cde8
commit 584f36f0a1
2 changed files with 2 additions and 8 deletions

View file

@ -21,10 +21,7 @@ Gitea's private styles use `g-` prefix.
.g-table-auto-ellipsis td.auto-ellipsis span {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
inset: 0;
padding: inherit;
white-space: nowrap;
overflow: hidden;

View file

@ -204,10 +204,7 @@
.markup input[type="checkbox"]::after {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
inset: 0;
pointer-events: none;
background: var(--color-text);
mask-size: cover;