From c43d970f092951b9b5bff2cf1a957a64129333ff Mon Sep 17 00:00:00 2001 From: Martin van Wingerden Date: Tue, 16 Jan 2018 11:16:35 +0100 Subject: [PATCH] Fixed missing spacing and removed unused duplicate CSS (#279) Signed-off-by: Martin van Wingerden --- .../org.openhab.ui.dashboard/web/css/main.css | 4 + bundles/org.openhab.ui.dashboard/web/main.css | 108 ------------------ 2 files changed, 4 insertions(+), 108 deletions(-) delete mode 100644 bundles/org.openhab.ui.dashboard/web/main.css diff --git a/bundles/org.openhab.ui.dashboard/web/css/main.css b/bundles/org.openhab.ui.dashboard/web/css/main.css index 85dfd9109..b96eca903 100644 --- a/bundles/org.openhab.ui.dashboard/web/css/main.css +++ b/bundles/org.openhab.ui.dashboard/web/css/main.css @@ -56,6 +56,10 @@ section { margin-bottom: 70px; } +a.link { + display: block; +} + .link { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15); margin-bottom: 20px; diff --git a/bundles/org.openhab.ui.dashboard/web/main.css b/bundles/org.openhab.ui.dashboard/web/main.css deleted file mode 100644 index 85dfd9109..000000000 --- a/bundles/org.openhab.ui.dashboard/web/main.css +++ /dev/null @@ -1,108 +0,0 @@ -body { - background-color: #F9F9F9; -} - -body, h1, h2, h3 { - font-family: "Roboto", Helvetica, Arial, sans-serif; - font-weight: 300; -} - -.container { - -} - -.line { - position: relative; -} - -.line .decorator { - position: absolute; - left: 0px; - width: 50px; - border-top: 1px solid #F60; -} - -header { - background: #F60; - height: 80px; - line-height: 80px; - text-align: center; - position: fixed; - top: 0; - width: 100%; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15); - z-index: 1; -} - -header .container { - position: relative; - padding: 0 20px; -} - -header img { - position: absolute; - left: 10px; - top: 15px; -} - -@media (max-width: 768px) { - header h3 { - display: none; - } -} - -section { - margin-top: 90px; - margin-bottom: 70px; -} - -.link { - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15); - margin-bottom: 20px; - text-align: center; - cursor: pointer; -} - -.link .body { - position:relative; - height: 150px; - background-color: white; - background-size: cover; - background-repeat: no-repeat; -} - -.link .body .overlay { - position: relative; - top: 0px; - width: 100%; - height: 100%; - background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); - opacity: 1; - font-size: 50px; - color: white; - line-height: 150px; -} - -.link .body .overlay:hover { - background: linear-gradient(135deg, rgba(255,102,0,1) 0%,rgba(255,102,0,0.5) 50%,rgba(30,87,153,0) 100%); -} - -.link .footer { - height: 50px; - background-color: #F60; - color: white; - line-height: 50px; - text-transform: uppercase; -} - -footer { - background: #333; - color: #fff; - height: 50px; - line-height: 50px; - text-align: center; - position: fixed; - bottom: 0; - width: 100%; - box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.15); -} \ No newline at end of file