Header.module.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @import '../../../styles/mixins.scss';
  2. .header {
  3. height: var(--header-height);
  4. display: flex;
  5. align-items: center;
  6. justify-content: space-between;
  7. z-index: 20;
  8. padding: 0.7rem;
  9. box-shadow: 0px 1px 3px 1px rgb(0 0 0 / 10%);
  10. background-color: var(--theme-color-background-header);
  11. h1 {
  12. margin-top: unset;
  13. margin-bottom: unset;
  14. }
  15. @include screen(mobile) {
  16. --header-height: 3.85rem;
  17. }
  18. }
  19. .logoImage {
  20. padding: 0.2rem;
  21. display: none;
  22. @include screen(desktop) {
  23. display: block;
  24. }
  25. }
  26. .logo {
  27. display: flex;
  28. align-items: center;
  29. }
  30. .title {
  31. color: var(--theme-color-components-text-on-dark);
  32. font-family: var(--theme-text-display-font-family);
  33. margin-left: 0.5rem;
  34. margin-bottom: 0px;
  35. font-size: clamp(1rem, 4vw, 1.6rem);
  36. font-weight: 600;
  37. white-space: nowrap;
  38. text-overflow: ellipsis;
  39. // 6rem is an overapproximation of the width of
  40. // the user menu
  41. max-width: min(70vw, calc(100vw - 6rem));
  42. overflow: hidden;
  43. line-height: 1.4;
  44. }
  45. .skipLink {
  46. position: absolute;
  47. left: -10000px;
  48. top: auto;
  49. width: 1px;
  50. height: 1px;
  51. overflow: hidden;
  52. }
  53. .skipLink:focus {
  54. position: static;
  55. width: auto;
  56. height: auto;
  57. }
  58. .offlineTag {
  59. cursor: default;
  60. color: var(--theme-color-components-text-on-light);
  61. }