Fixing minor visual inconsistencies in the GUI settings and clusters views.
Change-Id: I8cb0af13de693e855f3ea2ce0a91717356bc5eca
diff --git a/web/gui/src/main/webapp/app/view/cluster/cluster-theme.css b/web/gui/src/main/webapp/app/view/cluster/cluster-theme.css
new file mode 100644
index 0000000..b908721
--- /dev/null
+++ b/web/gui/src/main/webapp/app/view/cluster/cluster-theme.css
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2016-present Open Networking Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ ONOS GUI -- Cluster View (theme) -- CSS file
+ */
+
+.light #cluster-details-panel .bottom th {
+ background-color: #e5e5e6;
+}
+
+.light #cluster-details-panel .bottom tr:nth-child(odd) {
+ background-color: #fbfbfb;
+}
+.light #cluster-details-panel .bottom tr:nth-child(even) {
+ background-color: #f4f4f4;
+}
+
diff --git a/web/gui/src/main/webapp/app/view/cluster/cluster.css b/web/gui/src/main/webapp/app/view/cluster/cluster.css
index 67a6349..1a93224 100644
--- a/web/gui/src/main/webapp/app/view/cluster/cluster.css
+++ b/web/gui/src/main/webapp/app/view/cluster/cluster.css
@@ -65,3 +65,18 @@
text-align: right;
padding-right: 6px;
}
+
+#cluster-details-panel .bottom table {
+ border-spacing: 0;
+}
+
+#cluster-details-panel .bottom th {
+ letter-spacing: 0.02em;
+}
+
+#cluster-details-panel .bottom th,
+#cluster-details-panel .bottom td {
+ padding: 6px 12px;
+ text-align: center;
+ white-space: nowrap;
+}
\ No newline at end of file
diff --git a/web/gui/src/main/webapp/app/view/settings/settings.css b/web/gui/src/main/webapp/app/view/settings/settings.css
index d98948f..d57df80 100644
--- a/web/gui/src/main/webapp/app/view/settings/settings.css
+++ b/web/gui/src/main/webapp/app/view/settings/settings.css
@@ -38,8 +38,8 @@
#settings-details-panel .close-btn {
position: absolute;
- right: 26px;
- top: 26px;
+ right: 12px;
+ top: 12px;
cursor: pointer;
}
diff --git a/web/gui/src/main/webapp/app/view/settings/settings.js b/web/gui/src/main/webapp/app/view/settings/settings.js
index 23ed49a..caca00c 100644
--- a/web/gui/src/main/webapp/app/view/settings/settings.js
+++ b/web/gui/src/main/webapp/app/view/settings/settings.js
@@ -68,7 +68,7 @@
}
function addCloseBtn(div) {
- is.loadEmbeddedIcon(div, 'close', 26);
+ is.loadEmbeddedIcon(div, 'close', 20);
div.on('click', closePanel);
}