dashboard.scss 1.1 KB

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