Show hidden screenshots in a dark-grayish style

This commit is contained in:
Christoph Haas 2021-03-21 22:05:22 +01:00
parent cc76ebcc28
commit 33240846b2
2 changed files with 5 additions and 0 deletions

View file

@ -604,6 +604,10 @@ a.black
border: 5px solid red; border: 5px solid red;
} }
.pkgcard.hidden {
background-color: gray;
}
.button { .button {
box-shadow: 0.1rem 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.5); box-shadow: 0.1rem 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.5);
} }

View file

@ -18,6 +18,7 @@
- @divclasses = %W(cell pkgcard) - @divclasses = %W(cell pkgcard)
- @divclasses << (screenshot.approved ? "approved" : "unapproved") - @divclasses << (screenshot.approved ? "approved" : "unapproved")
- @divclasses << 'highlight' if screenshot.id == @highlight_id - @divclasses << 'highlight' if screenshot.id == @highlight_id
- @divclasses << 'hidden' if screenshot.hidden
div class=(@divclasses.join(' ')) data-equalizer-watch=true div class=(@divclasses.join(' ')) data-equalizer-watch=true
/ TODO: try to alight the buttons to the bottom / TODO: try to alight the buttons to the bottom
= render(partial: 'admin_buttons', locals: {screenshot: screenshot}) = render(partial: 'admin_buttons', locals: {screenshot: screenshot})