]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/assets/app.scss
Octoprint service (#324) (#560)
[github/bastienwirtz/homer.git] / src / assets / app.scss
index ab067e6941f586d185dd13c45a1f18642ed94abd..4ce417a9064345ff3380949850e8a802683c75f3 100644 (file)
@@ -1,8 +1,8 @@
 @charset "utf-8";
 
 @import "./webfonts/webfonts.scss";
-
-@import "bulma";
+@import "../../node_modules/bulma/bulma";
+@import "./components/status.scss";
 
 // Themes import
 @import "./themes/sui.scss";
   text-overflow: ellipsis;
 }
 
-html {
+html, body, body #app-mount, body #app {
   height: 100%;
+  background-color: var(--background);
 }
 
 body {
   font-family: "Raleway", sans-serif;
-  height: 100%;
 
   #app {
+    height: auto;
     min-height: 100%;
-    background-color: var(--background);
+    background-image: var(--background-image);
+    background-size: cover;
+    background-position: center;
     color: var(--text);
     transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
 
     a {
+      color: var(--link);
       &:hover {
         color: var(--link-hover);
       }
@@ -100,10 +104,14 @@ body {
 
     .dashboard-title {
       padding: 6px 0 0 80px;
+
+      &.no-logo {
+        padding-left: 0;
+      }
     }
 
     .first-line {
-      height: 100px;
+      min-height: 100px;
       vertical-align: center;
       background-color: var(--highlight-primary);
 
@@ -118,7 +126,7 @@ body {
       }
 
       .container {
-        height: 80px;
+        min-height: 80px;
         padding: 10px 0;
       }
 
@@ -137,8 +145,7 @@ body {
         }
       }
     }
-    .navbar,
-    .navbar-menu {
+    .navbar {
       background-color: var(--highlight-secondary);
 
       a {
@@ -150,6 +157,9 @@ body {
           background-color: var(--highlight-hover);
         }
       }
+       .navbar-menu {
+      background-color: inherit;
+      }
     }
     .navbar-end {
       text-align: right;
@@ -157,8 +167,7 @@ body {
   }
 
   #main-section {
-    margin-bottom: 2rem;
-    padding: 0;
+    padding: 0 0 2.5rem 0;
 
     h2 {
       padding-bottom: 0px;
@@ -167,6 +176,7 @@ body {
 
     .title {
       font-size: 1.1em;
+      line-height: 1.2em;
       @include ellipsis();
     }
 
@@ -193,6 +203,11 @@ body {
     }
   }
 
+  .media.no-subtitle {
+    display: flex;
+    align-items: center;
+  }
+
   .media-content {
     overflow: hidden;
     text-overflow: inherit;
@@ -202,7 +217,7 @@ body {
     color: var(--highlight-secondary);
     background-color: var(--highlight-secondary);
     position: absolute;
-    top: 1rem;
+    bottom: 1rem;
     right: -0.2rem;
     width: 3px;
     overflow: hidden;
@@ -215,10 +230,10 @@ body {
   }
 
   .card {
-    border-radius: 5px;
     border: none;
     box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
     transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
+    overflow: visible;
 
     a {
       outline: none;
@@ -250,11 +265,13 @@ body {
     }
 
     .column div:first-of-type .card {
-      border-radius: 5px 5px 0 0;
+      border-top-left-radius: 0.25rem;
+      border-top-right-radius: 0.25rem;
     }
 
     .column div:last-child .card {
-      border-radius: 0 0 5px 5px;
+      border-bottom-left-radius: 0.25rem;
+      border-bottom-right-radius: 0.25rem;
     }
   }
 
@@ -272,7 +289,7 @@ body {
 
   .no-footer {
     #main-section {
-      margin-bottom: 0;
+      padding-bottom: 0;
     }
 
     .footer {
@@ -335,3 +352,7 @@ body {
     }
   }
 }
+
+.group-logo {
+  float: left;
+}