You are here

header-search-narrow.css in Drupal 10

Same filename and directory in other branches
  1. 9 core/themes/olivero/css/components/header-search-narrow.css

Header Search Narrow Block.

File

core/themes/olivero/css/components/header-search-narrow.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. * Header Search Narrow Block.
  10. */
  11. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. .block-search-narrow {
  20. margin-left: calc(-1 * var(--sp));
  21. margin-right: calc(-1 * var(--sp));
  22. margin-bottom: var(--sp2);
  23. background: var(--color--black)
  24. }
  25. .block-search-narrow .search-block-form {
  26. display: flex;
  27. }
  28. .block-search-narrow .form-item {
  29. flex-grow: 1;
  30. margin: 0;
  31. }
  32. .block-search-narrow .form-actions {
  33. margin: 0;
  34. }
  35. [dir="ltr"] .block-search-narrow input[type="search"] {
  36. padding-left: var(--sp)
  37. }
  38. [dir="rtl"] .block-search-narrow input[type="search"] {
  39. padding-right: var(--sp)
  40. }
  41. [dir="ltr"] .block-search-narrow input[type="search"] {
  42. padding-right: var(--sp)
  43. }
  44. [dir="rtl"] .block-search-narrow input[type="search"] {
  45. padding-left: var(--sp)
  46. }
  47. .block-search-narrow input[type="search"] {
  48. width: calc(100% + var(--sp2));
  49. height: calc(3 * var(--sp));
  50. padding-top: 0;
  51. padding-bottom: 0;
  52. transition: background-size 0.4s;
  53. color: var(--color--white);
  54. border: solid 1px transparent;
  55. background-color: transparent;
  56. background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */
  57. background-repeat: no-repeat;
  58. background-position: bottom left; /* LTR */
  59. background-size: 0% 0.3125rem;
  60. box-shadow: none;
  61. font-family: var(--font-serif);
  62. font-size: 1rem;
  63. -webkit-appearance: none
  64. }
  65. .block-search-narrow input[type="search"]::-ms-clear {
  66. width: 2.5rem;
  67. opacity: 0.5;
  68. }
  69. .block-search-narrow input[type="search"]:focus {
  70. outline: solid 4px transparent;
  71. outline-offset: -4px;
  72. background-size: 100% 0.3125rem
  73. /*
  74. We normally indicate focus by animating background-image width. This isn't
  75. available in IE11 when in Windows high contrast mode.
  76. */
  77. }
  78. @media screen and (-ms-high-contrast: active) {
  79. .block-search-narrow input[type="search"]:focus {
  80. border-bottom-width: 5px
  81. }
  82. }
  83. @media (min-width: 43.75rem) {
  84. [dir="ltr"] .block-search-narrow input[type="search"] {
  85. padding-left: var(--sp2)
  86. }
  87. [dir="rtl"] .block-search-narrow input[type="search"] {
  88. padding-right: var(--sp2)
  89. }
  90. [dir="ltr"] .block-search-narrow input[type="search"] {
  91. padding-right: var(--sp2)
  92. }
  93. [dir="rtl"] .block-search-narrow input[type="search"] {
  94. padding-left: var(--sp2)
  95. }
  96. .block-search-narrow input[type="search"] {
  97. height: calc(4 * var(--sp))
  98. }
  99. }
  100. [dir="ltr"] .block-search-narrow .search-form__submit {
  101. margin-left: 0
  102. }
  103. [dir="rtl"] .block-search-narrow .search-form__submit {
  104. margin-right: 0
  105. }
  106. [dir="ltr"] .block-search-narrow .search-form__submit {
  107. margin-right: 0
  108. }
  109. [dir="rtl"] .block-search-narrow .search-form__submit {
  110. margin-left: 0
  111. }
  112. [dir="ltr"] .block-search-narrow .search-form__submit {
  113. padding-left: 0
  114. }
  115. [dir="rtl"] .block-search-narrow .search-form__submit {
  116. padding-right: 0
  117. }
  118. [dir="ltr"] .block-search-narrow .search-form__submit {
  119. padding-right: 0
  120. }
  121. [dir="rtl"] .block-search-narrow .search-form__submit {
  122. padding-left: 0
  123. }
  124. .block-search-narrow .search-form__submit {
  125. position: relative;
  126. overflow: hidden;
  127. align-self: stretch;
  128. width: var(--sp3);
  129. height: auto;
  130. margin-top: 0;
  131. margin-bottom: 0;
  132. padding-top: 0;
  133. padding-bottom: 0;
  134. cursor: pointer;
  135. border-color: transparent;
  136. background-color: transparent
  137. /*
  138. When in Windows high contrast mode, FF will not output either background
  139. images or SVGs that are nested directly within a
  140. */
  141. }
  142. [dir="ltr"] .block-search-narrow .search-form__submit .icon--search {
  143. left: 0
  144. }
  145. [dir="rtl"] .block-search-narrow .search-form__submit .icon--search {
  146. right: 0
  147. }
  148. .block-search-narrow .search-form__submit .icon--search {
  149. position: absolute;
  150. top: 0;
  151. display: block;
  152. width: 100%; /* Width of the SVG background image. */
  153. height: 100%;
  154. pointer-events: none;
  155. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e");
  156. background-repeat: no-repeat;
  157. background-position: center;
  158. background-size: auto
  159. }
  160. [dir="ltr"] .block-search-narrow .search-form__submit .icon--search:after {
  161. left: 0
  162. }
  163. [dir="rtl"] .block-search-narrow .search-form__submit .icon--search:after {
  164. right: 0
  165. }
  166. .block-search-narrow .search-form__submit .icon--search:after {
  167. position: absolute;
  168. bottom: 0;
  169. width: 100%;
  170. height: 0;
  171. content: "";
  172. transition: transform 0.2s;
  173. transform: scaleX(0);
  174. transform-origin: left; /* LTR */
  175. border-top: solid 5px var(--color--primary-50);
  176. }
  177. @media (forced-colors: active) {
  178. .block-search-narrow .search-form__submit .icon--search {
  179. background: buttontext;
  180. -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e");
  181. mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e");
  182. -webkit-mask-repeat: no-repeat;
  183. mask-repeat: no-repeat;
  184. -webkit-mask-position: center;
  185. mask-position: center
  186. }
  187. }
  188. .block-search-narrow .search-form__submit:focus {
  189. outline: solid 4px transparent;
  190. outline-offset: -4px;
  191. box-shadow: none
  192. }
  193. .block-search-narrow .search-form__submit:focus span:after {
  194. transform: scaleX(1);
  195. }
  196. @media screen and (-ms-high-contrast: active) {
  197. .block-search-narrow .search-form__submit:focus {
  198. border-bottom-width: var(--sp0-5)
  199. }
  200. .block-search-narrow .search-form__submit:focus span:after {
  201. content: none;
  202. }
  203. }
  204. @media (min-width: 43.75rem) {
  205. .block-search-narrow .search-form__submit {
  206. width: 5rem
  207. }
  208. }
  209. @media screen and (-ms-high-contrast: active) {
  210. .block-search-narrow .search-form__submit {
  211. /* IE11's high contrast show will not show the background image, so we show the text. */
  212. }
  213. .block-search-narrow .search-form__submit .visually-hidden {
  214. position: static;
  215. overflow: visible;
  216. clip: auto;
  217. width: auto;
  218. height: auto;
  219. text-align: center;
  220. }
  221. .block-search-narrow .search-form__submit {
  222. /* Edge's high contrast does show the background image, so we hide it. */
  223. }
  224. .block-search-narrow .search-form__submit .icon--search {
  225. display: none;
  226. }
  227. }
  228. .block-search-narrow {
  229. /* 500px is the width of the primary nav at mobile. */
  230. }
  231. @media (min-width: 31.25rem) {
  232. [dir="ltr"] .block-search-narrow {
  233. margin-left: 0
  234. }
  235. [dir="rtl"] .block-search-narrow {
  236. margin-right: 0
  237. }
  238. [dir="ltr"] .block-search-narrow {
  239. margin-right: 0
  240. }
  241. [dir="rtl"] .block-search-narrow {
  242. margin-left: 0
  243. }
  244. }
  245. @media (min-width: 75rem) {
  246. body:not(.is-always-mobile-nav) .block-search-narrow {
  247. display: none
  248. }
  249. }
  250. [dir="rtl"] .block-search-narrow input[type="search"] {
  251. background-position: bottom right;
  252. }
  253. [dir="rtl"] .block-search-narrow .search-form__submit .icon--search:after {
  254. transform-origin: right;
  255. }