Skip to content

Commit

Permalink
Replace inline style float:right with CSS class
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Mar 26, 2024
1 parent b383ab7 commit 717a299
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions tcms/bugs/templates/bugs/get.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ <h2 class="card-pf-title">
<div class="form-group">
<div>
{% if not object.status %}
<button type="submit" name="action" value="reopen" class="btn btn-warning btn-lg" style="float:right">{% trans "Reopen" %}</button>
<button type="submit" name="action" value="reopen" class="btn btn-warning btn-lg kiwi-float-right">{% trans "Reopen" %}</button>
{% else %}
<button type="submit" name="action" value="comment" class="btn btn-default btn-lg">{% trans "Save" %}</button>
<button type="submit" name="action" value="close" class="btn btn-danger btn-lg" style="float:right">
<button type="submit" name="action" value="close" class="btn btn-danger btn-lg kiwi-float-right">
{% trans "Close" %}
</button>
{% endif %}
Expand Down
4 changes: 4 additions & 0 deletions tcms/static/style/patternfly_override.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,7 @@ a.disabled {
.kiwi-text-align-center {
text-align: center;
}

.kiwi-float-right {
float: right;
}
10 changes: 5 additions & 5 deletions tcms/templates/include/properties_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ <h2 class="card-pf-title">
{% trans "Parameters" %}
{% endif %}

<span class="fa fa-exclamation-triangle help-tooltip"
style="float:right; color: #ec7a08;"
<span class="fa fa-exclamation-triangle help-tooltip kiwi-float-right"
style="color: #ec7a08;"
data-toggle="tooltip"
data-placement="left"
title="{% trans 'This is a tech-preview feature!' %}">
Expand All @@ -30,8 +30,8 @@ <h4 class="panel-title">

{% if hide_delete_button %}
{% else %}
<a href="#" class="js-remove-property no-before" title="{% trans 'Delete' %}"
style="float:right" data-property-name="">
<a href="#" class="js-remove-property no-before kiwi-float-right" title="{% trans 'Delete' %}"
data-property-name="">
<span class="pficon-error-circle-o hidden-print"></span>
</a>
{% endif %}
Expand Down Expand Up @@ -67,7 +67,7 @@ <h4 class="panel-title">
style="width: 80%; display: inline"
maxlength="255"
placeholder="{% trans 'name=value' %}">
<a href="#" class="js-add-property-value" title="{% trans 'Add' %}" style="float:right">
<a href="#" class="js-add-property-value kiwi-float-right" title="{% trans 'Add' %}">
<span class="fa fa-plus hidden-print"></span>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions tcms/testplans/templates/testplans/get.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ <h1 class="col-md-12" style="margin-top: 0">
{{ object.text|markdown2html }}
</div>

<a id="testplan-text-collapse-btn" class="hidden"
style="float: right" title="{% trans 'Show more' %}"
<a id="testplan-text-collapse-btn" class="hidden kiwi-float-right"
title="{% trans 'Show more' %}"
data-toggle="collapse" href="#testplan-text">
<span class="fa fa-angle-double-down"></span>
</a>
Expand Down
4 changes: 2 additions & 2 deletions tcms/testruns/templates/testruns/get.html
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ <h5><span class="test-executions-count"></span> {% trans 'records' %}</h5>
<span class="fa fa-info-circle hidden-print"></span>
</a>
{% if perms.linkreference.delete_linkreference %}
<a href="#" data-link-id="" style="float:right"
class="js-remove-linkreference hidden-print"
<a href="#" data-link-id=""
class="js-remove-linkreference hidden-print kiwi-float-right"
title="{% trans 'Delete' %}">
<span class="pficon-error-circle-o hidden-print"></span>
</a>
Expand Down

0 comments on commit 717a299

Please sign in to comment.