_grid.scss2.html 27 KB

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