You are here

header-navigation.css in Drupal 9

Same filename and directory in other branches
  1. 10 core/themes/olivero/css/components/header-navigation.css

Navigation in header.

File

core/themes/olivero/css/components/header-navigation.css
View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Navigation in header.
  10. */
  11. [dir="ltr"] .header-nav {
  12. left: 100%
  13. }
  14. [dir="rtl"] .header-nav {
  15. right: 100%
  16. }
  17. [dir="ltr"] .header-nav {
  18. padding-left: 1.125rem
  19. }
  20. [dir="rtl"] .header-nav {
  21. padding-right: 1.125rem
  22. }
  23. [dir="ltr"] .header-nav {
  24. padding-right: 1.125rem
  25. }
  26. [dir="rtl"] .header-nav {
  27. padding-left: 1.125rem
  28. }
  29. .header-nav {
  30. position: fixed;
  31. z-index: 105; /* appear above overlay */
  32. top: 0;
  33. visibility: hidden;
  34. overflow: auto;
  35. /* Ensure that header nav not use additional space and force
  36. system branding block text to unnecessarily wrap. */
  37. flex-basis: 0;
  38. flex-grow: 1; /* Necessary for IE11. */
  39. width: 100%;
  40. max-width: 31.25rem;
  41. height: 100%;
  42. padding-top: 0;
  43. padding-bottom: 1.125rem;
  44. border-top: solid #fff 54px; /* Create room for the "close" button. */
  45. background-color: #fff;
  46. box-shadow: 0 0 72px rgba(0, 0, 0, 0.1)
  47. }
  48. .header-nav.is-active {
  49. visibility: visible;
  50. transform: translateX(-100%); /* LTR */
  51. }
  52. @supports (flex-basis: max-content) {
  53. .header-nav {
  54. flex-basis: max-content
  55. }
  56. }
  57. @media (min-width: 31.25rem) {
  58. .header-nav {
  59. border-top-width: 90px
  60. }
  61. }
  62. @media (min-width: 43.75rem) {
  63. [dir="ltr"] .header-nav {
  64. padding-left: 3.375rem
  65. }
  66. [dir="rtl"] .header-nav {
  67. padding-right: 3.375rem
  68. }
  69. .header-nav {
  70. padding-bottom: 3.375rem;
  71. border-top-width: 126px
  72. }
  73. }
  74. @media (min-width: 62.5rem) {
  75. .header-nav {
  76. -ms-grid-column: 5;
  77. -ms-grid-column-span: 9;
  78. grid-column: 5 / 14
  79. }
  80. }
  81. /*
  82. * Only apply transition styles when JS is loaded. This
  83. * works around https://bugs.chromium.org/p/chromium/issues/detail?id=332189
  84. */
  85. html.js .header-nav {
  86. transition: visibility 0.2s, transform 0.2s;
  87. }
  88. /* Toolbar is fixed, and tray is vertical. */
  89. body.toolbar-vertical .header-nav {
  90. border-top-width: 93px
  91. }
  92. @media (min-width: 31.25rem) {
  93. body.toolbar-vertical .header-nav {
  94. border-top-width: 129px
  95. }
  96. }
  97. /* Toolbar is fixed, and tray is vertical or toolbar is horizontal and tray is closed. */
  98. @media (min-width: 43.75rem) {
  99. body.toolbar-vertical .header-nav,
  100. body.toolbar-horizontal.toolbar-fixed .header-nav {
  101. border-top-width: 165px
  102. }
  103. }
  104. /* Toolbar is horizontal fixed, and tray is open. */
  105. @media (min-width: 43.75rem) {
  106. body.toolbar-horizontal.toolbar-fixed.toolbar-tray-open .header-nav {
  107. border-top-width: 205px
  108. }
  109. }
  110. @media (min-width: 75rem) {
  111. [dir="ltr"] body:not(.is-always-mobile-nav) .header-nav {
  112. padding-left: 0
  113. }
  114. [dir="rtl"] body:not(.is-always-mobile-nav) .header-nav {
  115. padding-right: 0
  116. }
  117. [dir="ltr"] body:not(.is-always-mobile-nav) .header-nav {
  118. padding-right: 0
  119. }
  120. [dir="rtl"] body:not(.is-always-mobile-nav) .header-nav {
  121. padding-left: 0
  122. }
  123. body:not(.is-always-mobile-nav) .header-nav {
  124. position: static;
  125. display: flex;
  126. visibility: visible;
  127. overflow: visible;
  128. -ms-grid-column: 5;
  129. -ms-grid-column-span: 10;
  130. grid-column: 5 / 15;
  131. align-items: center;
  132. justify-content: flex-end;
  133. max-width: none;
  134. height: 6.75rem;
  135. margin-top: auto;
  136. padding-top: 0;
  137. padding-bottom: 0;
  138. transition: transform 0.2s;
  139. transform: none;
  140. border-top: 0;
  141. box-shadow: none
  142. }
  143. }
  144. body.is-always-mobile-nav {
  145. /* Toolbar is fixed, and tray is vertical or toolbar is horizontal and tray is closed. */
  146. }
  147. @media (min-width: 75rem) {
  148. body.is-always-mobile-nav.toolbar-vertical .header-nav,
  149. body.is-always-mobile-nav.toolbar-horizontal.toolbar-fixed .header-nav {
  150. border-top-width: 237px
  151. }
  152. }
  153. body.is-always-mobile-nav {
  154. /* Toolbar is horizontal fixed, and tray is open. */
  155. }
  156. @media (min-width: 75rem) {
  157. body.is-always-mobile-nav.toolbar-horizontal.toolbar-fixed.toolbar-tray-open .header-nav {
  158. border-top-width: 277px
  159. }
  160. }
  161. @media (min-width: 75rem) {
  162. [dir="ltr"] body.is-always-mobile-nav .header-nav {
  163. padding-right: 1.125rem
  164. }
  165. [dir="rtl"] body.is-always-mobile-nav .header-nav {
  166. padding-left: 1.125rem
  167. }
  168. body.is-always-mobile-nav .header-nav {
  169. overflow: auto;
  170. max-width: calc(50vw - 4.40625rem);
  171. transition: transform 0.2s, visibility 0.2s;
  172. border-top-width: 198px
  173. }
  174. }
  175. @media (min-width: 90rem) {
  176. [dir="ltr"] body.is-always-mobile-nav .header-nav {
  177. padding-right: calc(100vw - 88.875rem)
  178. }
  179. [dir="rtl"] body.is-always-mobile-nav .header-nav {
  180. padding-left: calc(100vw - 88.875rem)
  181. }
  182. body.is-always-mobile-nav .header-nav {
  183. max-width: calc(100vw - 48.9375rem)
  184. }
  185. }
  186. [dir="rtl"] .header-nav.is-active {
  187. transform: translateX(100%);
  188. }