summaryrefslogtreecommitdiffstats
path: root/core/css/apps.scss
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-24 11:26:22 +0200
committerGitHub <noreply@github.com>2018-07-24 11:26:22 +0200
commitdfe6c1b7e2a179a0c7aee0f43a722bf1e3e3cf3d (patch)
treed7ba884d6d0814011ea6cd408bdb08991e8d4b39 /core/css/apps.scss
parent262cb04c3ab4f102af206e7757707b4a20a53f41 (diff)
parent84bc30200e2acab9e2967b47480f33500a6ebc49 (diff)
downloadnextcloud-server-dfe6c1b7e2a179a0c7aee0f43a722bf1e3e3cf3d.tar.gz
nextcloud-server-dfe6c1b7e2a179a0c7aee0f43a722bf1e3e3cf3d.zip
Merge pull request #10363 from nextcloud/structure-mobile-and-public-fixes
Structure mobile and public fixes
Diffstat (limited to 'core/css/apps.scss')
-rw-r--r--core/css/apps.scss28
1 files changed, 21 insertions, 7 deletions
diff --git a/core/css/apps.scss b/core/css/apps.scss
index 86f0e622405..f0c168eee71 100644
--- a/core/css/apps.scss
+++ b/core/css/apps.scss
@@ -74,13 +74,15 @@ kbd {
/* Navigation: folder like structure */
#app-navigation {
width: $navigation-width;
- position: sticky;
+ position: fixed;
top: $header-height;
left: 0;
- z-index: 1500;
+ z-index: 500;
overflow-y: auto;
overflow-x: hidden;
- height: calc(100vh - #{$header-height});
+ // Do not use vh because of mobile headers
+ // are included in the calculation
+ height: calc(100% - #{$header-height});
box-sizing: border-box;
background-color: var(--color-main-background);
-webkit-user-select: none;
@@ -170,6 +172,7 @@ kbd {
> ul {
opacity: 0;
max-height: 0;
+ overflow-y: hidden;
/* bezier override the hide/slow effect due to the 2000 max-height */
transition: max-height 1000ms cubic-bezier(0, 1, 0, 1),
opacity 250ms ease-in-out;
@@ -523,7 +526,7 @@ kbd {
.app-navigation-entry-deleted {
display: inline-flex;
padding-left: 44px;
- transform: translateX(250px);
+ transform: translateX(#{$navigation-width});
.app-navigation-entry-deleted-description {
position: relative;
white-space: nowrap;
@@ -580,12 +583,19 @@ kbd {
/* CONTENT --------------------------------------------------------- */
+#content-wrapper {
+ // everything not related to content but needs to be on the window
+ // goes here (popups, tooltips...)
+ position: relative;
+ min-height: 100%;
+ display: unset;
+}
#content {
- /* header height */
- padding-top: $header-height;
box-sizing: border-box;
position: relative;
display: flex;
+ margin-top: $header-height;
+ min-height: 100%;
}
/* APP-CONTENT AND WRAPPER ------------------------------------------ */
@@ -594,9 +604,13 @@ kbd {
z-index: 1000;
background-color: var(--color-main-background);
position: relative;
- min-height: calc(100vh - #{$header-height});
+ min-height: 100%;
flex-basis: 100vw;
overflow: auto;
+ /* margin if navigation element is here */
+ #app-navigation + & {
+ margin-left: $navigation-width;
+ }
/* no top border for first settings item */
> .section:first-child {
border-top: none;