form-text.css

Same filename and directory in other branches
  1. 10 core/themes/olivero/css/components/form-text.css
  2. 11.x core/themes/olivero/css/components/form-text.css
  3. 9 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. &:focus {
  38. border: solid 2px var(--color--primary-50);
  39. outline: solid 2px var(--color--primary-50);
  40. @supports (outline-style: double) {
  41. border-width: 1px;
  42. outline-width: 6px;
  43. outline-style: double;
  44. outline-offset: -1px;
  45. }
  46. }
  47. &[disabled] {
  48. color: var(--color--gray-60);
  49. background-color: var(--color--gray-100);
  50. }
  51. &.error {
  52. border: solid 2px var(--color--red);
  53. &:focus {
  54. outline-color: var(--color--red);
  55. outline-offset: -2px;
  56. }
  57. & + .ck-editor > .ck-editor__main {
  58. border: solid 2px var(--color--red);
  59. }
  60. }
  61. &.form-element--small {
  62. min-height: var(--sp2-5);
  63. }
  64. @media (min-width: 31.25rem) {
  65. width: auto;
  66. }
  67. }
  68. [type="date"] {
  69. /* Ensure that date field isn't larger than other fields. */
  70. &::-webkit-datetime-edit-fields-wrapper {
  71. padding-block: 0;
  72. padding-inline-start: 0;
  73. padding-inline-end: 0;
  74. }
  75. }
  76. [type="file"] {
  77. height: auto;
  78. padding-block: var(--sp0-75);
  79. }
  80. [type="color"] {
  81. width: var(--sp3);
  82. padding: 0;
  83. }

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