form-text.css

Same filename in other branches
  1. 9 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: var(--sp3);
  29. padding: 0 var(--sp);
  30. color: var(--color-text-neutral-loud);
  31. border: 1px solid var(--color--gray-60);
  32. border-radius: var(--border-radius);
  33. background-color: var(--color--white);
  34. font-family: inherit;
  35. font-size: inherit;
  36. appearance: none;
  37. }
  38. :is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea):focus {
  39. border: solid 2px var(--color--primary-50);
  40. outline: solid 2px var(--color--primary-50);
  41. }
  42. @supports (outline-style: double) {
  43. :is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea):focus {
  44. border-width: 1px;
  45. outline-width: 6px;
  46. outline-style: double;
  47. outline-offset: -1px;
  48. }
  49. }
  50. [disabled]:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea) {
  51. color: var(--color--gray-60);
  52. background-color: var(--color--gray-100);
  53. }
  54. .error:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea) {
  55. border: solid 2px var(--color--red);
  56. }
  57. .error:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea):focus {
  58. outline-color: var(--color--red);
  59. outline-offset: -2px;
  60. }
  61. .error:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea) + .ck-editor > .ck-editor__main {
  62. border: solid 2px var(--color--red);
  63. }
  64. .form-element--small:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea) {
  65. min-height: var(--sp2-5);
  66. }
  67. @media (min-width: 31.25rem) {
  68. [type="color"],
  69. [type="date"],
  70. [type="datetime-local"],
  71. [type="email"],
  72. [type="file"],
  73. [type="month"],
  74. [type="number"],
  75. [type="password"],
  76. [type="search"],
  77. [type="tel"],
  78. [type="text"],
  79. [type="time"],
  80. [type="url"],
  81. [type="week"],
  82. textarea {
  83. width: auto;
  84. }
  85. }
  86. /* Ensure that date field isn't larger than other fields. */
  87. [type="date"]::-webkit-datetime-edit-fields-wrapper {
  88. padding-block: 0;
  89. padding-inline-start: 0;
  90. padding-inline-end: 0;
  91. }
  92. [type="file"] {
  93. height: auto;
  94. padding-block: var(--sp0-75);
  95. }
  96. [type="color"] {
  97. width: var(--sp3);
  98. padding: 0;
  99. }

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