2
0

_header.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. @use 'sass:math';
  2. @use 'sass:color';
  3. @use '../tools' as *;
  4. @use '../settings' as *;
  5. .w-header {
  6. @apply w-text-text-label;
  7. margin-bottom: theme('spacing.8');
  8. h1,
  9. h2 {
  10. @apply w-text-text-label;
  11. margin: 0;
  12. }
  13. h1,
  14. .w-header__title {
  15. @apply w-h1;
  16. position: relative;
  17. }
  18. .w-header__glyph {
  19. position: absolute;
  20. inset-inline-start: calc(0 - theme('spacing.11'));
  21. vertical-align: text-top;
  22. &.icon {
  23. top: 0.125em;
  24. max-width: 1em;
  25. max-height: 1em;
  26. }
  27. }
  28. .w-header__subtitle {
  29. margin-inline-start: theme('spacing[1.5]');
  30. font-weight: theme('fontWeight.normal');
  31. }
  32. // Give padding to the rows inside of headers so that nested breadcrumbs aren't padded by their parent header el.
  33. // Use w-header--with-padding for headers that don't contain .row elements.
  34. &.w-header--with-padding,
  35. > .row {
  36. padding-top: theme('spacing.2');
  37. padding-bottom: theme('spacing.[2.5]');
  38. padding-inline-start: 110px;
  39. padding-inline-end: theme('spacing.5');
  40. }
  41. &.w-header--merged .w-breadcrumbs {
  42. padding-inline-start: $mobile-nav-indent;
  43. }
  44. .col {
  45. float: inline-start;
  46. margin-inline-end: 2em;
  47. }
  48. .left {
  49. float: inline-start;
  50. display: flex;
  51. align-items: center;
  52. flex-wrap: wrap;
  53. }
  54. .right {
  55. display: flex;
  56. gap: theme('spacing[2.5]');
  57. text-align: end;
  58. float: inline-end;
  59. }
  60. // For case where content below header should merge with it
  61. &.w-header--merged {
  62. margin-bottom: 0;
  63. padding-bottom: theme('spacing.1');
  64. }
  65. &.w-header--no-border {
  66. border: 0;
  67. }
  68. &.w-header--merged.w-header--no-border {
  69. padding-bottom: 0;
  70. }
  71. .error-message {
  72. color: inherit;
  73. }
  74. .last-updated {
  75. ul {
  76. padding: 0;
  77. }
  78. li {
  79. display: inline;
  80. margin-inline-end: 2em;
  81. }
  82. a {
  83. font-weight: theme('fontWeight.bold');
  84. }
  85. }
  86. }
  87. @include media-breakpoint-up(sm) {
  88. .w-header {
  89. .row {
  90. padding-inline-start: $desktop-nice-padding;
  91. padding-inline-end: $desktop-nice-padding;
  92. padding-top: theme('spacing.10');
  93. }
  94. &.w-header--merged .w-breadcrumbs {
  95. padding-inline-start: 0;
  96. }
  97. .left {
  98. float: inline-start;
  99. margin-inline-end: 0;
  100. &:first-child {
  101. padding-bottom: 0;
  102. float: inline-start;
  103. }
  104. }
  105. .second {
  106. clear: none;
  107. .right,
  108. .left {
  109. float: inline-end;
  110. }
  111. }
  112. .col3 {
  113. @include column(3);
  114. }
  115. .col3.actionbutton {
  116. width: auto;
  117. }
  118. .col6 {
  119. @include column(6);
  120. }
  121. .col9 {
  122. @include column(9);
  123. }
  124. }
  125. }
  126. .w-slim-header {
  127. @include more-contrast() {
  128. border-color: theme('colors.border-furniture-more-contrast');
  129. }
  130. &__search-form {
  131. @apply w-mx-2 w-flex w-items-center w-gap-2;
  132. }
  133. .w-field__wrapper:not(.w-drilldown .w-field__wrapper) {
  134. @apply w-mb-0;
  135. .w-field__input {
  136. @apply w-mt-0;
  137. > input,
  138. > select {
  139. @apply w-text-16;
  140. min-height: theme('spacing.10');
  141. }
  142. }
  143. }
  144. }