_form-width.scss 877 B

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