_scroller.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @mixin extjs-scroller {
  2. .#{$prefix}horizontal-scroller-present .#{$prefix}grid-body {
  3. border-bottom-width: 0px;
  4. }
  5. .#{$prefix}vertical-scroller-present .#{$prefix}grid-body {
  6. border-right-width: 0px;
  7. }
  8. .#{$prefix}scroller {
  9. overflow: hidden;
  10. }
  11. .#{$prefix}scroller-vertical {
  12. border: 1px solid $panel-border-color;
  13. border-top-color: $grid-header-background-color;
  14. }
  15. .#{$prefix}scroller-horizontal {
  16. border: 1px solid $panel-border-color;
  17. }
  18. .#{$prefix}vertical-scroller-present .#{$prefix}scroller-horizontal {
  19. border-right-width: 0px;
  20. }
  21. .#{$prefix}scroller-ct {
  22. overflow: hidden;
  23. position: absolute;
  24. margin: 0;
  25. padding: 0;
  26. border: none;
  27. left: 0px;
  28. top: 0px;
  29. /*
  30. In IE9 (only), the border-box style causes the scroller-ct to be 0px in the
  31. perpendicular dimension and breaks the scroll as well as offsets it by the left
  32. offset that we use to try and keep some size on this element. This works on all
  33. browsers (including IE9).
  34. */
  35. box-sizing: content-box !important;
  36. -ms-box-sizing: content-box !important;
  37. -moz-box-sizing: content-box !important;
  38. -webkit-box-sizing: content-box !important;
  39. }
  40. .#{$prefix}scroller-vertical .#{$prefix}scroller-ct {
  41. overflow-y: scroll;
  42. }
  43. .#{$prefix}scroller-horizontal .#{$prefix}scroller-ct {
  44. overflow-x: scroll;
  45. }
  46. }