mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-20 00:40:26 +00:00
Remove fomantic image module (#21145)
Remove this small, but unnecessary [module](https://fomantic-ui.com/elements/image.html) and use `img` selector over previous `.image`. Did a few tests, could not notice any visual regression. Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
fe73246cf9
commit
afdab9d8d4
16 changed files with 32 additions and 382 deletions
|
@ -692,12 +692,9 @@ a.ui.card:hover,
|
|||
border-color: var(--color-secondary);
|
||||
}
|
||||
|
||||
.ui.avatar.images .image,
|
||||
.ui.avatar.images img,
|
||||
.ui.avatar.images svg,
|
||||
.ui.avatar.image img,
|
||||
.ui.avatar.image svg,
|
||||
.ui.avatar.image,
|
||||
.ui.avatar img,
|
||||
.ui.avatar svg,
|
||||
.ui.avatar.img,
|
||||
.ui.cards > .card img.avatar,
|
||||
.ui.cards > .card .avatar img,
|
||||
.ui.card img.avatar,
|
||||
|
@ -758,10 +755,6 @@ a.ui.card:hover,
|
|||
padding-left: 0;
|
||||
}
|
||||
|
||||
.brand .ui.mini.image {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.top.menu a.item:hover,
|
||||
.top.menu .dropdown.item:hover,
|
||||
.top.menu .dropdown.item.active {
|
||||
|
@ -1686,7 +1679,7 @@ a.ui.label:hover {
|
|||
}
|
||||
}
|
||||
|
||||
.ui.avatar.image {
|
||||
.ui.avatar {
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
display: block;
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
padding-top: 25px;
|
||||
}
|
||||
|
||||
.ui.avatar.image {
|
||||
img.ui.avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
|
|
@ -846,8 +846,8 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
.avatar.image,
|
||||
.avatar.image img {
|
||||
img.avatar,
|
||||
.avatar img {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 0 .25rem;
|
||||
|
@ -908,8 +908,8 @@
|
|||
line-height: 34px; /* this must be same as .badge height, to avoid overflow */
|
||||
clear: both; // reset the "float right shabox", in the future, use flexbox instead
|
||||
|
||||
> .avatar.image,
|
||||
> .avatar.image img {
|
||||
> img.avatar,
|
||||
> .avatar img {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
|
@ -1125,7 +1125,7 @@
|
|||
margin-left: 36px;
|
||||
}
|
||||
|
||||
.avatar.image {
|
||||
img.avatar {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
|
@ -2497,7 +2497,7 @@
|
|||
#search-user-box {
|
||||
.results {
|
||||
.result {
|
||||
.image {
|
||||
img {
|
||||
float: left;
|
||||
margin-right: 8px;
|
||||
width: 2em;
|
||||
|
@ -3305,7 +3305,7 @@ td.blob-excerpt {
|
|||
display: flex;
|
||||
margin-bottom: auto;
|
||||
|
||||
img.avatar.image {
|
||||
img.avatar {
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
}
|
||||
|
|
|
@ -90,10 +90,10 @@
|
|||
float: none;
|
||||
margin: 0 .5rem 0 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
&.image {
|
||||
margin: 0 !important;
|
||||
}
|
||||
img.avatar {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.comment-content {
|
||||
|
|
|
@ -134,7 +134,7 @@
|
|||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
.author .ui.avatar.image {
|
||||
.author img.ui.avatar {
|
||||
width: auto;
|
||||
height: 18px;
|
||||
max-width: none;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue