Skip to content

Commit dcb690a

Browse files
mpsijmmeisterT
authored andcommitted
#2537 Give flags a ring-shadow, to make the white parts visible
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.
1 parent 0219d8e commit dcb690a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

webapp/public/style_domjudge.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ del {
227227
right: 0;
228228
bottom: 0;
229229
}
230-
.scoreboard .scoreaf { white-space: nowrap; border: 0; text-align: center; }
230+
.scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; }
231231
.scoreboard .scoreaf img { vertical-align: middle; }
232232
.univ {
233233
font-size: 80%;
@@ -337,10 +337,11 @@ td.scorenc { border-color: silver; border-right: 0; }
337337
}
338338

339339
.countryflag {
340-
height: 30px;
341-
width: 40px;
342-
border-radius: 8px;
343-
padding: 2px;
340+
height: 1.5rem;
341+
width: 2rem;
342+
border-radius: .375rem;
343+
margin: .125rem;
344+
box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
344345
}
345346

346347
.select2 img.countryflag {

0 commit comments

Comments
 (0)