Skip to content

Commit

Permalink
DOMjudge#2537 Give flags a ring-shadow, to make the white parts visible
Browse files Browse the repository at this point in the history
The idea of the ring-shadow is based on https://tailwindcss.com/docs/ring-width
Using this instead of a border, to make sure the ratio of the flag is maintained,
because CSS counts a border as part of the width/height.
  • Loading branch information
mpsijm committed May 29, 2024
1 parent 0219d8e commit 2e149cb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions webapp/public/style_domjudge.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ del {
right: 0;
bottom: 0;
}
.scoreboard .scoreaf { white-space: nowrap; border: 0; text-align: center; }
.scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; }
.scoreboard .scoreaf img { vertical-align: middle; }
.univ {
font-size: 80%;
Expand Down Expand Up @@ -337,10 +337,11 @@ td.scorenc { border-color: silver; border-right: 0; }
}

.countryflag {
height: 30px;
width: 40px;
border-radius: 8px;
padding: 2px;
height: 1.5rem;
width: 2rem;
border-radius: .375rem;
margin: .125rem;
box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}

.select2 img.countryflag {
Expand Down

0 comments on commit 2e149cb

Please sign in to comment.