form-text.css

Same filename in other branches
  1. 10 core/themes/olivero/css/components/form-text.css
  2. 11.x core/themes/olivero/css/components/form-text.css

Text input elements.

File

core/themes/olivero/css/components/form-text.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. * Text input elements.
  10. */
  11. [type="color"],
  12. [type="date"],
  13. [type="datetime-local"],
  14. [type="email"],
  15. [type="file"],
  16. [type="month"],
  17. [type="number"],
  18. [type="password"],
  19. [type="search"],
  20. [type="tel"],
  21. [type="text"],
  22. [type="time"],
  23. [type="url"],
  24. [type="week"],
  25. textarea {
  26. width: 100%;
  27. max-width: 100%;
  28. min-height: 3.375rem;
  29. padding: 0 1.125rem;
  30. color: #0d1214;
  31. border: 1px solid #7e96a7;
  32. border-radius: 0.1875rem;
  33. background-color: #fff;
  34. font-family: inherit;
  35. font-size: inherit;
  36. -webkit-appearance: none;
  37. appearance: none;
  38. }
  39. [type="color"]:focus,
  40. [type="date"]:focus,
  41. [type="datetime-local"]:focus,
  42. [type="email"]:focus,
  43. [type="file"]:focus,
  44. [type="month"]:focus,
  45. [type="number"]:focus,
  46. [type="password"]:focus,
  47. [type="search"]:focus,
  48. [type="tel"]:focus,
  49. [type="text"]:focus,
  50. [type="time"]:focus,
  51. [type="url"]:focus,
  52. [type="week"]:focus,
  53. textarea:focus {
  54. border: solid 2px #2494db;
  55. outline: solid 2px #2494db;
  56. }
  57. @supports (outline-style: double) {
  58. [type="color"]:focus,
  59. [type="date"]:focus,
  60. [type="datetime-local"]:focus,
  61. [type="email"]:focus,
  62. [type="file"]:focus,
  63. [type="month"]:focus,
  64. [type="number"]:focus,
  65. [type="password"]:focus,
  66. [type="search"]:focus,
  67. [type="tel"]:focus,
  68. [type="text"]:focus,
  69. [type="time"]:focus,
  70. [type="url"]:focus,
  71. [type="week"]:focus,
  72. textarea:focus {
  73. border-width: 1px;
  74. outline-width: 6px;
  75. outline-style: double;
  76. outline-offset: -1px;
  77. }
  78. }
  79. [type="color"]::-ms-clear,
  80. [type="date"]::-ms-clear,
  81. [type="datetime-local"]::-ms-clear,
  82. [type="email"]::-ms-clear,
  83. [type="file"]::-ms-clear,
  84. [type="month"]::-ms-clear,
  85. [type="number"]::-ms-clear,
  86. [type="password"]::-ms-clear,
  87. [type="search"]::-ms-clear,
  88. [type="tel"]::-ms-clear,
  89. [type="text"]::-ms-clear,
  90. [type="time"]::-ms-clear,
  91. [type="url"]::-ms-clear,
  92. [type="week"]::-ms-clear,
  93. textarea::-ms-clear {
  94. display: none;
  95. }
  96. [type="color"][disabled],
  97. [type="date"][disabled],
  98. [type="datetime-local"][disabled],
  99. [type="email"][disabled],
  100. [type="file"][disabled],
  101. [type="month"][disabled],
  102. [type="number"][disabled],
  103. [type="password"][disabled],
  104. [type="search"][disabled],
  105. [type="tel"][disabled],
  106. [type="text"][disabled],
  107. [type="time"][disabled],
  108. [type="url"][disabled],
  109. [type="week"][disabled],
  110. textarea[disabled] {
  111. color: #7e96a7;
  112. background-color: #f1f4f7;
  113. }
  114. .error[type="color"],
  115. .error[type="date"],
  116. .error[type="datetime-local"],
  117. .error[type="email"],
  118. .error[type="file"],
  119. .error[type="month"],
  120. .error[type="number"],
  121. .error[type="password"],
  122. .error[type="search"],
  123. .error[type="tel"],
  124. .error[type="text"],
  125. .error[type="time"],
  126. .error[type="url"],
  127. .error[type="week"],
  128. textarea.error {
  129. border: solid 2px #e33f1e;
  130. }
  131. .error[type="color"]:focus,
  132. .error[type="date"]:focus,
  133. .error[type="datetime-local"]:focus,
  134. .error[type="email"]:focus,
  135. .error[type="file"]:focus,
  136. .error[type="month"]:focus,
  137. .error[type="number"]:focus,
  138. .error[type="password"]:focus,
  139. .error[type="search"]:focus,
  140. .error[type="tel"]:focus,
  141. .error[type="text"]:focus,
  142. .error[type="time"]:focus,
  143. .error[type="url"]:focus,
  144. .error[type="week"]:focus,
  145. textarea.error:focus {
  146. outline-color: #e33f1e;
  147. outline-offset: -2px;
  148. }
  149. .error[type="color"] + .ck-editor > .ck-editor__main,
  150. .error[type="date"] + .ck-editor > .ck-editor__main,
  151. .error[type="datetime-local"] + .ck-editor > .ck-editor__main,
  152. .error[type="email"] + .ck-editor > .ck-editor__main,
  153. .error[type="file"] + .ck-editor > .ck-editor__main,
  154. .error[type="month"] + .ck-editor > .ck-editor__main,
  155. .error[type="number"] + .ck-editor > .ck-editor__main,
  156. .error[type="password"] + .ck-editor > .ck-editor__main,
  157. .error[type="search"] + .ck-editor > .ck-editor__main,
  158. .error[type="tel"] + .ck-editor > .ck-editor__main,
  159. .error[type="text"] + .ck-editor > .ck-editor__main,
  160. .error[type="time"] + .ck-editor > .ck-editor__main,
  161. .error[type="url"] + .ck-editor > .ck-editor__main,
  162. .error[type="week"] + .ck-editor > .ck-editor__main,
  163. textarea.error + .ck-editor > .ck-editor__main {
  164. border: solid 2px #e33f1e;
  165. }
  166. .form-element--small[type="color"],
  167. .form-element--small[type="date"],
  168. .form-element--small[type="datetime-local"],
  169. .form-element--small[type="email"],
  170. .form-element--small[type="file"],
  171. .form-element--small[type="month"],
  172. .form-element--small[type="number"],
  173. .form-element--small[type="password"],
  174. .form-element--small[type="search"],
  175. .form-element--small[type="tel"],
  176. .form-element--small[type="text"],
  177. .form-element--small[type="time"],
  178. .form-element--small[type="url"],
  179. .form-element--small[type="week"],
  180. textarea.form-element--small {
  181. min-height: 2.8125rem;
  182. }
  183. @media (min-width: 31.25rem) {
  184. [type="color"],
  185. [type="date"],
  186. [type="datetime-local"],
  187. [type="email"],
  188. [type="file"],
  189. [type="month"],
  190. [type="number"],
  191. [type="password"],
  192. [type="search"],
  193. [type="tel"],
  194. [type="text"],
  195. [type="time"],
  196. [type="url"],
  197. [type="week"],
  198. textarea {
  199. width: auto;
  200. }
  201. }
  202. /* Ensure that date field isn't larger than other fields. */
  203. [dir="ltr"] [type="date"]::-webkit-datetime-edit-fields-wrapper {
  204. padding-left: 0;
  205. }
  206. [dir="rtl"] [type="date"]::-webkit-datetime-edit-fields-wrapper {
  207. padding-right: 0;
  208. }
  209. [dir="ltr"] [type="date"]::-webkit-datetime-edit-fields-wrapper {
  210. padding-right: 0;
  211. }
  212. [dir="rtl"] [type="date"]::-webkit-datetime-edit-fields-wrapper {
  213. padding-left: 0;
  214. }
  215. [type="date"]::-webkit-datetime-edit-fields-wrapper {
  216. padding-top: 0;
  217. padding-bottom: 0;
  218. }
  219. [type="file"] {
  220. height: auto;
  221. padding-top: 0.84375rem;
  222. padding-bottom: 0.84375rem;
  223. }
  224. [type="color"] {
  225. width: 3.375rem;
  226. padding: 0;
  227. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.