strasbourg: sync style of file widget (#74711)
gitea/publik-base-theme/pipeline/pr-main This commit looks good Details
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-02-21 15:02:15 +01:00
parent 5c09ef9209
commit a1cd180638
1 changed files with 14 additions and 22 deletions

View File

@ -1004,22 +1004,6 @@ td.action-column a {
white-space: nowrap;
}
.fileinfo {
line-height: 1.5em;
}
div.fileinfo a.remove {
text-indent: 0;
background: none;
color: transparent;
}
div.fileinfo a.remove:before {
font-family: FontAwesome;
content: "\f057";
color: $button-background;
}
#content section h2 {
margin-top: 50px;
text-align: center;
@ -1331,7 +1315,6 @@ div.section.foldable {
.fileinfo {
line-height: 1.5em;
height: 100%;
}
div.fileinfo a.remove {
@ -1339,20 +1322,29 @@ div.fileinfo a.remove {
background: none;
color: transparent;
display: inline-block;
width: 16px;
text-indent: -10000px;
position: absolute;
top: 0;
right: 0;
width: 3rem;
height: 3rem;
&::before {
font-size: 150%;
font-family: FontAwesome;
content: "\f057"; // times-circle
color: $button-background;
@if ($button-background == $widget-background) {
color: $button-color;
} @else {
color: $button-background;
}
text-indent: 0;
position: absolute;
display: block;
top: 0;
right: 0;
width: 2rem;
height: 2rem;
line-height: 2rem;
width: 3rem;
height: 3rem;
line-height: 3rem;
text-align: center;
}
}