diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-17 00:00:46 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-09-01 14:15:36 +0200 |
commit | 2a4fd29c1a8f6a35f79fd9f3dd95a1ab93265dc3 (patch) | |
tree | ad60e3e4a692fe28508cb3f800ee8bad67597e53 /core/css | |
parent | 2020c153037649b72fc33118f26c9ecea7dcf709 (diff) | |
download | nextcloud-server-2a4fd29c1a8f6a35f79fd9f3dd95a1ab93265dc3.tar.gz nextcloud-server-2a4fd29c1a8f6a35f79fd9f3dd95a1ab93265dc3.zip |
Proof of concept: Redesign app-content
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/css')
-rw-r--r-- | core/css/apps.scss | 45 | ||||
-rw-r--r-- | core/css/header.scss | 4 |
2 files changed, 27 insertions, 22 deletions
diff --git a/core/css/apps.scss b/core/css/apps.scss index 5d62a956aa5..ecf119f893b 100644 --- a/core/css/apps.scss +++ b/core/css/apps.scss @@ -19,6 +19,12 @@ @use 'sass:math'; @import 'functions'; +body { + background: url('/apps/dashboard/img/kamil-porembinski-clouds.jpg'); + background-size: contain; + position: fixed; +} + /* BASE STYLING ------------------------------------------------------------ */ // no h1 allowed since h1 = logo h2 { @@ -82,26 +88,20 @@ kbd { /* Navigation: folder like structure */ #app-navigation:not(.vue) { width: variables.$navigation-width; - position: fixed; - top: variables.$header-height; - left: 0; z-index: 500; - overflow-y: auto; + overflow-y: scroll; overflow-x: hidden; - // Do not use vh because of mobile headers - // are included in the calculation - height: calc(100% - #{variables.$header-height}); - box-sizing: border-box; background-color: var(--color-main-background); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-right: 1px solid var(--color-border); display: flex; flex-direction: column; flex-grow: 0; flex-shrink: 0; + background-color: rgba(255, 255, 255, 0.8); + backdrop-filter: blur(10px); /* 'New' button */ .app-navigation-new { @@ -135,6 +135,13 @@ kbd { flex-wrap: wrap; order: 1; flex-shrink: 0; + margin-left: 8px; + margin-right: 8px; + margin-top: 3px; + margin-bottom: 3px; + width: calc(100% - 16px); + overflow: hidden; + border-radius: var(--border-radius-pill); /* Pinned-to-bottom entries */ &.pinned { @@ -163,7 +170,6 @@ kbd { } } a:focus-visible { - border-radius: var(--border-radius); box-shadow: var(--color-primary) inset 0 0 0 2px; outline: none; } @@ -256,7 +262,6 @@ kbd { > li, > li > ul > li { position: relative; - width: 100%; box-sizing: border-box; /* hide icons if loading */ &.icon-loading-small { @@ -607,11 +612,16 @@ kbd { /* CONTENT --------------------------------------------------------- */ #content { box-sizing: border-box; - position: relative; - display: flex; + position: static; // padding is included in height - padding-top: variables.$header-height; min-height: 100%; + margin: 8px; + margin-top: 50px; + display: flex; + height: calc(100vh - 50px - 8px); + border-radius: var(--border-radius-large); + box-sizing: content-box; + overflow-y: scroll; } /* APP-CONTENT AND WRAPPER ------------------------------------------ */ @@ -627,13 +637,10 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width - #app-content { z-index: 1000; background-color: var(--color-main-background); - position: relative; flex-basis: 100vw; min-height: 100%; + overflow-y: scroll; /* margin if navigation element is here */ - #app-navigation:not(.hidden) + & { - margin-left: variables.$navigation-width; - } /* no top border for first settings item */ > .section:first-child { border-top: none; @@ -676,6 +683,7 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width - overflow-y: auto; overflow-x: hidden; z-index: 1500; + opacity: 0.7px; height: calc(100vh - #{variables.$header-height}); background: var(--color-main-background); border-left: 1px solid var(--color-border); @@ -1034,6 +1042,7 @@ $outter-margin: math.div($popoveritem-height - $popovericon-size, 2); box-shadow: 0 0 0 2px var(--color-primary-element); } &.active { + border-radius: var(--border-radius-pill); background-color: var(--color-primary-light); } /* prevent .action class to break the design */ diff --git a/core/css/header.scss b/core/css/header.scss index 8ab0b019437..d4d7ce6ea18 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -37,8 +37,6 @@ width: 100%; z-index: 2000; height: variables.$header-height; - background-color: var(--color-primary); - background-image: var(--gradient-primary-background); box-sizing: border-box; justify-content: space-between; } @@ -169,8 +167,6 @@ left: 12px; top: 1px; bottom: 1px; - // Invert non-custom logo if primary is too bright - filter: var(--image-logoheader-custom, var(--primary-invert-if-bright)) } .header-appname-container { |