2
0

_header.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. header {
  2. padding-top: 1em;
  3. padding-bottom: 1em;
  4. background-color: $color-header-bg;
  5. margin-bottom: 2em;
  6. color: $color-white;
  7. a {
  8. color: $color-white;
  9. }
  10. h1,
  11. h2 {
  12. margin: 0;
  13. color: $color-white;
  14. }
  15. h1 {
  16. padding: 0.2em 0;
  17. &.icon:before {
  18. width: 1em;
  19. display: none;
  20. margin-right: 0.4em;
  21. font-size: 1.5em;
  22. }
  23. }
  24. .col {
  25. float: left;
  26. margin-right: 2em;
  27. }
  28. .left {
  29. float: left;
  30. .hasform &:first-child {
  31. padding-bottom: 0.5em;
  32. float: none;
  33. }
  34. }
  35. .right {
  36. text-align: right;
  37. float: right;
  38. }
  39. // For case where content below header should merge with it
  40. &.merged {
  41. margin-bottom: 0;
  42. }
  43. &.tab-merged {
  44. padding-left: $desktop-nice-padding;
  45. padding-right: $desktop-nice-padding;
  46. .right:last-child {
  47. padding-right: 0;
  48. }
  49. }
  50. &.tab-merged,
  51. &.no-border {
  52. border: 0;
  53. @include media-breakpoint-down(xs) {
  54. // To all hamburger menu to be visible
  55. padding-left: 1.6em;
  56. padding-right: 1.6em;
  57. padding-top: 11px;
  58. .nice-padding {
  59. margin-left: -$desktop-nice-padding;
  60. }
  61. }
  62. }
  63. &.merged.no-border {
  64. padding-bottom: 0;
  65. }
  66. &.no-v-padding {
  67. padding-top: 0;
  68. padding-bottom: 0;
  69. }
  70. .button {
  71. background-color: $color-teal-darker;
  72. &:hover {
  73. background-color: $color-teal-dark;
  74. }
  75. }
  76. label {
  77. @include visuallyhidden();
  78. }
  79. input[type=text],
  80. select {
  81. border-width: 0;
  82. &:focus {
  83. background-color: $color-white;
  84. }
  85. }
  86. .error-message {
  87. color: inherit;
  88. }
  89. .fields {
  90. margin-top: -0.5em;
  91. li {
  92. padding-bottom: 0;
  93. }
  94. .field {
  95. padding: 0;
  96. }
  97. }
  98. .field-content {
  99. width: auto;
  100. padding: 0;
  101. }
  102. .last-updated {
  103. ul {
  104. padding: 0;
  105. }
  106. li {
  107. display: inline;
  108. margin-right: 2em;
  109. }
  110. .avatar.small {
  111. margin-left: 0;
  112. }
  113. a {
  114. font-weight: bold;
  115. }
  116. }
  117. }
  118. // Media for Windows High Contrast
  119. @media (forced-colors: $media-forced-colours) {
  120. header .field-content {
  121. border: 0.1em solid $system-color-link-text;
  122. }
  123. }
  124. @include media-breakpoint-up(sm) {
  125. header {
  126. padding-top: 1.5em;
  127. padding-bottom: 1.5em;
  128. .left {
  129. float: left;
  130. margin-right: 0;
  131. &:first-child {
  132. padding-bottom: 0;
  133. float: left;
  134. }
  135. }
  136. .second {
  137. clear: none;
  138. .right,
  139. .left {
  140. float: right;
  141. }
  142. }
  143. h1.icon:before {
  144. display: inline-block;
  145. }
  146. .col3 {
  147. @include column(3);
  148. }
  149. .col3.actionbutton {
  150. width: auto;
  151. }
  152. .col6 {
  153. @include column(6);
  154. }
  155. .col9 {
  156. @include column(9);
  157. }
  158. }
  159. }
  160. .header-title {
  161. @include media-breakpoint-down(xs) {
  162. padding-left: $mobile-nav-indent;
  163. }
  164. &-icon {
  165. @include svg-icon();
  166. margin-right: 0.5em;
  167. }
  168. }