header.module.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @use "@pythnetwork/component-library/theme";
  2. .header {
  3. position: sticky;
  4. top: 0;
  5. width: 100%;
  6. background-color: theme.color("background", "nav-blur");
  7. backdrop-filter: blur(32px);
  8. .content {
  9. height: 100%;
  10. justify-content: space-between;
  11. @include theme.row;
  12. @include theme.max-width;
  13. .leftMenu {
  14. flex: none;
  15. gap: theme.spacing(6);
  16. @include theme.row;
  17. .logoLink {
  18. padding: theme.spacing(3);
  19. margin: -#{theme.spacing(3)};
  20. color: theme.color("foreground");
  21. .logoWrapper {
  22. width: theme.spacing(9);
  23. height: theme.spacing(9);
  24. position: relative;
  25. .logo {
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. width: 100%;
  30. }
  31. }
  32. .logoLabel {
  33. @include theme.sr-only;
  34. }
  35. }
  36. .appName {
  37. font-size: theme.font-size("xl");
  38. font-weight: theme.font-weight("semibold");
  39. color: theme.color("heading");
  40. }
  41. }
  42. .rightMenu {
  43. flex: none;
  44. gap: theme.spacing(2);
  45. @include theme.row;
  46. margin-right: -#{theme.button-padding("sm", false)};
  47. .themeSwitch {
  48. margin-left: theme.spacing(1);
  49. }
  50. }
  51. @media screen and (min-width: theme.$max-width + (2 * (theme.spacing(9) + theme.spacing(8) + theme.spacing(7)))) {
  52. .leftMenu {
  53. margin-left: -#{theme.spacing(9) + theme.spacing(7)};
  54. .logoLink {
  55. margin-right: -#{theme.spacing(2)};
  56. }
  57. }
  58. .rightMenu {
  59. margin-right: -#{theme.spacing(9) + theme.spacing(7)};
  60. .themeSwitch {
  61. margin-left: theme.spacing(5);
  62. }
  63. }
  64. }
  65. }
  66. }