From f13a546cb4d73ac0e1761025e15a3c35466ea00a Mon Sep 17 00:00:00 2001 From: cigamit Date: Sun, 30 Apr 2017 13:54:33 -0500 Subject: [PATCH] Updates to modern and slight adjustments to dark Required for div based forms and responsive UI --- include/themes/dark/main.css | 11 ++-- include/themes/modern/main.css | 91 ++++++++++++++++++++++++---------- 2 files changed, 73 insertions(+), 29 deletions(-) diff --git a/include/themes/dark/main.css b/include/themes/dark/main.css index 7f9ed6ec2c..8b682a2ebd 100644 --- a/include/themes/dark/main.css +++ b/include/themes/dark/main.css @@ -1263,6 +1263,10 @@ legend { .formSubCheckbox label { } +.formCheckbox { + vertical-align: -15%; +} + .formFieldName { display: inline-block; color: snow; @@ -1279,6 +1283,7 @@ legend { .formTooltip { display: inline-block; + padding-left: 4px; } .formHeader { @@ -1369,7 +1374,7 @@ legend { } .break { - height:6px; + height:8px; display:inline-block; } @@ -1421,7 +1426,7 @@ th.secondarySort { background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(187, 227, 154, 0.2) 0%, rgba(168, 199, 127, 0.2) 100%) repeat scroll 0 0; } -.tableHeader th { +.tableHeader th, .tableHeader td { color: snow; cursor: pointer; vertical-align:middle; @@ -1740,8 +1745,8 @@ div#gtabs { float:left !important; padding:5px; text-decoration:none; + font-size: 11px; vertical-align:bottom; - font-size: 12px; } .tabs a:hover, .maintabs a:hover { diff --git a/include/themes/modern/main.css b/include/themes/modern/main.css index f3c59b19d4..872b2b6237 100755 --- a/include/themes/modern/main.css +++ b/include/themes/modern/main.css @@ -102,6 +102,11 @@ input { max-width: 400px; } +#host_id_wrap { + line-height: 25px; + padding-left: 4px; +} + select { padding: 0.5em 0.5em 0.5em 0.5em; font-size: 12px; @@ -504,6 +509,10 @@ label { box-shadow: 0 0 1px rgba(0, 0, 0, 0.1); } +.odd td, .even td, .even-alternate td { + padding: 2px; +} + .even { background: none repeat scroll 0 0 #E5E5E5; border: none; @@ -1129,10 +1138,12 @@ legend { font-size: 11px; color: snow; font-weight: normal; - padding: 2px; + padding: 0px; + white-space: nowrap; } .cactiTable { + display: table; width: 100%; margin-left:auto; margin-right:auto; @@ -1223,23 +1234,52 @@ legend { .formColumn { float: left; display: table-column; + text-align: left; } .formColumnLeft { float: left; display: table-column; width: 30%; + text-align: left; } .formColumnRight { float: left; display: table-column; width: 70%; + text-align: left; } .formData { display: inline-block; float: left; + text-align: left; +} + +.formRadio { + line-height: 22px; +} + +.formSubCheckbox { + line-height: 20px; + float: left; +} + +.formSubCheckbox input { + margin: 0px; + vertical-align: -10%; +} + +.formSubCheckbox label { +} + +.formCheckboxLabel { + color: #444; +} + +.formCheckbox { + vertical-align: -15%; } .formFieldName { @@ -1286,11 +1326,15 @@ legend { width: 100%; } +.queryAdd, .templateAdd { + padding: 3px; +} + @media screen and (max-width: 640px) { .formRow { display: table; width: 100%; - line-height: 30px; + line-height: 35px; } .formColumn { @@ -1302,12 +1346,14 @@ legend { float: left; display: table-row; width: 100%; + text-align: left; } .formColumnRight { float: left; display: table-row; width: 100%; + text-align: left; } .formFieldName { @@ -1329,6 +1375,10 @@ legend { .queryAdd, .templateAdd, .navBar, #ping_results { display: none; } + + .ui-button-text-only .ui-button-text { + padding: 0.4em; + } } .graphItem { @@ -1341,6 +1391,7 @@ legend { .break { height:8px; + display:inline-block; } .next { @@ -1397,6 +1448,7 @@ th.secondarySort { text-align:left; font-size: 11px; font-weight:normal; + padding: 2px; } .tableHeader th div { @@ -1409,8 +1461,8 @@ th.secondarySort { color: snow; vertical-align: middle; text-align: left; + cursor:pointer; padding: 3px; - cursor: pointer; } .graphSubHeaderColumn { @@ -1455,9 +1507,8 @@ th.secondarySort { color: white; width: 100%; text-align:center; - display:inline-block; - margin-bottom: -3px; - height: 22px; + vertical-align: middle; + display: table; background: rgba(98,125,77,1); background: -moz-linear-gradient(top, rgba(98,125,77,1) 0%, rgba(31,59,8,1) 100%); background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(98,125,77,1)), color-stop(100%, rgba(31,59,8,1))); @@ -1473,41 +1524,32 @@ th.secondarySort { .navBarNavigationPrevious { text-align: left; - cursor: pointer; - font-weight: bold; - float: left; white-space: nowrap; display: block; width: 10%; - padding: 2px 0px; height: 20px; vertical-align: middle; } .navBarNavigationCenter { text-align: center; - display: block; - float: left; + display: table-cell; white-space: nowrap; width:80%; - padding: 2px 0px; height: 20px; margin-top: auto; } .navBarNavigationCenter span { vertical-align: middle; + display: table-cell; } .navBarNavigationNext { text-align:right; - cursor:pointer; - font-weight: bold; - float: right; white-space: nowrap; - display: block; + display: table-cell; width: 10%; - padding: 2px 0px; height: 20px; vertical-align: middle; @@ -1515,11 +1557,9 @@ th.secondarySort { .navBarNavigationNone { text-align: center; - display: block; - float: left; + display: table-cell; white-space: nowrap; width:100%; - padding: 2px 0px; height: 20px; margin-top: auto; } @@ -1694,6 +1734,7 @@ div#tabs { left: 5px; top: 5px; height: 30px; + width: 70%; } td#tabs { @@ -1948,9 +1989,6 @@ ul#nav { border: transparent; } -.ui-button-text-only .ui-button-text { - padding: 0.4em; -} div.preformatted { font-family: monospace; @@ -1959,8 +1997,8 @@ div.preformatted { ul.pagination { display: inline-block; - padding: 0; - margin: 0; + padding: 1px; + margin: 2px; vertical-align:middle; } @@ -1974,6 +2012,7 @@ ul.pagination li a { padding: 0px 2px 2px 2px; text-decoration: none; margin: 0px 1px; + vertical-align: -40%; } ul.pagination li span {