Skip to content

Commit

Permalink
Replace inline style with internal
Browse files Browse the repository at this point in the history
Better would be in an actual stylesheet but as we generate these
dynamicly this is the best option for now. For the other one its minor
enough for the basic stylesheet.
  • Loading branch information
vmcj authored and Michael Vasseur committed Aug 30, 2023
1 parent 9f90961 commit 61c2234
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions webapp/public/style_domjudge.css
Original file line number Diff line number Diff line change
Expand Up @@ -630,3 +630,8 @@ blockquote {
padding-left: .5em;
color: darkgrey;
}

.category-best {
margin-right: 2em;
font-weight: normal;
}
4 changes: 2 additions & 2 deletions webapp/templates/partials/scoreboard_table.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<a {% if extra is not null %}{{ extra | raw }}{% endif %} {% if link is not null %}href="{{ link }}"{% endif %}>
<span class="forceWidth">
{% if usedCategories | length > 1 and scoreboard.bestInCategory(score.team, limitToTeamIds) %}
<span class="badge text-bg-warning" style="margin-right: 2em; font-weight: normal;">
<span class="badge text-bg-warning category-best">
{{ score.team.category.name }}
</span>
{% endif %}
Expand Down Expand Up @@ -330,7 +330,7 @@
</thead>
<tbody>
{% for category in scoreboard.categories | filter(category => usedCategories[category.categoryid] is defined) %}
<tr {% if category.color %}style="background: {{ category.color }};"{% endif %}>
<tr {% if category.color %}class="cl{{ category.color | replace({"#": "_"}) }}"{% endif %}>
<td>
{% set link = null %}
{% if jury %}
Expand Down

0 comments on commit 61c2234

Please sign in to comment.