_resizable.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. @mixin extjs-resizable {
  2. .#{$prefix}resizable-handle {
  3. position: absolute;
  4. z-index: 100;
  5. font-size: 1px;
  6. line-height: 6px;
  7. overflow: hidden;
  8. zoom: 1;
  9. @include opacity(0);
  10. background-color: #fff;
  11. }
  12. // Collapsed Components cannot be resized
  13. .#{$prefix}collapsed .#{$prefix}resizable-handle {
  14. display: none;
  15. }
  16. .#{$prefix}resizable-handle-east {
  17. width: 6px;
  18. height: 100%;
  19. right: 0;
  20. top: 0;
  21. }
  22. .#{$prefix}resizable-over {
  23. .#{$prefix}resizable-handle-east {
  24. cursor: e-resize;
  25. }
  26. }
  27. .#{$prefix}resizable-handle-south {
  28. width: 100%;
  29. height: 6px;
  30. left: 0;
  31. bottom: 0;
  32. }
  33. .#{$prefix}resizable-over {
  34. .#{$prefix}resizable-handle-south {
  35. cursor: s-resize;
  36. }
  37. }
  38. .#{$prefix}resizable-handle-west {
  39. width: 6px;
  40. height: 100%;
  41. left: 0;
  42. top: 0;
  43. }
  44. .#{$prefix}resizable-over {
  45. .#{$prefix}resizable-handle-west {
  46. cursor: w-resize;
  47. }
  48. }
  49. .#{$prefix}resizable-handle-north {
  50. width: 100%;
  51. height: 6px;
  52. left: 0;
  53. top: 0;
  54. }
  55. .#{$prefix}resizable-over {
  56. .#{$prefix}resizable-handle-north {
  57. cursor: n-resize;
  58. }
  59. }
  60. .#{$prefix}resizable-handle-southeast {
  61. width: 6px;
  62. height: 6px;
  63. right: 0;
  64. bottom: 0;
  65. z-index: 101;
  66. }
  67. .#{$prefix}resizable-over {
  68. .#{$prefix}resizable-handle-southeast {
  69. cursor: se-resize;
  70. }
  71. }
  72. .#{$prefix}resizable-handle-northwest {
  73. width: 6px;
  74. height: 6px;
  75. left: 0;
  76. top: 0;
  77. z-index: 101;
  78. }
  79. .#{$prefix}resizable-over {
  80. .#{$prefix}resizable-handle-northwest {
  81. cursor: nw-resize;
  82. }
  83. }
  84. .#{$prefix}resizable-handle-northeast {
  85. width: 6px;
  86. height: 6px;
  87. right: 0;
  88. top: 0;
  89. z-index: 101;
  90. }
  91. .#{$prefix}resizable-over {
  92. .#{$prefix}resizable-handle-northeast {
  93. cursor: ne-resize;
  94. }
  95. }
  96. .#{$prefix}resizable-handle-southwest {
  97. width: 6px;
  98. height: 6px;
  99. left: 0;
  100. bottom: 0;
  101. z-index: 101;
  102. }
  103. .#{$prefix}resizable-over {
  104. .#{$prefix}resizable-handle-southwest {
  105. cursor: sw-resize;
  106. }
  107. }
  108. /*IE rounding error*/
  109. .#{$prefix}ie {
  110. .#{$prefix}resizable-handle-east {
  111. margin-right: -1px; /*IE rounding error*/
  112. }
  113. .#{$prefix}resizable-handle-south {
  114. margin-bottom: -1px;
  115. }
  116. }
  117. .#{$prefix}resizable-over .#{$prefix}resizable-handle, .#{$prefix}resizable-pinned .#{$prefix}resizable-handle{
  118. @include opacity(1);
  119. }
  120. .#{$prefix}window .#{$prefix}window-handle {
  121. @include opacity(0);
  122. }
  123. .#{$prefix}window-collapsed .#{$prefix}window-handle {
  124. display: none;
  125. }
  126. .#{$prefix}resizable-proxy {
  127. border: 1px dashed #3b5a82;
  128. position: absolute;
  129. left: 0;
  130. top: 0;
  131. overflow: hidden;
  132. z-index: 50000;
  133. }
  134. .#{$prefix}resizable-overlay {
  135. position: absolute;
  136. left: 0;
  137. top: 0;
  138. width: 100%;
  139. height: 100%;
  140. display: none;
  141. z-index: 200000;
  142. background-color: #fff;
  143. @include opacity(0);
  144. }
  145. .#{$prefix}resizable-over,
  146. .#{$prefix}resizable-pinned {
  147. .#{$prefix}resizable-handle-east,
  148. .#{$prefix}resizable-handle-west {
  149. background-position: left;
  150. background-image: theme-background-image($theme-name, 'sizer/e-handle.gif');
  151. }
  152. .#{$prefix}resizable-handle-south,
  153. .#{$prefix}resizable-handle-north {
  154. background-position: top;
  155. background-image: theme-background-image($theme-name, 'sizer/s-handle.gif');
  156. }
  157. .#{$prefix}resizable-handle-southeast {
  158. background-position: top left;
  159. background-image: theme-background-image($theme-name, 'sizer/se-handle.gif');
  160. }
  161. .#{$prefix}resizable-handle-northwest {
  162. background-position: bottom right;
  163. background-image: theme-background-image($theme-name, 'sizer/nw-handle.gif');
  164. }
  165. .#{$prefix}resizable-handle-northeast {
  166. background-position: bottom left;
  167. background-image: theme-background-image($theme-name, 'sizer/ne-handle.gif');
  168. }
  169. .#{$prefix}resizable-handle-southwest {
  170. background-position: top right;
  171. background-image: theme-background-image($theme-name, 'sizer/sw-handle.gif');
  172. }
  173. }
  174. }