Skip to content

Commit

Permalink
Remove inline style text-align: center in favor of class
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Mar 19, 2024
1 parent 7d3cb9c commit 065bf2e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions tcms/static/style/patternfly_override.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ a.disabled {
.kiwi-text-align-left {
text-align: left;
}

.kiwi-text-align-center {
text-align: center;
}
6 changes: 3 additions & 3 deletions tcms/telemetry/templates/telemetry/testing/breakdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="container-fluid container-cards-pf">
{% include "telemetry/include/filters.html" %}

<div class="col-md-3" style="text-align: center">
<div class="col-md-3 kiwi-text-align-center">
<div id="total-count"></div>
<label> {% trans "Total" %} </label>

Expand All @@ -30,12 +30,12 @@
</div>
</div>

<div class="col-md-4" style="text-align: center">
<div class="col-md-4 kiwi-text-align-center">
<strong>{% trans "Priorities" %}</strong>
<div id="priorities-chart"></div>
</div>

<div class="col-md-4" style="text-align: center">
<div class="col-md-4 kiwi-text-align-center">
<strong>{% trans "Categories" %}</strong>
<div id="categories-chart"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% include "telemetry/include/filters.html" %}

<div class="passing-rate-summary">
<div class="kiwi-font-weight-bold" style="text-align: center; padding: 0.5rem">{% trans "TOTAL" %}: <span class="total"></span></div>
<div class="kiwi-font-weight-bold kiwi-text-align-center">{% trans "TOTAL" %}: <span class="total"></span></div>
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar"></div>
<div class="progress-bar progress-bar-remaining" role="progressbar" style="color: black"></div>
Expand Down
4 changes: 1 addition & 3 deletions tcms/testruns/templates/testruns/get.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ <h2 class="card-pf-title kiwi-text-align-left" style="overflow: hidden;">
{% endfor %}
</ul>

<div style="text-align: center">
<label>{% trans "TOTAL" %}</label> - <a href="{% url 'testruns-get' object.pk %}" class="total-execution-count"></a>
</div>
<label>{% trans "TOTAL" %}</label> - <a href="{% url 'testruns-get' object.pk %}" class="total-execution-count"></a>
</div>
<div class="kiwi-text-align-left">
{{ object.notes|markdown2html }}
Expand Down

0 comments on commit 065bf2e

Please sign in to comment.