firewall: Split CSS styling into separate file

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-12-17 16:48:54 -08:00 committed by Veiko Aasa
parent eeac81b8c6
commit 4b9b683a16
No known key found for this signature in database
GPG Key ID: 478539CAE680674E
2 changed files with 32 additions and 24 deletions

View File

@ -0,0 +1,28 @@
/*
# SPDX-License-Identifier: AGPL-3.0-or-later
*/
a.dropdown-toggle {
color: black;
}
a.dropdown-toggle:hover {
text-decoration: none;
}
td.service {
padding-left: 2rem;
}
.service-name {
font-style: italic;
}
.app-status,
.service-status {
width: 11rem;
}
tr.collapse {
background-color: #f9f9f9;
}

View File

@ -4,30 +4,11 @@
{% endcomment %}
{% load i18n %}
{% load static %}
{% block page_head %}
<style type="text/css">
a.dropdown-toggle {
color: black;
}
a.dropdown-toggle:hover {
text-decoration: none;
}
td.service {
padding-left: 2rem;
}
.service-name {
font-style: italic;
}
.app-status,
.service-status {
width: 11rem;
}
</style>
<link type="text/css" rel="stylesheet"
href="{% static 'firewall/firewall.css' %}"/>
{% endblock %}
{% block configuration %}
@ -78,8 +59,7 @@
</td>
</tr>
{% for port in component.ports_details %}
<tr class="collapse {{component.component_id}}"
style="background-color: #f9f9f9" >
<tr class="collapse {{component.component_id}}">
<td class='service'>
<span class="service-name">{{ port.name }}</span>:
{% for port_number, protocol in port.details %}