mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +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 %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user