_grid.scss 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. /**
  2. * Creates base structure for a Grid.
  3. * @member Ext.grid.Panel
  4. */
  5. @mixin extjs-grid {
  6. //main grid view
  7. .#{$prefix}panel {
  8. .#{$prefix}grid-body {
  9. background: $panel-body-background-color;
  10. border-color: $panel-body-border-color;
  11. border-style: $panel-body-border-style;
  12. border-width: 1px;
  13. border-top-color: $grid-header-background-color;
  14. }
  15. // Hide using visibility so that its available width can be calculated correctly
  16. .#{$prefix}grid-header-ct-hidden {
  17. visibility: hidden;
  18. }
  19. }
  20. .#{$prefix}grid-empty {
  21. padding: 10px;
  22. color: gray;
  23. font: normal 11px tahoma, arial, helvetica, sans-serif;
  24. }
  25. .#{$prefix}grid-header-hidden .#{$prefix}grid-body {
  26. border-top-color: $panel-body-border-color !important;
  27. }
  28. .#{$prefix}grid-view {
  29. overflow: hidden;
  30. position: relative;
  31. }
  32. .#{$prefix}grid-table {
  33. table-layout: fixed;
  34. border-collapse: separate;
  35. }
  36. // Tree with a default single column is auto width
  37. // Override any inline width style set by the widget itself (through its ColumnModel) to force it to be auto width.
  38. .#{$prefix}autowidth-table table.#{$prefix}grid-table {
  39. table-layout: auto;
  40. width: auto!important;
  41. }
  42. .#{$prefix}grid-row .#{$prefix}grid-table {
  43. border-collapse: collapse;
  44. }
  45. .#{$prefix}grid-locked .#{$prefix}grid-inner-locked {
  46. border-width: 0 1px 0 0 !important;
  47. border-style: solid;
  48. }
  49. .#{$prefix}grid-header-ct {
  50. cursor: default;
  51. zoom: 1;
  52. padding: 0;
  53. border: 1px solid $panel-body-border-color;
  54. // Body border provided by headerCt only when in accordion layout.
  55. border-bottom-color: $grid-header-background-color;
  56. @if $supports-gradients or $compile-all {
  57. @include background-gradient($grid-header-background-color, $grid-header-background-gradient);
  58. }
  59. }
  60. .#{$prefix}accordion-item .#{$prefix}grid-header-ct {
  61. border-width: 0 0 1px 0!important;
  62. }
  63. .#{$prefix}column-header {
  64. padding: 0;
  65. position: absolute;
  66. overflow: hidden;
  67. border-right: 1px solid $grid-header-background-color;
  68. border-left: 0 none;
  69. border-top: 0 none;
  70. border-bottom: 0 none;
  71. text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
  72. @if $grid-header-color {
  73. color: $grid-header-color;
  74. }
  75. font: normal ceil($font-size * .9) $font-family;
  76. @if $supports-gradients or $compile-all {
  77. @include background-gradient($grid-header-background-color, $grid-header-background-gradient);
  78. }
  79. }
  80. .#{$prefix}group-header {
  81. padding: 0;
  82. border-left-width: 0;
  83. }
  84. .#{$prefix}group-sub-header {
  85. background: transparent;
  86. border-top: 1px solid $grid-header-background-color;
  87. border-left-width: 0;
  88. }
  89. .#{$prefix}column-header-inner {
  90. zoom: 1;
  91. position: relative;
  92. white-space: nowrap;
  93. line-height: $grid-header-line-height;
  94. padding: $grid-header-padding;
  95. .#{$prefix}column-header-text {
  96. white-space: nowrap;
  97. }
  98. }
  99. .#{$prefix}column-header-over,
  100. .#{$prefix}column-header-sort-ASC,
  101. .#{$prefix}column-header-sort-DESC {
  102. border-left-color: $grid-header-over-border-color;
  103. border-right-color: $grid-header-over-border-color;
  104. @if $supports-gradients or $compile-all {
  105. @include background-gradient($grid-header-over-background-color, $grid-header-over-background-gradient);
  106. }
  107. }
  108. @if not $supports-gradients or $compile-all {
  109. .#{$prefix}nlg {
  110. .#{$prefix}grid-header-ct,
  111. .#{$prefix}column-header {
  112. background: repeat-x 0 top;
  113. background-image: theme-background-image($theme-name, 'grid/column-header-bg.gif');
  114. }
  115. .#{$prefix}column-header-over,
  116. .#{$prefix}column-header-sort-ASC,
  117. .#{$prefix}column-header-sort-DESC {
  118. background: #ebf3fd repeat-x 0 top;
  119. background-image: theme-background-image($theme-name, 'grid/column-header-over-bg.gif');
  120. }
  121. }
  122. }
  123. .#{$prefix}column-header-trigger {
  124. display: none;
  125. height: 100%;
  126. width: $grid-header-trigger-width;
  127. background: no-repeat left center;
  128. background-color: #c3daf9;
  129. background-image: theme-background-image($theme-name, 'grid/grid3-hd-btn.gif');
  130. position: absolute;
  131. right: 0;
  132. top: 0;
  133. z-index: 2;
  134. cursor: pointer;
  135. }
  136. .#{$prefix}column-header-over, .#{$prefix}column-header-open {
  137. .#{$prefix}column-header-trigger {
  138. display: block;
  139. }
  140. }
  141. .#{$prefix}column-header-align-right {
  142. text-align: right;
  143. .#{$prefix}column-header-text {
  144. padding-right: 0.5ex;
  145. margin-right: 6px;
  146. }
  147. }
  148. .#{$prefix}column-header-align-center {
  149. text-align: center;
  150. }
  151. .#{$prefix}column-header-align-left {
  152. text-align: left;
  153. }
  154. // Sort direction indicator is a background of the text span.
  155. .#{$prefix}column-header-sort-ASC .#{$prefix}column-header-text {
  156. padding-right: 16px;
  157. background: no-repeat right 6px;
  158. background-image: theme-background-image($theme-name, 'grid/sort_asc.gif');
  159. }
  160. .#{$prefix}column-header-sort-DESC .#{$prefix}column-header-text {
  161. padding-right: 16px;
  162. background: no-repeat right 6px;
  163. background-image: theme-background-image($theme-name, 'grid/sort_desc.gif');
  164. }
  165. //grid rows
  166. .#{$prefix}grid-row {
  167. vertical-align: top;
  168. .#{$prefix}grid-cell {
  169. @if $grid-row-cell-color {
  170. color: $grid-row-cell-color;
  171. }
  172. font: $grid-row-cell-font;
  173. background-color: $grid-row-cell-background;
  174. border-color: $grid-row-cell-border-color;
  175. border-style: $grid-row-cell-border-style;
  176. border-top-color: lighten($grid-row-cell-border-color, 5);
  177. border-width: 0;
  178. }
  179. }
  180. .#{$prefix}grid-with-row-lines .#{$prefix}grid-cell {
  181. border-width: $grid-row-cell-border-width;
  182. }
  183. .#{$prefix}grid-rowwrap-div {
  184. border-width: $grid-row-wrap-border-width;
  185. border-color: $grid-row-wrap-border-color;
  186. border-style: $grid-row-wrap-border-style;
  187. border-top-color: lighten($grid-row-wrap-border-color, 5);
  188. overflow: hidden;
  189. }
  190. .#{$prefix}grid-row-alt .#{$prefix}grid-cell,
  191. .#{$prefix}grid-row-alt .#{$prefix}grid-rowwrap-div {
  192. background-color: $grid-row-cell-alt-background;
  193. }
  194. .#{$prefix}grid-row-over .#{$prefix}grid-cell,
  195. .#{$prefix}grid-row-over .#{$prefix}grid-rowwrap-div {
  196. border-color: $grid-row-cell-over-border-color;
  197. background-color: $grid-row-cell-over-background-color;
  198. }
  199. .#{$prefix}grid-row-focused .#{$prefix}grid-cell,
  200. .#{$prefix}grid-row-focused .#{$prefix}grid-rowwrap-div {
  201. border-color: $grid-row-cell-focus-border-color;
  202. background-color: $grid-row-cell-focus-background-color;
  203. }
  204. .#{$prefix}grid-row-selected .#{$prefix}grid-cell,
  205. .#{$prefix}grid-row-selected .#{$prefix}grid-rowwrap-div {
  206. border-style: $grid-row-cell-selected-border-style;
  207. border-color: $grid-row-cell-selected-border-color;
  208. background-color: $grid-row-cell-selected-background-color !important;
  209. }
  210. .#{$prefix}grid-rowwrap-div {
  211. .#{$prefix}grid-cell,
  212. .#{$prefix}grid-cell-inner {
  213. border-width: 0;
  214. background: transparent;
  215. }
  216. }
  217. .#{$prefix}grid-row-body-hidden {
  218. display: none;
  219. }
  220. .#{$prefix}grid-rowbody {
  221. font: $grid-row-body-font;
  222. padding: $grid-row-body-padding;
  223. p {
  224. margin: 5px 5px 10px 5px;
  225. }
  226. }
  227. //grid cells
  228. .#{$prefix}grid-cell {
  229. overflow: hidden;
  230. }
  231. .#{$prefix}grid-cell-inner {
  232. overflow: hidden;
  233. -o-text-overflow: ellipsis;
  234. text-overflow: ellipsis;
  235. padding: $grid-cell-inner-padding-top $grid-cell-inner-padding-horizontal $grid-cell-inner-padding-bottom;
  236. white-space: nowrap;
  237. }
  238. .#{$prefix}grid-with-row-lines .#{$prefix}grid-cell-inner {
  239. line-height: $grid-row-cell-line-height - 2;
  240. padding-bottom: $grid-cell-inner-padding-bottom + 1;
  241. }
  242. // Action columns with a standard, 16x16 icon require less padding
  243. .#{$prefix}action-col-cell .#{$prefix}grid-cell-inner {
  244. line-height: 0;
  245. padding: 2px;
  246. }
  247. .#{$prefix}action-col-cell .#{$prefix}item-disabled {
  248. @include opacity(0.3);
  249. }
  250. .#{$prefix}grid-with-row-lines .#{$prefix}action-col-cell .#{$prefix}grid-cell-inner {
  251. padding-top: 1px;
  252. }
  253. .#{$prefix}grid-row .#{$prefix}grid-cell-special {
  254. padding: 0;
  255. border-right: 1px solid $grid-cell-with-col-lines-border-color;
  256. @include background-gradient(#f6f6f6, 'grid-cell-special');
  257. }
  258. .#{$prefix}grid-row .#{$prefix}grid-cell-row-checker {
  259. vertical-align: middle;
  260. }
  261. /*
  262. IE6-8 have issues with shrinking the TR to 0px (even w/line-height=0), so we
  263. use an IE-specific trick to make the row disappear. We cannot do this on any
  264. other browser, because it is not a non-standard thing to do and those other
  265. browsers will do whacky things with it.
  266. */
  267. .#{$prefix}ie6,
  268. .#{$prefix}ie7,
  269. .#{$prefix}quirks .#{$prefix}ie8 {
  270. .#{$prefix}grid-header-row {
  271. position: absolute;
  272. }
  273. }
  274. .#{$prefix}grid-row-selected .#{$prefix}grid-cell-special {
  275. border-right: 1px solid adjust-color($base-color, $hue: -0.175deg, $saturation: 25.296%, $lightness: -2.549%);
  276. @include background-gradient($grid-row-cell-selected-background-color, 'grid-cell-special');
  277. }
  278. .#{$prefix}grid-dirty-cell {
  279. background-image: theme-background-image($theme-name, 'grid/dirty.gif');
  280. background-position: 0 0;
  281. background-repeat: no-repeat;
  282. }
  283. .#{$prefix}grid-cell-selected {
  284. background-color: #B8CFEE !important;
  285. }
  286. @if not $supports-gradients or $compile-all {
  287. .#{$prefix}nlg {
  288. .#{$prefix}grid-cell-special {
  289. background-repeat: repeat-y;
  290. background-position: top right;
  291. }
  292. .#{$prefix}grid-row .#{$prefix}grid-cell-special,
  293. .#{$prefix}grid-row-over .#{$prefix}grid-cell-special {
  294. background-image: theme-background-image($theme-name, 'grid/cell-special-bg.gif');
  295. }
  296. .#{$prefix}grid-row-focused .#{$prefix}grid-cell-special,
  297. .#{$prefix}grid-row-selected .#{$prefix}grid-cell-special {
  298. background-image: theme-background-image($theme-name, 'grid/cell-special-selected-bg.gif');
  299. }
  300. }
  301. }
  302. .#{$prefix}grid-with-col-lines .#{$prefix}grid-cell {
  303. padding-right: 0;
  304. border-right: 1px solid $grid-cell-with-col-lines-border-color;
  305. }
  306. .#{$prefix}property-grid {
  307. .#{$prefix}grid-row .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner,
  308. .#{$prefix}grid-row-over .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner {
  309. padding-left: 12px;
  310. background-image: theme-background-image($theme-name, 'grid/property-cell-bg.gif');
  311. background-repeat: no-repeat;
  312. background-position: -16px 2px;
  313. }
  314. }
  315. .#{$prefix}grid-with-row-lines.#{$prefix}property-grid {
  316. .#{$prefix}grid-row .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner,
  317. .#{$prefix}grid-row-over .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner {
  318. background-position: -16px 1px;
  319. }
  320. }
  321. @if $include-ie {
  322. .#{$prefix}quirks .#{$prefix}ie .#{$prefix}grid-row .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner {
  323. background-position: -16px 2px;
  324. }
  325. }
  326. .#{$prefix}unselectable {
  327. @include no-select;
  328. }
  329. .#{$prefix}grid-row-body-hidden {
  330. display: none;
  331. }
  332. .#{$prefix}grid-group-collapsed {
  333. display: none;
  334. }
  335. //grid expander
  336. .#{$prefix}grid-view {
  337. .#{$prefix}grid-td-expander {
  338. vertical-align: top;
  339. }
  340. }
  341. .#{$prefix}grid-td-expander {
  342. background: repeat-y right transparent;
  343. }
  344. .#{$prefix}grid-view {
  345. .#{$prefix}grid-td-expander {
  346. .#{$prefix}grid-cell-inner {
  347. padding: 0 !important;
  348. }
  349. }
  350. }
  351. .#{$prefix}grid-row-expander {
  352. background-image: theme-background-image($theme-name, 'grid/group-collapse.gif');
  353. background-color: transparent;
  354. width: 9px;
  355. height: 13px;
  356. margin-left: 3px;
  357. background-repeat: no-repeat;
  358. background-position: 0 -2px;
  359. }
  360. .#{$prefix}grid-row-collapsed {
  361. .#{$prefix}grid-row-expander {
  362. background-image: theme-background-image($theme-name, 'grid/group-expand.gif');
  363. }
  364. }
  365. .#{$prefix}grid-resize-marker {
  366. position: absolute;
  367. z-index: 5;
  368. top: 0;
  369. width: 1px;
  370. background-color: #0f0f0f;
  371. }
  372. //column move icons, when moving columns
  373. .col-move-top,
  374. .col-move-bottom {
  375. width: 9px;
  376. height: 9px;
  377. position: absolute;
  378. top: 0;
  379. line-height: 0;
  380. font-size: 0;
  381. overflow: hidden;
  382. z-index: 20000;
  383. background: no-repeat left top transparent;
  384. }
  385. .col-move-top {
  386. background-image: theme-background-image($theme-name, 'grid/col-move-top.gif');
  387. }
  388. .col-move-bottom {
  389. background-image: theme-background-image($theme-name, 'grid/col-move-bottom.gif');
  390. }
  391. //pading toolbar
  392. .#{$prefix}tbar-page-number {
  393. width: 30px;
  394. }
  395. //grouped grid
  396. .#{$prefix}grid-group,
  397. .#{$prefix}grid-group-body,
  398. .#{$prefix}grid-group-hd {
  399. zoom: 1;
  400. }
  401. .#{$prefix}grid-group-hd {
  402. padding-top: 6px;
  403. .#{$prefix}grid-cell-inner {
  404. padding: 10px 4px 4px 4px;
  405. background: $grid-grouped-header-background-color;
  406. border-width: $grid-grouped-header-border-width;
  407. border-style: $grid-grouped-header-border-style;
  408. border-color: $grid-grouped-header-border-color;
  409. cursor: pointer;
  410. }
  411. }
  412. .#{$prefix}grid-group-hd-collapsible {
  413. .#{$prefix}grid-group-title {
  414. background: transparent no-repeat 0 -1px;
  415. background-image: theme-background-image($theme-name, 'grid/group-collapse.gif');
  416. padding: 0 0 0 14px;
  417. }
  418. }
  419. .#{$prefix}grid-group-title {
  420. color: $grid-grouped-title-color;
  421. font: $grid-grouped-title-font;
  422. }
  423. .#{$prefix}grid-group-hd-collapsed {
  424. .#{$prefix}grid-group-title {
  425. background-image: theme-background-image($theme-name, 'grid/group-expand.gif');
  426. }
  427. }
  428. .#{$prefix}grid-group-collapsed .#{$prefix}grid-group-body {
  429. display: none;
  430. }
  431. .#{$prefix}grid-group-collapsed .#{$prefix}grid-group-title {
  432. background-image: theme-background-image($theme-name, 'grid/group-expand.gif');
  433. }
  434. .#{$prefix}group-by-icon {
  435. background-image: theme-background-image($theme-name, 'grid/group-by.gif');
  436. }
  437. .#{$prefix}show-groups-icon {
  438. background-image: theme-background-image($theme-name, 'grid/group-by.gif');
  439. }
  440. .#{$prefix}column-header-checkbox .#{$prefix}column-header-inner {
  441. padding: 0;
  442. }
  443. .#{$prefix}grid-cell-special .#{$prefix}grid-cell-inner {
  444. padding-left: 4px;
  445. padding-right: 4px;
  446. }
  447. .#{$prefix}grid-row-checker,
  448. .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
  449. height: 14px;
  450. width: 14px;
  451. line-height: 0;
  452. background-image: theme-background-image($theme-name, 'grid/unchecked.gif');
  453. background-position: -1px -1px;
  454. background-repeat: no-repeat;
  455. background-color: transparent;
  456. }
  457. // Row checker is a div but column header checker is the text span element, so make it display: block
  458. // Header checkbox element needs centering
  459. .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
  460. display: block;
  461. margin: 0 5px;
  462. }
  463. @if $include-ie or $compile-all {
  464. /* IE6, IE7, and all IE Quirks mode need line-height to be the same as checkbox height or the header/row height will be too tall */
  465. .#{$prefix}quirks .#{$prefix}ie, .#{$prefix}ie7m {
  466. .#{$prefix}grid-row-checker,
  467. .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
  468. line-height: 14px;
  469. }
  470. }
  471. }
  472. .#{$prefix}grid-hd-checker-on .#{$prefix}column-header-text {
  473. background-image: theme-background-image($theme-name, 'grid/checked.gif');
  474. }
  475. .#{$prefix}grid-cell-row-checker .#{$prefix}grid-cell-inner {
  476. padding-top: 4px;
  477. padding-bottom: 2px;
  478. line-height: $grid-row-height - 6;
  479. }
  480. .#{$prefix}grid-with-row-lines .#{$prefix}grid-cell-row-checker .#{$prefix}grid-cell-inner {
  481. padding-top: 3px;
  482. }
  483. .#{$prefix}grid-row-checker {
  484. margin-left: 1px;
  485. background-position: 50% -2px;
  486. }
  487. .#{$prefix}grid-row-selected .#{$prefix}grid-row-checker,
  488. .#{$prefix}grid-row-checked .#{$prefix}grid-row-checker {
  489. background-image: theme-background-image($theme-name, 'grid/checked.gif');
  490. }
  491. //grid icons
  492. .#{$prefix}tbar-page-first {
  493. background-image: theme-background-image($theme-name, 'grid/page-first.gif') !important;
  494. }
  495. .#{$prefix}tbar-loading {
  496. background-image: theme-background-image($theme-name, 'grid/refresh.gif') !important;
  497. }
  498. .#{$prefix}tbar-page-last {
  499. background-image: theme-background-image($theme-name, 'grid/page-last.gif') !important;
  500. }
  501. .#{$prefix}tbar-page-next {
  502. background-image: theme-background-image($theme-name, 'grid/page-next.gif') !important;
  503. }
  504. .#{$prefix}tbar-page-prev {
  505. background-image: theme-background-image($theme-name, 'grid/page-prev.gif') !important;
  506. }
  507. .#{$prefix}item-disabled {
  508. .#{$prefix}tbar-loading {
  509. background-image: theme-background-image($theme-name, 'grid/refresh-disabled.gif') !important;
  510. }
  511. .#{$prefix}tbar-page-first {
  512. background-image: theme-background-image($theme-name, 'grid/page-first-disabled.gif') !important;
  513. }
  514. .#{$prefix}tbar-page-last {
  515. background-image: theme-background-image($theme-name, 'grid/page-last-disabled.gif') !important;
  516. }
  517. .#{$prefix}tbar-page-next {
  518. background-image: theme-background-image($theme-name, 'grid/page-next-disabled.gif') !important;
  519. }
  520. .#{$prefix}tbar-page-prev {
  521. background-image: theme-background-image($theme-name, 'grid/page-prev-disabled.gif') !important;
  522. }
  523. }
  524. //menu icons
  525. .#{$prefix}hmenu-sort-asc .#{$prefix}menu-item-icon {
  526. background-image: theme-background-image($theme-name, 'grid/hmenu-asc.gif');
  527. }
  528. .#{$prefix}hmenu-sort-desc .#{$prefix}menu-item-icon {
  529. background-image: theme-background-image($theme-name, 'grid/hmenu-desc.gif');
  530. }
  531. .#{$prefix}hmenu-lock .#{$prefix}menu-item-icon {
  532. background-image: theme-background-image($theme-name, 'grid/hmenu-lock.gif');
  533. }
  534. .#{$prefix}hmenu-unlock .#{$prefix}menu-item-icon {
  535. background-image: theme-background-image($theme-name, 'grid/hmenu-unlock.gif');
  536. }
  537. .#{$prefix}group-by-icon {
  538. background-image: theme-background-image($theme-name, 'grid/group-by.gif');
  539. }
  540. .#{$prefix}cols-icon .#{$prefix}menu-item-icon {
  541. background-image: theme-background-image($theme-name, 'grid/columns.gif');
  542. }
  543. .#{$prefix}show-groups-icon {
  544. background-image: theme-background-image($theme-name, 'grid/group-by.gif');
  545. }
  546. // Drag/drop indicator styles
  547. .#{$prefix}grid-drop-indicator {
  548. position: absolute;
  549. height: 1px;
  550. line-height: 0px;
  551. background-color: #77BC71;
  552. overflow: visible;
  553. .#{$prefix}grid-drop-indicator-left {
  554. position: absolute;
  555. top: -8px;
  556. left: -12px;
  557. background-image: theme-background-image($theme-name, 'grid/dd-insert-arrow-right.png');
  558. height: 16px;
  559. width: 16px;
  560. }
  561. .#{$prefix}grid-drop-indicator-right {
  562. position: absolute;
  563. top: -8px;
  564. right: -11px;
  565. background-image: theme-background-image($theme-name, 'grid/dd-insert-arrow-left.png');
  566. height: 16px;
  567. width: 16px;
  568. }
  569. }
  570. .#{$prefix}ie6 {
  571. .#{$prefix}grid-drop-indicator-left {
  572. background-image: theme-background-image($theme-name, 'grid/dd-insert-arrow-right.gif');
  573. }
  574. .#{$prefix}grid-drop-indicator-right {
  575. background-image: theme-background-image($theme-name, 'grid/dd-insert-arrow-left.gif');
  576. }
  577. }
  578. // Cell Editor
  579. .#{$prefix}grid-editor {
  580. // Position editor text over underlying grid cell text
  581. .#{$prefix}form-text {
  582. padding: 0 $grid-cell-editor-field-padding-horizontal;
  583. }
  584. .#{$prefix}form-cb-wrap {
  585. padding-top: $grid-cell-editor-checkbox-padding-top;
  586. }
  587. }
  588. // Row Editor
  589. .#{$prefix}grid-row-editor {
  590. position: absolute !important;
  591. z-index: 1;
  592. zoom: 1;
  593. overflow: visible !important;
  594. .#{$prefix}form-text {
  595. padding: 0 $grid-row-editor-field-padding-horizontal;
  596. }
  597. .#{$prefix}form-cb-wrap {
  598. padding-top: $grid-row-editor-cb-wrap-padding-top;
  599. }
  600. .#{$prefix}form-checkbox {
  601. margin-left: $grid-row-editor-checkbox-margin-left;
  602. }
  603. .#{$prefix}form-display-field {
  604. font: $grid-editor-font;
  605. padding-top: 0;
  606. padding-left: $grid-row-editor-field-padding-horizontal;
  607. }
  608. .#{$prefix}panel-body {
  609. background-color: $grid-row-editor-background-color;
  610. border-top: $grid-row-editor-border;
  611. border-bottom: $grid-row-editor-border;
  612. }
  613. }
  614. // Row/Cell Editor Shared Styles
  615. .#{$prefix}grid-editor, .#{$prefix}grid-row-editor {
  616. // Align checkbox input
  617. .#{$prefix}form-cb-wrap {
  618. text-align: center;
  619. }
  620. .#{$prefix}form-trigger {
  621. height: $grid-row-height - $form-field-border-width;
  622. }
  623. .#{$prefix}form-trigger-wrap {
  624. .#{$prefix}form-spinner-up, .#{$prefix}form-spinner-down {
  625. background-image: theme-background-image($theme-name, 'form/spinner-small.gif');
  626. height: 10px !important;
  627. }
  628. }
  629. }
  630. .#{$prefix}grid-editor, .#{$prefix}grid-row-editor {
  631. .#{$prefix}form-text {
  632. font: $grid-editor-font;
  633. height: $grid-row-height - 2;
  634. }
  635. }
  636. .#{$prefix}border-box .#{$prefix}grid-editor,
  637. .#{$prefix}border-box .#{$prefix}grid-row-editor {
  638. .#{$prefix}form-trigger {
  639. height: $grid-row-height;
  640. }
  641. .#{$prefix}form-text {
  642. height: $grid-row-height;
  643. padding-bottom: 1px; // fix for firefox/opera since they ignore line-height on inputs
  644. }
  645. }
  646. @if $include-ie {
  647. .#{$prefix}ie {
  648. .#{$prefix}grid-editor .#{$prefix}form-text {
  649. padding-left: $grid-cell-editor-field-padding-horizontal + 1;
  650. }
  651. .#{$prefix}grid-row-editor .#{$prefix}form-text {
  652. padding-left: $grid-row-editor-field-padding-horizontal + 1;
  653. }
  654. }
  655. .#{$prefix}ie8m {
  656. .#{$prefix}grid-editor .#{$prefix}form-text,
  657. .#{$prefix}grid-row-editor .#{$prefix}form-text {
  658. padding-top: 1px;
  659. }
  660. }
  661. .#{$prefix}strict .#{$prefix}ie6,
  662. .#{$prefix}strict .#{$prefix}ie7 {
  663. .#{$prefix}grid-editor .#{$prefix}form-text,
  664. .#{$prefix}grid-row-editor .#{$prefix}form-text {
  665. height: $grid-row-height - ($form-field-border-width * 3);
  666. }
  667. }
  668. .#{$prefix}quirks .#{$prefix}ie9 {
  669. .#{$prefix}grid-editor, .#{$prefix}grid-row-editor {
  670. .#{$prefix}form-text {
  671. line-height: $grid-editor-line-height + 2;
  672. }
  673. }
  674. }
  675. }
  676. @if $include-opera {
  677. .#{$prefix}opera {
  678. .#{$prefix}grid-editor .#{$prefix}form-text {
  679. padding-left: $grid-cell-editor-field-padding-horizontal + 1;
  680. }
  681. .#{$prefix}grid-row-editor .#{$prefix}form-text {
  682. padding-left: $grid-row-editor-field-padding-horizontal + 1;
  683. }
  684. }
  685. }
  686. .#{$prefix}grid-row-editor-buttons {
  687. background-color: $grid-row-editor-background-color;
  688. position: absolute;
  689. bottom: -31px;
  690. padding: 4px;
  691. height: 32px;
  692. .#{$prefix}strict .#{$prefix}ie7m & {
  693. width: 192px;
  694. height: 24px;
  695. }
  696. }
  697. .#{$prefix}grid-row-editor-buttons-ml,
  698. .#{$prefix}grid-row-editor-buttons-mr,
  699. .#{$prefix}grid-row-editor-buttons-bl,
  700. .#{$prefix}grid-row-editor-buttons-br,
  701. .#{$prefix}grid-row-editor-buttons-bc {
  702. position: absolute;
  703. overflow: hidden;
  704. }
  705. .#{$prefix}grid-row-editor-buttons-bl,
  706. .#{$prefix}grid-row-editor-buttons-br {
  707. width: 4px;
  708. height: 4px;
  709. bottom: 0px;
  710. background-image: theme-background-image($theme-name, 'panel/panel-default-framed-corners.gif');
  711. }
  712. .#{$prefix}grid-row-editor-buttons-bl {
  713. left: 0px;
  714. background-position: 0px -16px;
  715. }
  716. .#{$prefix}grid-row-editor-buttons-br {
  717. right: 0px;
  718. background-position: 0px -20px;
  719. }
  720. .#{$prefix}grid-row-editor-buttons-bc {
  721. position: absolute;
  722. left: 4px;
  723. bottom: 0px;
  724. width: 192px;
  725. height: 1px;
  726. background-color: $grid-row-editor-border-color;
  727. }
  728. .#{$prefix}grid-row-editor-buttons-ml,
  729. .#{$prefix}grid-row-editor-buttons-mr {
  730. height: 27px;
  731. width: 1px;
  732. top: 1px;
  733. background-color: $grid-row-editor-border-color;
  734. }
  735. .#{$prefix}grid-row-editor-buttons-ml {
  736. left: 0px
  737. }
  738. .#{$prefix}grid-row-editor-buttons-mr {
  739. background-position: 0px -20px;
  740. right: 0px;
  741. }
  742. .#{$prefix}grid-row-editor-errors {
  743. ul {
  744. margin-left: 5px;
  745. }
  746. li {
  747. list-style: disc;
  748. margin-left: 15px;
  749. }
  750. }
  751. }