Skip to content

Commit

Permalink
Reformat legend items
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Oct 6, 2024
1 parent 587e357 commit 5af485a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions django/static/base.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.nowrap {
white-space: nowrap;
}

a:link, a:visited, a:active, a:hover {
color: #3633fb;
text-decoration: underline;
Expand Down
10 changes: 5 additions & 5 deletions django/stats/static/stats.css
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ div.squad-members-appendix .legend-item {
vertical-align: middle;
margin-left: 5mm;
position: relative;
width: 70mm;
height: 3.5em;
width: 85mm;
height: 3.1em;
margin-top: 2mm;
margin-bottom: 2mm;
}
Expand All @@ -314,7 +314,7 @@ div.squad-members-appendix .legend-item .badge {
left: 0;
top: 0;
border-right: 1px solid #ccc;
padding-right: 2mm;
padding-right: 3mm;
height: 100%;
background-size: 85%;
background-repeat: no-repeat;
Expand All @@ -326,15 +326,15 @@ div.squad-members-appendix .legend-item .legend-item-label {
vertical-align: middle;
font-size: 100%;
position: absolute;
left: 10mm;
left: 12mm;
white-space: nowrap;
}

div.squad-members-appendix .legend-item .legend-item-description {
display: block;
font-size: 77%;
position: absolute;
left: 10mm;
left: 12mm;
top: 1.8em;
}

Expand Down
2 changes: 1 addition & 1 deletion django/stats/templates/stats/squads.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<div class="legend-item">
<div style="background-image: url('{% static 'badges' %}/peach.png');" class="badge"></div>
<div class="legend-item-label">Peach Price</div>
<div class="legend-item-description">Be the red lantern in your team, with a substantial deficit in ADR.</div>
<div class="legend-item-description">Be the red lantern of your team with <span class="nowrap">K/D &leq;0.5</span>, <span class="nowrap">ADR &leq;50</span>, and a substantial deficit in ADR.</div>
</div>

</div>
Expand Down

0 comments on commit 5af485a

Please sign in to comment.