Skip to content

Commit

Permalink
Center delete checkbox using CSS instead of HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed Oct 15, 2024
1 parent 546210e commit 81d632a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions python/nav/web/sass/nav/my_account.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
@import "../navsettings";

#navigation-preferences {
#navigation-preferences {
.asteriskField {
display:none;
}

.link-delete label{
color:$alert-color;
}
}

.row {
display: flex;
}

.row .link-delete {
align-self: center;
}
}
1 change: 0 additions & 1 deletion python/nav/web/templates/webfront/_navbar_link_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</div>
{% elif field.name == 'DELETE' and navbar_formset.can_delete %}
<div class="columns link-delete medium-2">
<label>&nbsp;</label>
{% include 'custom_crispy_templates/horizontal_checkbox.html' %}
</div>
{% elif form.render_unmentioned_fields %}
Expand Down

0 comments on commit 81d632a

Please sign in to comment.