thirdparty-jqgrid.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. .enable_plugin_jqgrid() when(@enable-plugin-jqgrid = true) {
  2. .ui-jqgrid {
  3. .ui-jqgrid-view,
  4. .ui-paging-info,
  5. .ui-pg-table,
  6. .ui-pg-selbox {
  7. font-size: @baseFontSize;
  8. }
  9. .ui-jqgrid-title {
  10. float: left;
  11. margin: 8px;
  12. }
  13. .ui-jqgrid-title-rtl {
  14. float: right;
  15. margin: 8px;
  16. }
  17. }
  18. .ui-jqgrid-view > .ui-jqgrid-titlebar {
  19. height: 40px;
  20. line-height: 24px;
  21. color: #FFF;
  22. background: @table-header-bg;
  23. padding:0;
  24. font-size: floor(@baseFontSize * 1.2);
  25. }
  26. .ui-jqgrid tr.jqgrow.ui-row-rtl td:last-child {
  27. border-right:none;
  28. border-left:1px solid #E1E1E1;
  29. }
  30. .ui-jqgrid .ui-jqgrid-hdiv {
  31. background-color:@modal-footer-bg;
  32. border: 1px solid #D3D3D3;
  33. border-width:1px 0 0 1px;
  34. line-height: 15px;
  35. font-weight: bold;
  36. color: #777;
  37. text-shadow: none;
  38. }
  39. .ui-jqgrid .ui-jqgrid-htable {
  40. thead {
  41. background-color:@modal-footer-bg;
  42. }
  43. th span.ui-jqgrid-resize {
  44. height: 45px !important;
  45. }
  46. th div {
  47. padding-top: 12px;
  48. padding-bottom: 12px;
  49. }
  50. }
  51. .ui-jqgrid-hdiv .ui-jqgrid-htable {
  52. border-top:none;
  53. }
  54. //when titlebar is hidden
  55. .ui-jqgrid-hdiv .ui-jqgrid-htable {
  56. border-top: 1px solid #E1E1E1;
  57. }
  58. .ui-jqgrid-titlebar {
  59. position:relative;
  60. top:1px;//so it will cover the .ui-jqgrid-htable border if it's visible
  61. z-index:1;
  62. }
  63. .ui-jqgrid {
  64. tr.jqgrow , tr.ui-row-ltr , tr.ui-row-rtl{
  65. border:none;
  66. }
  67. tr.ui-row-ltr td, tr.ui-row-rtl td {
  68. border-bottom: 1px solid #E1E1E1;
  69. padding:6px 4px;
  70. border-color:#E1E1E1;
  71. }
  72. tr.ui-state-highlight.ui-row-ltr td {
  73. border-right-color:#C7D3A9;
  74. }
  75. tr.ui-state-highlight.ui-row-rtl td {
  76. border-left-color:#C7D3A9;
  77. }
  78. }
  79. .ui-jqgrid-btable .ui-widget-content {
  80. &.ui-priority-secondary{
  81. background-image:none;
  82. background-color: #F9F9F9;
  83. opacity: 1;
  84. }
  85. &.ui-state-hover {
  86. background-image:none;
  87. background-color: #EFF4F7;
  88. opacity: 1;
  89. }
  90. &.ui-state-highlight {
  91. background-color:#E4EFC9;
  92. }
  93. }
  94. .ui-jqgrid {
  95. .ui-jqgrid-pager {
  96. line-height: 15px;
  97. height: 55px;
  98. padding-top:3px !important;
  99. padding-bottom:5px !important;
  100. background-color:@modal-footer-bg !important;
  101. border-bottom: 1px solid #E1E1E1 !important;
  102. border-top: 1px solid #E1E1E1 !important;
  103. //border:1px solid #E1E1E1 !important;
  104. }
  105. .ui-pg-input {
  106. font-size: inherit;
  107. width:24px;
  108. height:20px;
  109. line-height:16px;
  110. .box-sizing(content-box);
  111. text-align:center;
  112. padding-top:1px; padding-bottom:1px;
  113. }
  114. .ui-pg-selbox {
  115. display: block;
  116. height:24px;
  117. width:60px;
  118. margin: 0;
  119. padding: 1px;
  120. line-height: normal;
  121. }
  122. .ui-jqgrid-htable th div{
  123. overflow:visible;
  124. }
  125. .ui-pager-control {
  126. height: 50px;
  127. position: relative;
  128. padding-left:9px;
  129. padding-right:9px;
  130. }
  131. .ui-jqgrid-toppager {
  132. height:auto !important;
  133. background-color:@modal-footer-bg;
  134. border-bottom:1px solid #E1E1E1 !important;
  135. }
  136. .jqgrow .editable {
  137. max-width: 90%;
  138. max-width: calc(98% - 6px) !important;
  139. }
  140. }
  141. .ui-pg-table .navtable .ui-corner-all{
  142. border-radius: 0;
  143. }
  144. .ui-jqgrid .ui-pg-button:hover {
  145. padding: 1px;
  146. }
  147. .ui-jqgrid .ui-pg-button .ui-separator {
  148. margin-left:4px;
  149. margin-right:4px;
  150. border-color:#C9D4DB;
  151. }
  152. .ui-jqgrid .ui-jqgrid-btable {
  153. border-left:1px solid #E1E1E1;
  154. }
  155. .ui-jqgrid .ui-jqgrid-bdiv {
  156. border-top:1px solid #E1E1E1;
  157. //.box-sizing(content-box);
  158. }
  159. .ui-jqgrid .loading {
  160. position: absolute;
  161. top: 45%;
  162. left: 45%;
  163. width: auto;
  164. height: auto;
  165. z-index: 101;
  166. padding: 6px;
  167. margin: 5px;
  168. text-align: center;
  169. //display: none;
  170. font-weight: bold;
  171. font-size: @baseFontSize - 1;
  172. background-color: #FFF;
  173. border: 2px solid #8EB8D1;
  174. color: #E2B018;
  175. }
  176. .ui-jqgrid .ui-search-toolbar {
  177. border-top: 1px solid #E1E1E1;
  178. }
  179. .ui-jqgrid .ui-jqgrid-labels {
  180. border-bottom:none;
  181. background:#F2F2F2;
  182. #gradient > .vertical(@table-labels-grad-color1 , @table-labels-grad-color2);
  183. padding:0 !important;
  184. border-left:1px solid #E1E1E1 !important;
  185. th {
  186. border-right:1px solid #E1E1E1 !important;
  187. text-align:left !important;
  188. }
  189. }
  190. /* checkbox container */
  191. .ui-jqgrid-labels th[id*="_cb"]:first-child > div {
  192. padding-top:0;
  193. text-align:center !important;
  194. }
  195. .ui-jqgrid-sortable {
  196. padding-left:4px;
  197. font-size:@baseFontSize;
  198. color:#777;
  199. font-weight:bold;
  200. &:hover {
  201. color:@table-sort-hover;
  202. }
  203. }
  204. th[aria-selected=true] {
  205. #gradient > .vertical(#EFF3F8 , #E3E7ED);
  206. .ui-jqgrid-sortable {
  207. color:@table-sort-active;
  208. }
  209. }
  210. .ui-jqgrid .ui-icon {
  211. text-indent: 0;
  212. color: @table-sort-active;
  213. float: none;
  214. right: 2px;
  215. //position: absolute;
  216. .rtl & {
  217. right: auto;
  218. left: 2px;
  219. }
  220. }
  221. .ui-grid-ico-sort:before {
  222. display: inline;
  223. content: "\f0d7";
  224. font-family: FontAwesome;
  225. font-size: 12px;
  226. }
  227. .ui-icon-asc:before {
  228. content:"\f0d8";
  229. }
  230. .ui-state-disabled {
  231. color:#BBB;
  232. }
  233. .ui-pg-table > tbody > tr > .ui-pg-button > .ui-icon {
  234. display:inline-block;
  235. padding:0;
  236. width:24px; height:24px; line-height:22px;
  237. text-align:center;
  238. position:static;
  239. float:none;
  240. margin:0 2px !important;
  241. color:#808080;
  242. border:1px solid #CCC;
  243. background-color:#FFF;
  244. border-radius:100%;
  245. &:hover {
  246. color:#699AB5;
  247. border-color:#699AB5;
  248. }
  249. &:before {
  250. width:20px;
  251. text-align:center;
  252. display:inline-block;
  253. }
  254. }
  255. .ui-pg-table > tbody > tr > .ui-pg-button.ui-state-disabled .ui-icon{
  256. color:#B0B0B0;
  257. background-color:#F7F7F7;
  258. border-color:#DDD;
  259. .transform(~"scale(0.9)");
  260. }
  261. .ui-jqgrid-btable {
  262. input , textarea, select{
  263. padding:2px;
  264. width:auto;
  265. max-width:100%;
  266. margin-bottom:0;
  267. }
  268. select {
  269. padding:1px;
  270. height:25px;
  271. line-height:25px;
  272. }
  273. }
  274. .ui-pg-div .ui-icon{
  275. display: inline-block;
  276. width: 18px;
  277. float: none;
  278. position: static;
  279. text-align: center;
  280. opacity: 0.85;
  281. .transition(~"all 0.12s");
  282. margin: 0 1px;
  283. vertical-align: middle;
  284. cursor: pointer;
  285. font-size: 17px;
  286. &:hover{
  287. .transform(~"scale(1.2)");
  288. opacity: 1;
  289. position: static;
  290. margin: 0 1px;
  291. }
  292. &:before {
  293. font-family:FontAwesome;
  294. display:inline;
  295. }
  296. }
  297. .ui-jqgrid {
  298. .ui-icon-pencil { color:#478FCA; }
  299. .ui-icon-pencil:before { content:"\f040"; }
  300. .ui-icon-trash { color:#DD5A43; }
  301. .ui-icon-trash:before { content:"\f014"; }
  302. .ui-icon-disk { color:#69AA46; }
  303. .ui-icon-disk:before { content:"\f00c"; }
  304. .ui-icon-cancel { color:#DD5A43; }
  305. .ui-icon-cancel:before { content:"\f00d"; }
  306. }
  307. .ui-jqdialog-content, .ui-jqdialog .ui-jqdialog-content {
  308. font-size:@baseFontSize;
  309. padding:4px 0 0;
  310. .formdata {
  311. font-size:@baseFontSize;
  312. padding:6px 12px;
  313. }
  314. .form-view-data {
  315. vertical-align:middle;
  316. font-size:@baseFontSize;
  317. }
  318. &[id*="alertcnt_"]{
  319. padding: 8px 11px;
  320. }
  321. }
  322. .ui-jqdialog-content {
  323. .CaptionTD {
  324. font-size: @baseFontSize - 1;
  325. text-align: right;
  326. color: #666;
  327. }
  328. .FormData {
  329. border-bottom:1px dotted #E8E8E8;
  330. &:last-child {
  331. border-bottom:none;
  332. }
  333. > td {
  334. padding-top:6px;
  335. padding-bottom:6px;
  336. }
  337. }
  338. input.FormElement {
  339. width:auto;
  340. }
  341. select.FormElement {
  342. padding:1px;
  343. height:25px;
  344. line-height:25px;
  345. width:auto;
  346. }
  347. td.EditButton {
  348. padding:8px;
  349. }
  350. }
  351. .EditTable {
  352. background-color:@modal-footer-bg;
  353. border-top:1px solid #D6E1EA !important;
  354. padding:8px;
  355. tr:first-child{
  356. display:none;
  357. }
  358. .navButton .fm-button {
  359. float:none !important;
  360. width:auto !important;
  361. margin:1px 1px 2px !important;
  362. background-color:transparent;
  363. border-radius:100%;
  364. &:hover {
  365. background-color:transparent;
  366. }
  367. &:focus {
  368. outline:none;
  369. }
  370. .@{icon} {
  371. display:inline-block;
  372. color:#999;
  373. border:1px solid #AAA;
  374. width:26px;
  375. height:26px; line-height:26px;
  376. text-align:center;
  377. border-radius:100%;
  378. background-color:#FFF;
  379. }
  380. &:hover .@{icon} {
  381. color:#699AB5;
  382. border-color:#699AB5;
  383. }
  384. &.ui-state-disabled , &.ui-state-disabled:hover {
  385. .@{icon} {
  386. color:#BBB;
  387. border-color:#CCC;
  388. .transform(~"scale(0.88)");
  389. }
  390. }
  391. }
  392. }
  393. .FormGrid .EditTable {
  394. background-color:#FFF;
  395. border-top:none !important;
  396. padding:0;
  397. tr:first-child{
  398. display:none;
  399. }
  400. }
  401. .ui-jqgrid .ui-jqgrid-view {
  402. input, select, textarea, button {
  403. font-size: @baseFontSize;
  404. }
  405. }
  406. .ui-jqdialog-content .searchFilter {
  407. select {
  408. padding:1px;
  409. height:26px;
  410. line-height:26px;
  411. width:auto; max-width:95%;
  412. margin-bottom:0;
  413. }
  414. .input-elm {
  415. margin-bottom:0;
  416. height:18px;
  417. line-height:18px;
  418. width:95% !important;
  419. padding-left:1px;
  420. padding-right:1px;
  421. .box-sizing(content-box);
  422. }
  423. table {
  424. margin-left:4px;
  425. }
  426. tr td {
  427. padding:5px 0;
  428. }
  429. .add-group , .add-rule , .delete-group {
  430. margin-left: 4px !important;
  431. font-size: @baseFontSize + 2 !important;
  432. }
  433. .delete-rule {
  434. border:none;
  435. background-color:#FFF;
  436. color: #D15B47;
  437. font-size: 20px;
  438. width: 22px;
  439. line-height: 10px;
  440. padding: 0;
  441. text-shadow: none !important;
  442. display:inline-block;
  443. .transition(~"all 0.1s");
  444. opacity:0.85;
  445. &:hover {
  446. .transform(~"scale(1.1)");
  447. color:#B74635;
  448. opacity:1;
  449. }
  450. }
  451. .queryresult {
  452. margin-bottom:11px;
  453. td.query {
  454. padding:6px 11px;
  455. border:1px solid #E1E1E1;
  456. background-color:#EEEEEE;
  457. &:empty {
  458. display:none;
  459. }
  460. }
  461. }
  462. }
  463. .ui-state-error {
  464. background-color: @state-danger-bg;
  465. border: 1px solid @state-danger-border;
  466. color: @state-danger-text;
  467. margin:4px 4px 8px;
  468. padding: 6px 10px;
  469. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  470. font-size:@baseFontSize;
  471. }
  472. .ui-jqdialog .ui-widget-header {
  473. #gradient > .vertical(#FFFFFF , #EEEEEE);
  474. border-image: none;
  475. border-bottom:1px solid solid;
  476. color: #669FC7;
  477. min-height: 38px;
  478. position: relative;
  479. .ui-jqdialog-title{
  480. line-height: 38px;
  481. margin: 0;
  482. padding: 0;
  483. padding-left: 12px;
  484. text-align: left;
  485. }
  486. }
  487. .widget-header .ui-jqdialog-title{
  488. padding-left:0 !important;
  489. padding-right:0 !important;
  490. }
  491. .ui-jqdialog .ui-widget-header .widget-header{
  492. border-bottom:none;
  493. }
  494. .ui-jqdialog .ui-jqdialog-titlebar {
  495. border-bottom:1px solid #DDD !important;
  496. }
  497. .fm-button {
  498. margin:0 4px;
  499. }
  500. .fm-button:not(.btn) {
  501. background-color: @btn-default;
  502. border-radius: 0 ;
  503. box-shadow: none;
  504. color: #FFFFFF ;
  505. cursor: pointer;
  506. display: inline-block;
  507. font-size: @baseFontSize;
  508. line-height: 28px;padding: 0 12px 1px;
  509. margin: 0 8px;
  510. position: relative;
  511. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  512. .transition(~"all 0.15s");
  513. vertical-align: middle;
  514. }
  515. .fm-button.ui-state-default:hover {
  516. background-color:@btn-default-hover;
  517. }
  518. //search toolbar
  519. .ui-jqgrid .ui-jqgrid-htable .ui-search-toolbar th {
  520. height: 30px;
  521. padding-top:2px;
  522. white-space: normal;
  523. div {
  524. padding-top: 0;
  525. padding-bottom: 0;
  526. height: 30px;
  527. line-height: 26px;
  528. }
  529. }
  530. //titlebar close/open button
  531. .ui-jqgrid .ui-jqgrid-titlebar-close {
  532. top: 10%;
  533. height: auto;
  534. padding: 0;
  535. margin: 2px 8px 0 0;
  536. text-align: center;
  537. border-radius: 4px;
  538. &:hover {
  539. background-color: rgba(255,255,255,0.2);
  540. }
  541. .ui-icon:before {
  542. display: inline-block;
  543. font-family: FontAwesome;
  544. content: "\f077";
  545. color: #FFF;
  546. }
  547. .ui-icon-circle-triangle-s:before {
  548. content: "\f078";
  549. }
  550. }
  551. .ui-jqgrid .tree-wrap-ltr {
  552. margin: 0 4px;
  553. float: none;
  554. display: inline;
  555. }
  556. .ui-jqgrid .tree-wrap-rtl {
  557. margin: 2px 4px 0;
  558. }
  559. ///
  560. //subgrid
  561. .ui-jqgrid .ui-subgrid {
  562. border-bottom: 1px solid #E1E1E1;
  563. background-color: #F6FAFF;
  564. .ui-jqgrid-btable {
  565. background-color: #FFF;
  566. }
  567. .ui-jqgrid .ui-jqgrid-hdiv {
  568. background-color: transparent;
  569. margin-top: 4px;
  570. .ui-jqgrid-htable {
  571. .ui-jqgrid-labels {
  572. border-bottom: 1px solid #E1E1E1;
  573. background: #F1F1F1;
  574. }
  575. th[aria-selected="true"] {
  576. background: #E5E9EF;
  577. }
  578. th .ui-jqgrid-sortable {
  579. font-size: 12px;
  580. }
  581. th div {
  582. padding-top: 8px;
  583. padding-bottom: 8px;
  584. }
  585. th span.ui-jqgrid-resize {
  586. height: 36px !important;
  587. }
  588. }
  589. }
  590. .ui-jqgrid .ui-jqgrid-bdiv {
  591. height: auto !important;
  592. max-height: 150px;
  593. margin-bottom: 4px;
  594. border-top-width: 0;
  595. border-bottom: 1px solid #E1E1E1;
  596. }
  597. }
  598. .ui-jqgrid {
  599. .ui-sgcollapsed > a:hover {
  600. text-decoration: none;
  601. }
  602. }
  603. @media only screen and (max-width: @screen-xs-max) {
  604. .ui-jqgrid .ui-jqgrid-pager {
  605. height: 90px;
  606. > .ui-pager-control {
  607. height: 85px;
  608. padding-top: 9px;
  609. > .ui-pg-table {
  610. > tbody > tr > td {
  611. vertical-align: top;
  612. //move the center one a bit down
  613. &#grid-pager_center {
  614. width: 0 !important;
  615. position: static;
  616. > .ui-pg-table {
  617. margin: 36px auto 0;
  618. position: absolute;
  619. right: 0;
  620. left: 0;
  621. text-align: center;
  622. }
  623. }
  624. }
  625. }
  626. }
  627. }
  628. }
  629. @media only screen and (max-width: @screen-xs-max) and (-webkit-min-device-pixel-ratio:0) {
  630. .ui-jqgrid .ui-jqgrid-pager > .ui-pager-control > .ui-pg-table > tbody > tr > td#grid-pager_center > .ui-pg-table {
  631. width: 300px;//required by chrome to put the table at center
  632. }
  633. }
  634. }
  635. .enable_plugin_jqgrid();