_form-width.scss 823 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .w-form-width {
  2. @include max-form-width();
  3. }
  4. @include media-breakpoint-up(md) {
  5. .minimap-open {
  6. .w-form-width {
  7. max-width: theme('width.[4/5]');
  8. }
  9. }
  10. .side-panel-open {
  11. .w-form-width {
  12. // Account for dynamic width of the side panel when open.
  13. max-width: max(
  14. theme('width.[1/3]'),
  15. calc(100% - var(--side-panel-width))
  16. );
  17. }
  18. }
  19. .side-panel-open.minimap-open {
  20. .w-form-width {
  21. // Account for additional space taken up by the minimap.
  22. max-width: max(
  23. theme('width.[2/5]'),
  24. calc(100% - var(--side-panel-width) - 15rem)
  25. );
  26. }
  27. }
  28. }
  29. .fields {
  30. // Apply the desired form width for legacy `fields` container.
  31. max-width: $max-form-width;
  32. // Remove any spacing in legacy fields markup.
  33. > li {
  34. padding: 0;
  35. }
  36. }