ResponsiveColumn.scss 809 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @class Ext.ux.layout.ResponsiveColumn
  3. */
  4. /**
  5. * @var {number}
  6. * The space between items in a responsive column layout
  7. */
  8. $responsivecolumn-item-spacing: dynamic(0px);
  9. /**
  10. * Configures the width of an item in a responsive column layout
  11. *
  12. * @param {number} [$width=100%]
  13. * The width as a percentage
  14. *
  15. * @param {number} [$spacing=$responsivecolumn-item-spacing]
  16. * The space between items. For best results all items in the same responsive column
  17. * layout should use the same value.
  18. */
  19. @mixin responsivecolumn-item($width: 100%, $spacing: $responsivecolumn-item-spacing) {
  20. width: calc(#{$width} - #{$spacing});
  21. // This hack allows the JS layout to read the width/spacing info in IE8 since
  22. // it does not support CSS calc()
  23. background-position: $width $spacing !important;
  24. }