You are here

header-search-narrow.css in Drupal 9

Same filename and directory in other branches
  1. 10 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. .block-search-narrow {
  12. margin-left: -1.125rem;
  13. margin-right: -1.125rem;
  14. margin-bottom: 2.25rem;
  15. background: #000
  16. }
  17. .block-search-narrow .search-block-form {
  18. display: flex;
  19. }
  20. .block-search-narrow .form-item {
  21. flex-grow: 1;
  22. margin: 0;
  23. }
  24. .block-search-narrow .form-actions {
  25. margin: 0;
  26. }
  27. [dir="ltr"] .block-search-narrow input[type="search"] {
  28. padding-left: 1.125rem
  29. }
  30. [dir="rtl"] .block-search-narrow input[type="search"] {
  31. padding-right: 1.125rem
  32. }
  33. [dir="ltr"] .block-search-narrow input[type="search"] {
  34. padding-right: 1.125rem
  35. }
  36. [dir="rtl"] .block-search-narrow input[type="search"] {
  37. padding-left: 1.125rem
  38. }
  39. .block-search-narrow input[type="search"] {
  40. width: calc(100% + 2.25rem);
  41. height: 3.375rem;
  42. padding-top: 0;
  43. padding-bottom: 0;
  44. transition: background-size 0.4s;
  45. color: #fff;
  46. border: solid 1px transparent;
  47. background-color: transparent;
  48. background-image: linear-gradient(#2494db, #2494db); /* Two values are needed for IE11 support. */
  49. background-repeat: no-repeat;
  50. background-position: bottom left; /* LTR */
  51. background-size: 0% 0.3125rem;
  52. box-shadow: none;
  53. font-family: serif;
  54. font-size: 1rem;
  55. -webkit-appearance: none
  56. }
  57. .block-search-narrow input[type="search"]::-ms-clear {
  58. width: 2.5rem;
  59. opacity: 0.5;
  60. }
  61. .block-search-narrow input[type="search"]:focus {
  62. outline: solid 4px transparent;
  63. outline-offset: -4px;
  64. background-size: 100% 0.3125rem
  65. /*
  66. We normally indicate focus by animating background-image width. This isn't
  67. available in IE11 when in Windows high contrast mode.
  68. */
  69. }
  70. @media screen and (-ms-high-contrast: active) {
  71. .block-search-narrow input[type="search"]:focus {
  72. border-bottom-width: 5px
  73. }
  74. }
  75. @media (min-width: 43.75rem) {
  76. [dir="ltr"] .block-search-narrow input[type="search"] {
  77. padding-left: 2.25rem
  78. }
  79. [dir="rtl"] .block-search-narrow input[type="search"] {
  80. padding-right: 2.25rem
  81. }
  82. [dir="ltr"] .block-search-narrow input[type="search"] {
  83. padding-right: 2.25rem
  84. }
  85. [dir="rtl"] .block-search-narrow input[type="search"] {
  86. padding-left: 2.25rem
  87. }
  88. .block-search-narrow input[type="search"] {
  89. padding-top: 2.25rem;
  90. padding-bottom: 2.25rem
  91. }
  92. }
  93. [dir="ltr"] .block-search-narrow .search-form__submit {
  94. margin-left: 0
  95. }
  96. [dir="rtl"] .block-search-narrow .search-form__submit {
  97. margin-right: 0
  98. }
  99. [dir="ltr"] .block-search-narrow .search-form__submit {
  100. margin-right: 0
  101. }
  102. [dir="rtl"] .block-search-narrow .search-form__submit {
  103. margin-left: 0
  104. }
  105. [dir="ltr"] .block-search-narrow .search-form__submit {
  106. padding-left: 0
  107. }
  108. [dir="rtl"] .block-search-narrow .search-form__submit {
  109. padding-right: 0
  110. }
  111. [dir="ltr"] .block-search-narrow .search-form__submit {
  112. padding-right: 0
  113. }
  114. [dir="rtl"] .block-search-narrow .search-form__submit {
  115. padding-left: 0
  116. }
  117. .block-search-narrow .search-form__submit {
  118. position: relative;
  119. overflow: hidden;
  120. -ms-grid-row-align: stretch;
  121. align-self: stretch;
  122. width: 3.375rem;
  123. height: auto;
  124. margin-top: 0;
  125. margin-bottom: 0;
  126. padding-top: 0;
  127. padding-bottom: 0;
  128. cursor: pointer;
  129. border-color: transparent;
  130. background-color: transparent
  131. /*
  132. When in Windows high contrast mode, FF will will not output either background
  133. images or SVGs that are nested directly within a
  134. */
  135. }
  136. [dir="ltr"] .block-search-narrow .search-form__submit .icon--search {
  137. left: 0
  138. }
  139. [dir="rtl"] .block-search-narrow .search-form__submit .icon--search {
  140. right: 0
  141. }
  142. .block-search-narrow .search-form__submit .icon--search {
  143. position: absolute;
  144. top: 0;
  145. display: block;
  146. width: 100%; /* Width of the SVG background image. */
  147. height: 100%;
  148. pointer-events: none;
  149. 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");
  150. background-repeat: no-repeat;
  151. background-position: center;
  152. background-size: auto
  153. }
  154. [dir="ltr"] .block-search-narrow .search-form__submit .icon--search:after {
  155. left: 0
  156. }
  157. [dir="rtl"] .block-search-narrow .search-form__submit .icon--search:after {
  158. right: 0
  159. }
  160. .block-search-narrow .search-form__submit .icon--search:after {
  161. position: absolute;
  162. bottom: 0;
  163. width: 100%;
  164. height: 0;
  165. content: "";
  166. transition: transform 0.2s;
  167. transform: scaleX(0);
  168. transform-origin: left; /* LTR */
  169. border-top: solid 5px #2494db;
  170. }
  171. .block-search-narrow .search-form__submit:focus {
  172. outline: solid 4px transparent;
  173. outline-offset: -4px;
  174. box-shadow: none
  175. }
  176. .block-search-narrow .search-form__submit:focus span:after {
  177. transform: scaleX(1);
  178. }
  179. @media screen and (-ms-high-contrast: active) {
  180. .block-search-narrow .search-form__submit:focus {
  181. border-bottom-width: 9px
  182. }
  183. .block-search-narrow .search-form__submit:focus span:after {
  184. content: none;
  185. }
  186. }
  187. @media (min-width: 43.75rem) {
  188. .block-search-narrow .search-form__submit {
  189. width: 5rem
  190. }
  191. }
  192. @media screen and (-ms-high-contrast: active) {
  193. .block-search-narrow .search-form__submit {
  194. /* IE11's high contrast show will not show the background image, so we show the text. */
  195. }
  196. .block-search-narrow .search-form__submit .visually-hidden {
  197. position: static;
  198. overflow: visible;
  199. clip: auto;
  200. width: auto;
  201. height: auto;
  202. text-align: center;
  203. }
  204. .block-search-narrow .search-form__submit {
  205. /* Edge's high contrast does show the background image, so we hide it. */
  206. }
  207. .block-search-narrow .search-form__submit .icon--search {
  208. display: none;
  209. }
  210. }
  211. .block-search-narrow {
  212. /* 500px is the width of the primary nav at mobile. */
  213. }
  214. @media (min-width: 31.25rem) {
  215. [dir="ltr"] .block-search-narrow {
  216. margin-left: 0
  217. }
  218. [dir="rtl"] .block-search-narrow {
  219. margin-right: 0
  220. }
  221. [dir="ltr"] .block-search-narrow {
  222. margin-right: 0
  223. }
  224. [dir="rtl"] .block-search-narrow {
  225. margin-left: 0
  226. }
  227. }
  228. @media (min-width: 75rem) {
  229. body:not(.is-always-mobile-nav) .block-search-narrow {
  230. display: none
  231. }
  232. }
  233. [dir="rtl"] .block-search-narrow input[type="search"] {
  234. background-position: bottom right;
  235. }
  236. [dir="rtl"] .block-search-narrow .search-form__submit .icon--search:after {
  237. transform-origin: right;
  238. }