From 15320018f010094edf5329c79815936ec98e3f88 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 22 Oct 2021 14:06:16 +0800 Subject: [PATCH] Use shorthand for CSS properties --- src/webui/www/private/css/Layout.css | 12 ++++++------ src/webui/www/private/css/Tabs.css | 2 +- src/webui/www/private/css/dynamicTable.css | 4 +--- src/webui/www/private/css/style.css | 12 ++++++------ 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/webui/www/private/css/Layout.css b/src/webui/www/private/css/Layout.css index e231492dc..2337a1f35 100644 --- a/src/webui/www/private/css/Layout.css +++ b/src/webui/www/private/css/Layout.css @@ -51,7 +51,7 @@ body { background: url("../images/logo.gif") no-repeat; background-position: left 0; height: 32px; - padding: 7px 8px 6px 8px; + padding: 7px 8px 6px; } #desktopTitlebar h1.applicationTitle { @@ -69,7 +69,7 @@ body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; - padding: 7px 0 0 0; + padding: 7px 0 0; text-align: center; text-transform: uppercase; } @@ -128,7 +128,7 @@ body { #desktopNavbar ul li a { color: #333; font-weight: normal; - padding: 2px 10px 6px 10px; + padding: 2px 10px 6px; } #desktopNavbar ul li a:hover { @@ -239,7 +239,7 @@ li.divider { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; height: 24px; - padding: 6px 8px 0 8px; + padding: 6px 8px 0; } /* Panel Layout @@ -306,7 +306,7 @@ li.divider { height: 22px; margin: 0; overflow: hidden; - padding: 3px 8px 0 8px; + padding: 3px 8px 0; } .panel-collapse { @@ -406,7 +406,7 @@ div.toolbox.divider { #spinnerWrapper { background: url("../images/spinner-placeholder.gif") no-repeat; height: 16px; - margin: 4px 5px 0 5px; + margin: 4px 5px 0; width: 16px; } diff --git a/src/webui/www/private/css/Tabs.css b/src/webui/www/private/css/Tabs.css index 6626f8f41..34f80748f 100644 --- a/src/webui/www/private/css/Tabs.css +++ b/src/webui/www/private/css/Tabs.css @@ -37,7 +37,7 @@ Required by: background-position: left -35px; cursor: pointer; float: left; - margin: 0 0 5px 0; + margin: 0 0 5px; } .tab-menu li.selected { diff --git a/src/webui/www/private/css/dynamicTable.css b/src/webui/www/private/css/dynamicTable.css index 22337c29b..3b8921b71 100644 --- a/src/webui/www/private/css/dynamicTable.css +++ b/src/webui/www/private/css/dynamicTable.css @@ -51,9 +51,7 @@ tr.dynamicTableHeader { .dynamicTable th { background-color: #eee; - border-right-color: #ccc; - border-right-style: solid; - border-right-width: 1px; + border-right: 1px solid #ccc; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; diff --git a/src/webui/www/private/css/style.css b/src/webui/www/private/css/style.css index a67dfa0f1..6e7f40e95 100644 --- a/src/webui/www/private/css/style.css +++ b/src/webui/www/private/css/style.css @@ -42,7 +42,7 @@ h4 { font-size: 12px; font-weight: bold; margin: 0; - padding: 0 0 5px 0; + padding: 0 0 5px; } h2 { @@ -55,8 +55,8 @@ h2 { border-bottom: 1px solid #bbb; display: block; font-size: 12px; - margin: 0 0 8px 0; - padding: 6px 0 6px 0; + margin: 0 0 8px; + padding: 6px 0; } #error_div { @@ -82,7 +82,7 @@ a:hover { p { margin: 0; - padding: 0 0 9px 0; + padding: 0 0 9px; } /* List Elements */ @@ -97,7 +97,7 @@ dt { } dd { - padding: 0 0 9px 0; + padding: 0 0 9px; } /* Code */ @@ -109,7 +109,7 @@ pre { display: block; font-family: "Courier New", Courier, monospace; font-size: 11px; - margin: 0 0 10px 0; + margin: 0 0 10px; max-height: 250px; overflow: auto; padding: 10px;