form-text.pcss.css

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

Text input elements.

File

core/themes/olivero/css/components/form-text.pcss.css

View source
  1. /**
  2. * @file
  3. * Text input elements.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. [type="color"],
  7. [type="date"],
  8. [type="datetime-local"],
  9. [type="email"],
  10. [type="file"],
  11. [type="month"],
  12. [type="number"],
  13. [type="password"],
  14. [type="search"],
  15. [type="tel"],
  16. [type="text"],
  17. [type="time"],
  18. [type="url"],
  19. [type="week"],
  20. textarea {
  21. width: 100%;
  22. max-width: 100%;
  23. min-height: var(--sp3);
  24. padding: 0 var(--sp);
  25. color: var(--color-text-neutral-loud);
  26. border: 1px solid var(--color--gray-60);
  27. border-radius: var(--border-radius);
  28. background-color: var(--color--white);
  29. font-family: inherit;
  30. font-size: inherit;
  31. appearance: none;
  32. &:focus {
  33. border: solid 2px var(--color--primary-50);
  34. outline: solid 2px var(--color--primary-50);
  35. @supports (outline-style: double) {
  36. border-width: 1px;
  37. outline-width: 6px;
  38. outline-style: double;
  39. outline-offset: -1px;
  40. }
  41. }
  42. &[disabled] {
  43. color: var(--color--gray-60);
  44. background-color: var(--color--gray-100);
  45. }
  46. &.error {
  47. border: solid 2px var(--color--red);
  48. &:focus {
  49. outline-color: var(--color--red);
  50. outline-offset: -2px;
  51. }
  52. & + .ck-editor > .ck-editor__main {
  53. border: solid 2px var(--color--red);
  54. }
  55. }
  56. &.form-element--small {
  57. min-height: var(--sp2-5);
  58. }
  59. @media (--sm) {
  60. width: auto;
  61. }
  62. }
  63. [type="date"] {
  64. /* Ensure that date field isn't larger than other fields. */
  65. &::-webkit-datetime-edit-fields-wrapper {
  66. padding-block: 0;
  67. padding-inline-start: 0;
  68. padding-inline-end: 0;
  69. }
  70. }
  71. [type="file"] {
  72. height: auto;
  73. padding-block: var(--sp0-75);
  74. }
  75. [type="color"] {
  76. width: var(--sp3);
  77. padding: 0;
  78. }

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