2
0

_forms.scss 699 B

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