Skip to content

Commit

Permalink
Merge pull request #22392 from nextcloud/bugfix/noid/dashboard-loadin…
Browse files Browse the repository at this point in the history
…g-til-moutned

Dashboard polishing
  • Loading branch information
rullzer committed Aug 26, 2020
2 parents 75f4b80 + e4df8b6 commit 4298442
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 254 deletions.
40 changes: 34 additions & 6 deletions apps/dashboard/css/dashboard.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
// Show Dashboard background image beneath header
#body-user #header {
background-size: cover !important;
background-position: center 50% !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
#header {
background: transparent !important;
--color-header: rgba(24, 24, 24, 1);

#body-user.dashboard--dark & {
--color-header: rgba(255, 255, 255, 1);
}

// Show gradient below navigation for visibility of icons when scrolled
&:before {
content: ' ';
display: block;
position: absolute;
background-image: linear-gradient(180deg, var(--color-header) 0%, transparent 100%);
width: 100%;
height: 70px;
top: 0;
margin-top: -70px;
transition: margin-top var(--animation-slow);

#body-user.dashboard--scrolled & {
margin-top: 0;
}
}

// Use flat color instead of gradient for high contrast theme
#body-user.theme--highcontrast & {
background-color: var(--color-header) !important;

&:before {
display: none;
}
}
}

// Move content up so it scrolls below navigation
#content {
padding-top: 0 !important;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/js/dashboard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/dashboard/js/dashboard.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 4298442

Please sign in to comment.