navbar.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @use './mixins' as *;
  2. // import components
  3. @use './nav/menu';
  4. .navbar-wrapper {
  5. position: relative;
  6. border-bottom: 1px solid var(--border-color);
  7. height: var(--header-height);
  8. padding: 0 12px 0 24px;
  9. background-image: radial-gradient(transparent 1px, var(--bg-color) 1px);
  10. background-size: 4px 4px;
  11. backdrop-filter: saturate(50%) blur(4px);
  12. -webkit-backdrop-filter: saturate(50%) blur(4px);
  13. top: 0;
  14. @include respond-to('md') {
  15. padding: 0 12px 0 32px;
  16. }
  17. @include respond-to('xlg') {
  18. padding: 0 32px;
  19. }
  20. .header-container {
  21. display: flex;
  22. justify-content: space-between;
  23. margin: 0 auto;
  24. .content {
  25. display: flex;
  26. justify-content: flex-end;
  27. align-items: center;
  28. flex-grow: 1;
  29. }
  30. @include respond-to('xxl') {
  31. max-width: calc(var(--vp-screen-max-width));
  32. }
  33. @include respond-to('max') {
  34. // 36 = 2 * 18 for each side.
  35. max-width: calc(var(--vp-screen-max-width));
  36. }
  37. }
  38. @include respond-to('md') {
  39. .content {
  40. padding-top: 1px;
  41. }
  42. }
  43. }
  44. .navbar {
  45. top: 0;
  46. left: 0;
  47. position: relative;
  48. z-index: var(--nav-z-index);
  49. @include respond-to('lg') {
  50. position: sticky;
  51. width: 100%;
  52. }
  53. }
  54. .menu + .appearance {
  55. margin-left: 8px;
  56. }
  57. .menu + .social-links {
  58. margin-left: 12px;
  59. }
  60. .appearance + .social-links {
  61. margin-left: 12px;
  62. }