_forms.scss 721 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @use 'sass:map';
  2. @use '../tools' as *;
  3. // Legacy form reset styles. Avoid adding any new styles here.
  4. form {
  5. // Historically, Wagtail forms rendered all fields as list items.
  6. // This is still the case in some instances, and there may be a lot of
  7. // of form widgets relying on this too.
  8. ul,
  9. li {
  10. list-style-type: none;
  11. }
  12. ul {
  13. margin: 0;
  14. padding: 0;
  15. }
  16. }
  17. fieldset {
  18. border: 0;
  19. padding: 0 0 2em;
  20. margin: 0;
  21. }
  22. // Special styles to counteract Firefox's completely unwarranted assumptions about button styles
  23. input[type='submit'],
  24. input[type='reset'],
  25. input[type='button'],
  26. button {
  27. padding: 0 1em;
  28. @include media-breakpoint-up(sm) {
  29. &.button-small {
  30. height: 2em;
  31. }
  32. }
  33. }