scss: adapt file widget icons color if button background is white (#41179)

This commit is contained in:
Frédéric Péters 2020-03-30 21:42:45 +02:00
parent d7d03f3b4c
commit 8ca0ecda14
1 changed files with 10 additions and 2 deletions

View File

@ -454,7 +454,11 @@ div.fileinfo a.remove {
&::before {
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;
@ -553,7 +557,11 @@ div.file-upload-widget {
position: absolute;
left: calc(50% + 10px);
top: 30px;
color: $button-background;
@if ($button-background == $widget-background) {
color: $button-color;
} @else {
color: $button-background;
}
}
&.upload-done::after {
content: "\f05d"; // check-circle-o