1
0

dashboard.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*!
  2. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. #header {
  6. background: transparent !important;
  7. --color-header: rgba(24, 24, 24, 1);
  8. #body-user.dashboard--dark & {
  9. --color-header: rgba(255, 255, 255, 1);
  10. }
  11. // Show gradient below navigation for visibility of icons when scrolled
  12. &:before {
  13. content: ' ';
  14. display: block;
  15. position: absolute;
  16. background-image: linear-gradient(180deg, var(--color-header) 0%, transparent 100%);
  17. width: 100%;
  18. height: 70px;
  19. top: 0;
  20. margin-top: -70px;
  21. transition: margin-top var(--animation-slow);
  22. #body-user.dashboard--scrolled & {
  23. margin-top: 0;
  24. }
  25. }
  26. // Use flat color instead of gradient for high contrast theme
  27. #body-user.theme--highcontrast & {
  28. background-color: var(--color-header) !important;
  29. &:before {
  30. display: none;
  31. }
  32. }
  33. }
  34. // Move content up so it scrolls below navigation
  35. #content {
  36. padding-top: 0 !important;
  37. }
  38. // Hide triangle indicators from navigation since they are out of place without the header bar
  39. #appmenu li a.active::before,
  40. #appmenu li:hover a::before,
  41. #appmenu li:hover a.active::before,
  42. #appmenu li a:focus::before {
  43. display: none !important;
  44. }