form-text.pcss.css

Same filename in other branches
  1. 10 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/variables.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--gray-0);
  26. border: 1px solid var(--color--gray-30);
  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--blue-50);
  34. outline: solid 2px var(--color--blue-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. &::-ms-clear {
  43. display: none;
  44. }
  45. &[disabled] {
  46. color: var(--color--gray-30);
  47. background-color: var(--color--gray-90);
  48. }
  49. &.error {
  50. border: solid 2px var(--color--red);
  51. &:focus {
  52. outline-color: var(--color--red);
  53. outline-offset: -2px;
  54. }
  55. & + .ck-editor > .ck-editor__main {
  56. border: solid 2px var(--color--red);
  57. }
  58. }
  59. &.form-element--small {
  60. min-height: var(--sp2-5);
  61. }
  62. @media (--sm) {
  63. width: auto;
  64. }
  65. }
  66. [type="date"] {
  67. /* Ensure that date field isn't larger than other fields. */
  68. &::-webkit-datetime-edit-fields-wrapper {
  69. padding-block: 0;
  70. padding-inline-start: 0;
  71. padding-inline-end: 0;
  72. }
  73. }
  74. [type="file"] {
  75. height: auto;
  76. padding-block: var(--sp0-75);
  77. }
  78. [type="color"] {
  79. width: var(--sp3);
  80. padding: 0;
  81. }

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