Skip to content

Commit

Permalink
Properly size thumbnail images with nonexistent/unavailable sources
Browse files Browse the repository at this point in the history
Adds some CSS to ensure that thumbnail images with bad sources are correctly sized
Resolves ComputerScienceHouse#80
  • Loading branch information
adamhb123 committed Aug 9, 2021
1 parent 48bed50 commit aa769a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gallery/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,23 @@ h2 {
transition: 0.3s box-shadow;
}

.album-wrapper > a {
display: inline-block;
position: relative;
width: 100%;
}

.album {
position: absolute;
transform: rotate(5deg);
display: block;
width: 100%;
box-shadow: 0 0 10px rgba(0,0,0,0.3);
border: 5px solid white;
top: 0;
bottom: 0;
left: 0;
right: 0;
}

.album img {
Expand Down

0 comments on commit aa769a6

Please sign in to comment.