mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-05 12:19:31 +00:00
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:
parent
eeac81b8c6
commit
4b9b683a16
28
plinth/modules/firewall/static/firewall.css
Normal file
28
plinth/modules/firewall/static/firewall.css
Normal 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;
|
||||||
|
}
|
||||||
@ -4,30 +4,11 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<style type="text/css">
|
<link type="text/css" rel="stylesheet"
|
||||||
a.dropdown-toggle {
|
href="{% static 'firewall/firewall.css' %}"/>
|
||||||
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>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
@ -78,8 +59,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% for port in component.ports_details %}
|
{% for port in component.ports_details %}
|
||||||
<tr class="collapse {{component.component_id}}"
|
<tr class="collapse {{component.component_id}}">
|
||||||
style="background-color: #f9f9f9" >
|
|
||||||
<td class='service'>
|
<td class='service'>
|
||||||
<span class="service-name">{{ port.name }}</span>:
|
<span class="service-name">{{ port.name }}</span>:
|
||||||
{% for port_number, protocol in port.details %}
|
{% for port_number, protocol in port.details %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user