_forms.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. input.wp-block-search__input,
  2. input[type="text"],
  3. input[type="email"],
  4. input[type="url"],
  5. input[type="password"],
  6. input[type="search"],
  7. input[type="number"],
  8. input[type="tel"],
  9. input[type="range"],
  10. input[type="date"],
  11. input[type="month"],
  12. input[type="week"],
  13. input[type="time"],
  14. input[type="datetime"],
  15. input[type="datetime-local"],
  16. input[type="color"],
  17. textarea,
  18. select {
  19. background: var(--wp--custom--form--color--background);
  20. border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
  21. border-radius: var(--wp--custom--form--border--radius);
  22. box-shadow: var(--wp--custom--form--color--box-shadow);
  23. color: var(--wp--custom--form--color--text);
  24. font-family: inherit;
  25. padding: var(--wp--custom--form--padding);
  26. &:focus {
  27. border-color: var(--wp--custom--form--color--border);
  28. color: var(--wp--custom--form--color--text);
  29. outline: 1px dotted currentcolor;
  30. outline-offset: 2px;
  31. }
  32. }
  33. input[type="checkbox"],
  34. input[type="submit"],
  35. button {
  36. &:focus {
  37. outline: 1px dotted currentcolor;
  38. outline-offset: 2px;
  39. }
  40. &::placeholder {
  41. color: var(--wp--custom--form--color--text);
  42. opacity: 0.66;
  43. }
  44. }
  45. select {
  46. font-size: 100%;
  47. }
  48. textarea {
  49. width: 100%;
  50. }
  51. // Vertically align checkbox + label relationship
  52. input[type="checkbox"] + label {
  53. display: inline;
  54. margin-left: 0.5em;
  55. line-height: 1em;
  56. }