_layout.scss 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. @mixin extjs-layout {
  2. /*
  3. * Dock Layouts
  4. * @todo move this somewhere else?
  5. */
  6. .#{$prefix}docked {
  7. position: absolute !important;
  8. z-index: 1;
  9. }
  10. .#{$prefix}docked-top {
  11. border-bottom-width: 0 !important;
  12. }
  13. .#{$prefix}docked-bottom {
  14. border-top-width: 0 !important;
  15. }
  16. .#{$prefix}docked-left {
  17. border-right-width: 0 !important;
  18. }
  19. .#{$prefix}docked-right {
  20. border-left-width: 0 !important;
  21. }
  22. .#{$prefix}docked-noborder-top {
  23. border-top-width: 0 !important;
  24. }
  25. .#{$prefix}docked-noborder-right {
  26. border-right-width: 0 !important;
  27. }
  28. .#{$prefix}docked-noborder-bottom {
  29. border-bottom-width: 0 !important;
  30. }
  31. .#{$prefix}docked-noborder-left {
  32. border-left-width: 0 !important;
  33. }
  34. .#{$prefix}box-inner {
  35. overflow:hidden;
  36. zoom:1;
  37. position:relative;
  38. left:0;
  39. top:0;
  40. }
  41. .#{$prefix}box-item {
  42. position:absolute !important;
  43. left:0;
  44. top:0;
  45. }
  46. .#{$prefix}rtl .#{$prefix}box-item {
  47. right: 0;
  48. left: auto;
  49. }
  50. .#{$prefix}box-layout-ct,
  51. .#{$prefix}border-layout-ct {
  52. overflow: hidden;
  53. zoom: 1;
  54. }
  55. .#{$prefix}border-layout-ct {
  56. background-color: $border-layout-ct-background;
  57. position: relative;
  58. }
  59. .#{$prefix}overflow-hidden {
  60. overflow:hidden !important;
  61. }
  62. .#{$prefix}inline-children > * {
  63. display: inline-block !important;
  64. }
  65. .#{$prefix}abs-layout-ct {
  66. position: relative;
  67. }
  68. .#{$prefix}abs-layout-item {
  69. position: absolute !important;
  70. }
  71. .#{$prefix}fit-item {
  72. position: relative;
  73. }
  74. .#{$prefix}border-region-slide-in {
  75. z-index: 5;
  76. }
  77. .#{$prefix}region-collapsed-placeholder {
  78. z-index: 4;
  79. }
  80. .#{$prefix}accordion-hd .#{$prefix}panel-header-text {
  81. color: $accordion-header-color;
  82. font-weight: normal;
  83. }
  84. .#{$prefix}accordion-hd {
  85. .#{$prefix}tool-collapse-top,
  86. .#{$prefix}tool-collapse-right,
  87. .#{$prefix}tool-collapse-bottom,
  88. .#{$prefix}tool-collapse-left {
  89. background-position: 0 -255px;
  90. }
  91. .#{$prefix}tool-expand-top,
  92. .#{$prefix}tool-expand-right,
  93. .#{$prefix}tool-expand-bottom,
  94. .#{$prefix}tool-expand-left {
  95. background-position: 0 -240px;
  96. }
  97. .#{$prefix}tool-over {
  98. .#{$prefix}tool-collapse-top,
  99. .#{$prefix}tool-collapse-right,
  100. .#{$prefix}tool-collapse-bottom,
  101. .#{$prefix}tool-collapse-left {
  102. background-position: -15px -255px;
  103. }
  104. }
  105. .#{$prefix}tool-over {
  106. .#{$prefix}tool-expand-top,
  107. .#{$prefix}tool-expand-right,
  108. .#{$prefix}tool-expand-bottom,
  109. .#{$prefix}tool-expand-left {
  110. background-position: -15px -240px;
  111. }
  112. }
  113. background: $accordion-header-background-color !important;
  114. @include single-box-shadow($accordion-header-background-color, 0, 0, 0, 0, true);
  115. }
  116. .#{$prefix}accordion-hd {
  117. border-width: 1px 0 1px 0 !important;
  118. padding: 4px 5px 5px 5px;
  119. border-top-color: $panel-header-inner-border-color !important;
  120. }
  121. .#{$prefix}accordion-body {
  122. border-width: 0 !important;
  123. }
  124. .#{$prefix}accordion-hd-sibling-expanded {
  125. border-top-color: $panel-border-color !important;
  126. @include single-box-shadow($panel-header-inner-border-color, 0, 1px, 0, 0, true);
  127. }
  128. .#{$prefix}accordion-hd-last-collapsed {
  129. border-bottom-color: $accordion-header-background-color !important;
  130. }
  131. .#{$prefix}frame-tl,
  132. .#{$prefix}frame-tr,
  133. .#{$prefix}frame-tc,
  134. .#{$prefix}frame-bl,
  135. .#{$prefix}frame-br,
  136. .#{$prefix}frame-bc {
  137. overflow: hidden;
  138. background-repeat: no-repeat;
  139. }
  140. .#{$prefix}frame-tc,
  141. .#{$prefix}frame-bc {
  142. background-repeat: repeat-x;
  143. }
  144. .#{$prefix}frame-mc {
  145. position: relative;
  146. background-repeat: repeat-x;
  147. overflow: hidden;
  148. }
  149. // Classes for horizontal Box layout scroller.
  150. // Uses the *TAB* scroller image because it's all we have.
  151. // This will not work well in other cases
  152. .#{$prefix}box-scroller-left {
  153. float: left;
  154. height: 100%;
  155. z-index: 5;
  156. .#{$prefix}toolbar-scroll-left,
  157. .#{$prefix}tabbar-scroll-left {
  158. width: 18px;
  159. position: relative;
  160. cursor: pointer;
  161. height: $tab-height;
  162. background: transparent no-repeat -18px 0;
  163. background-image: theme-background-image($theme-name, 'tab-bar/scroll-left.gif');
  164. }
  165. .#{$prefix}toolbar-scroll-left-hover {
  166. background-position: 0 0;
  167. }
  168. .#{$prefix}toolbar-scroll-left-disabled,
  169. .#{$prefix}tabbar-scroll-left-disabled {
  170. background-position: -18px 0;
  171. @include opacity(.5);
  172. cursor:default;
  173. }
  174. .#{$prefix}toolbar-scroll-left {
  175. background-image: theme-background-image($theme-name, 'toolbar/scroll-left.gif');
  176. background-position: -14px 0;
  177. }
  178. .#{$prefix}toolbar-scroll-left-hover {
  179. background-position: 0 0;
  180. }
  181. .#{$prefix}toolbar-scroll-left-disabled {
  182. background-position: -14px 0;
  183. }
  184. .#{$prefix}toolbar-scroll-left {
  185. width: 14px;
  186. height: 22px;
  187. border-bottom: 1px solid #8db2e3;
  188. }
  189. }
  190. .#{$prefix}horizontal-box-overflow-body {
  191. float: left;
  192. }
  193. .#{$prefix}box-scroller-right {
  194. float: right;
  195. height: 100%;
  196. z-index: 5;
  197. .#{$prefix}toolbar-scroll-right,
  198. .#{$prefix}tabbar-scroll-right {
  199. width: 18px;
  200. position: relative;
  201. cursor: pointer;
  202. height: $tab-height;
  203. background: transparent no-repeat 0 0;
  204. background-image: theme-background-image($theme-name, 'tab-bar/scroll-right.gif');
  205. }
  206. .#{$prefix}toolbar-scroll-right-hover {
  207. background-position: -18px 0;
  208. }
  209. .#{$prefix}toolbar-scroll-right-disabled,
  210. .#{$prefix}tabbar-scroll-right-disabled {
  211. background-position: 0 0;
  212. @include opacity(.5);
  213. cursor:default;
  214. }
  215. .#{$prefix}toolbar-scroll-right {
  216. background-image: theme-background-image($theme-name, 'toolbar/scroll-right.gif');
  217. }
  218. .#{$prefix}toolbar-scroll-right-hover {
  219. background-position: -14px 0;
  220. }
  221. .#{$prefix}toolbar-scroll-right-disabled {
  222. background-position: 0 0;
  223. }
  224. .#{$prefix}toolbar-scroll-right {
  225. width: 14px;
  226. height: 22px;
  227. border-bottom: 1px solid #8db2e3;
  228. }
  229. }
  230. // Classes for vertical Box layout scroller
  231. .#{$prefix}box-scroller-top {
  232. .#{$prefix}box-scroller {
  233. line-height: 0;
  234. font-size: 0;
  235. }
  236. .#{$prefix}menu-scroll-top {
  237. background: transparent no-repeat center center;
  238. background-image: theme-background-image($theme-name, 'layout/mini-top.gif');
  239. height: 8px;
  240. cursor: pointer;
  241. }
  242. }
  243. .#{$prefix}box-scroller-bottom {
  244. .#{$prefix}box-scroller {
  245. line-height: 0;
  246. font-size: 0;
  247. }
  248. .#{$prefix}menu-scroll-bottom {
  249. background: transparent no-repeat center center;
  250. background-image: theme-background-image($theme-name, 'layout/mini-bottom.gif');
  251. height: 8px;
  252. cursor: pointer;
  253. }
  254. }
  255. .#{$prefix}box-menu-right {
  256. float: right;
  257. padding-right: $toolbar-horizontal-spacing;
  258. }
  259. .#{$prefix}column {
  260. float: left;
  261. }
  262. @if $include-ie {
  263. .#{$prefix}ie6 .#{$prefix}column {
  264. display: inline; /*prevent IE6 double-margin bug*/
  265. }
  266. .#{$prefix}quirks .#{$prefix}ie .#{$prefix}form-layout-table, .#{$prefix}quirks .#{$prefix}ie .#{$prefix}form-layout-table tbody tr.#{$prefix}form-item {
  267. position: relative;
  268. }
  269. }
  270. }