networks: Make styling more specific to avoid interference

Tests performed:

- Visit networks page, observe that activate/de-activatge buttons have similar
width of 7em (as per inspector).

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-03-27 13:19:56 -07:00 committed by Veiko Aasa
parent 4a8425b111
commit a3218b2d79
No known key found for this signature in database
GPG Key ID: 478539CAE680674E
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@
</a> </a>
{% if connection.is_active %} {% if connection.is_active %}
<form class="form pull-right" method="post" <form class="form form-action pull-right" method="post"
action="{% url 'networks:deactivate' connection.uuid %}"> action="{% url 'networks:deactivate' connection.uuid %}">
{% csrf_token %} {% csrf_token %}
@ -40,7 +40,7 @@
{% trans "Deactivate" %}</button> {% trans "Deactivate" %}</button>
</form> </form>
{% else %} {% else %}
<form class="form pull-right" method="post" <form class="form form-action pull-right" method="post"
action="{% url 'networks:activate' connection.uuid %}"> action="{% url 'networks:activate' connection.uuid %}">
{% csrf_token %} {% csrf_token %}

View File

@ -29,11 +29,11 @@
margin: -2px 0; margin: -2px 0;
} }
.form.pull-right { .form-action.pull-right {
margin-right: 20px; margin-right: 20px;
} }
.form button { .form-action button {
width: 7em; width: 7em;
} }
</style> </style>