From fcdbc45de7b463a13f117d36d1725c554de6d961 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Mon, 20 Feb 2023 12:49:05 -0500 Subject: [PATCH] Moved temporary global styles out of base view template and into custom.css file to be properly included to asset generation. --- powerdnsadmin/static/custom/css/custom.css | 14 +++++++++++++- powerdnsadmin/templates/base.html | 12 ------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/powerdnsadmin/static/custom/css/custom.css b/powerdnsadmin/static/custom/css/custom.css index 1cd3728..8b119ed 100644 --- a/powerdnsadmin/static/custom/css/custom.css +++ b/powerdnsadmin/static/custom/css/custom.css @@ -44,4 +44,16 @@ table td { .search-input { width: 100%; -} \ No newline at end of file +} + +.sidebar .image { padding-top: 0.7em; } +.sidebar .info { color: #fff; } +.sidebar .info p { margin: 0; } +.sidebar .info a { font-size: 0.8em; } + +/* Global Styles */ +table.records thead th, table.records tbody td { text-align: center; vertical-align: middle; } +table.records thead th:last-of-type { width: 50px; } +div.records > div.dataTables_wrapper > div.row:first-of-type { margin: 0 0.5em 0 0.5em; } +div.records > div.dataTables_wrapper > div.row:last-of-type { margin: 0.4em 0.5em 0.4em 0.5em; } +div.records > div.dataTables_wrapper table.dataTable { margin: 0 !important; } \ No newline at end of file diff --git a/powerdnsadmin/templates/base.html b/powerdnsadmin/templates/base.html index 83c6e33..c2dc239 100644 --- a/powerdnsadmin/templates/base.html +++ b/powerdnsadmin/templates/base.html @@ -18,18 +18,6 @@ {% if SETTING.get('custom_css') %} {% endif %} - {% block head_styles %}{% endblock %} {% endblock %}