]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix Dashboard layout, positioning and responsiveness
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Thu, 11 Jun 2020 02:21:24 +0000 (04:21 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 15 Jul 2020 07:24:51 +0000 (09:24 +0200)
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
apps/dashboard/src/App.vue

index 04c0a75969e9a468184bcbdddfba1dd903045f8e..88839a6a5a89612a4072336ad8419413ef2174d1 100644 (file)
@@ -86,37 +86,43 @@ export default {
 <style lang="scss" scoped>
        #app-dashboard {
                width: 100%;
-               padding-left: 50px;
-               padding-right: 50px;
        }
        h2 {
                text-align: center;
-               padding: 40px;
+               font-size: 32px;
+               line-height: 130%;
+               padding: 80px 16px 32px;
        }
 
        .panels {
                width: 100%;
                display: flex;
                justify-content: center;
+               flex-direction: row;
+               align-items: center;
+               flex-wrap: wrap;
        }
 
        .panel {
                width: 250px;
-               margin: 0 30px 30px 0;
+               margin: 16px;
 
-               &:first-child {
-                       margin-left: 30px;
-               }
-
-               h3 {
+               & > a {
                        position: sticky;
                        top: 50px;
-                       margin-top: 0;
-                       background-position: 10px 32px;
-                       padding: 30px 12px 12px 35px;
-                       background-color: var(--color-main-background);
-               }
+                       display: block;
+                       background: linear-gradient(var(--color-main-background-translucent), var(--color-main-background-translucent) 80%, rgba(255, 255, 255, 0));
+                       backdrop-filter: blur(4px);
 
+                       h3 {
+                               margin: 0;
+                               font-size: 20px;
+                               font-weight: bold;
+                               background-size: 32px;
+                               background-position: 10px 10px;
+                               padding: 16px 8px 16px 52px;
+                       }
+               }
        }
 
 </style>