thirdparty-jqgrid.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  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: @base-font-size;
  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(@base-font-size * 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: @base-font-size - 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:@base-font-size;
  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. &.ui-state-disabled {
  221. color: #BBB;
  222. &:hover {
  223. padding: 0;
  224. }
  225. }
  226. }
  227. .ui-grid-ico-sort:before {
  228. display: inline;
  229. content: "\f0d7";
  230. font-family: FontAwesome;
  231. font-size: @base-font-size - 1;
  232. }
  233. .ui-icon-asc:before {
  234. content:"\f0d8";
  235. }
  236. .ui-pg-table > tbody > tr > .ui-pg-button > .ui-icon {
  237. display:inline-block;
  238. padding:0;
  239. width:24px; height:24px; line-height:22px;
  240. text-align:center;
  241. position:static;
  242. float:none;
  243. margin:0 2px !important;
  244. color:#808080;
  245. border:1px solid #CCC;
  246. background-color:#FFF;
  247. border-radius:100%;
  248. &:hover {
  249. color:#699AB5;
  250. border-color:#699AB5;
  251. }
  252. &:before {
  253. width:20px;
  254. text-align:center;
  255. display:inline-block;
  256. }
  257. }
  258. .ui-pg-table > tbody > tr > .ui-pg-button.ui-state-disabled .ui-icon{
  259. color:#B0B0B0;
  260. background-color:#F7F7F7;
  261. border-color:#DDD;
  262. .transform(~"scale(0.9)");
  263. }
  264. .ui-jqgrid-btable {
  265. input , textarea, select{
  266. padding:2px;
  267. width:auto;
  268. max-width:100%;
  269. margin-bottom:0;
  270. }
  271. select {
  272. padding:1px;
  273. height:25px;
  274. line-height:25px;
  275. }
  276. }
  277. .ui-pg-div .ui-icon{
  278. display: inline-block;
  279. width: 18px;
  280. float: none;
  281. position: static;
  282. text-align: center;
  283. opacity: 0.85;
  284. .transition(~"all 0.12s");
  285. margin: 0 1px;
  286. vertical-align: middle;
  287. cursor: pointer;
  288. font-size: @font-size-grid-pager;
  289. &:hover{
  290. .transform(~"scale(1.2)");
  291. opacity: 1;
  292. position: static;
  293. margin: 0 1px;
  294. }
  295. &:before {
  296. font-family:FontAwesome;
  297. display:inline;
  298. }
  299. }
  300. .ui-jqgrid {
  301. .ui-icon-pencil { color:#478FCA; }
  302. .ui-icon-pencil:before { content:"\f040"; }
  303. .ui-icon-trash { color:#DD5A43; }
  304. .ui-icon-trash:before { content:"\f014"; }
  305. .ui-icon-disk { color:#69AA46; }
  306. .ui-icon-disk:before { content:"\f00c"; }
  307. .ui-icon-cancel { color:#DD5A43; }
  308. .ui-icon-cancel:before { content:"\f00d"; }
  309. }
  310. .ui-jqdialog-content, .ui-jqdialog .ui-jqdialog-content {
  311. font-size:@base-font-size;
  312. padding:4px 0 0;
  313. .formdata {
  314. font-size:@base-font-size;
  315. padding:6px 12px;
  316. }
  317. .form-view-data {
  318. vertical-align:middle;
  319. font-size:@base-font-size;
  320. }
  321. &[id*="alertcnt_"]{
  322. padding: 8px 11px;
  323. }
  324. }
  325. .ui-jqdialog-content {
  326. .CaptionTD {
  327. font-size: @base-font-size - 1;
  328. text-align: right;
  329. color: #666;
  330. }
  331. .FormData {
  332. border-bottom:1px dotted #E8E8E8;
  333. &:last-child {
  334. border-bottom:none;
  335. }
  336. > td {
  337. padding-top:6px;
  338. padding-bottom:6px;
  339. }
  340. }
  341. input.FormElement {
  342. width:auto;
  343. }
  344. select.FormElement {
  345. padding:1px;
  346. height:25px;
  347. line-height:25px;
  348. width:auto;
  349. }
  350. td.EditButton {
  351. padding:8px;
  352. }
  353. }
  354. .EditTable {
  355. background-color:@modal-footer-bg;
  356. border-top:1px solid #D6E1EA !important;
  357. padding:8px;
  358. tr:first-child{
  359. display:none;
  360. }
  361. .navButton .fm-button {
  362. float:none !important;
  363. width:auto !important;
  364. margin:1px 1px 2px !important;
  365. background-color:transparent;
  366. border-radius:100%;
  367. &:hover {
  368. background-color:transparent;
  369. }
  370. &:focus {
  371. outline:none;
  372. }
  373. .@{icon} {
  374. display:inline-block;
  375. color:#999;
  376. border:1px solid #AAA;
  377. width:26px;
  378. height:26px; line-height:26px;
  379. text-align:center;
  380. border-radius:100%;
  381. background-color:#FFF;
  382. }
  383. &:hover .@{icon} {
  384. color:#699AB5;
  385. border-color:#699AB5;
  386. }
  387. &.ui-state-disabled , &.ui-state-disabled:hover {
  388. .@{icon} {
  389. color:#BBB;
  390. border-color:#CCC;
  391. .transform(~"scale(0.88)");
  392. }
  393. }
  394. }
  395. }
  396. .FormGrid .EditTable {
  397. background-color:#FFF;
  398. border-top:none !important;
  399. padding:0;
  400. tr:first-child{
  401. display:none;
  402. }
  403. }
  404. .ui-jqgrid .ui-jqgrid-view {
  405. input, select, textarea, button {
  406. font-size: @base-font-size;
  407. }
  408. }
  409. .ui-jqdialog-content .searchFilter {
  410. select {
  411. padding:1px;
  412. height:26px;
  413. line-height:26px;
  414. width:auto; max-width:95%;
  415. margin-bottom:0;
  416. }
  417. .input-elm {
  418. margin-bottom:0;
  419. height:18px;
  420. line-height:18px;
  421. width:95% !important;
  422. padding-left:1px;
  423. padding-right:1px;
  424. .box-sizing(content-box);
  425. }
  426. table {
  427. margin-left:4px;
  428. }
  429. tr td {
  430. padding:5px 0;
  431. }
  432. .add-group , .add-rule , .delete-group {
  433. margin-left: 4px !important;
  434. font-size: @base-font-size + 2 !important;
  435. }
  436. .delete-rule {
  437. border:none;
  438. background-color:#FFF;
  439. color: #D15B47;
  440. font-size: 20px;
  441. width: 22px;
  442. line-height: 10px;
  443. padding: 0;
  444. text-shadow: none !important;
  445. display:inline-block;
  446. .transition(~"all 0.1s");
  447. opacity:0.85;
  448. &:hover {
  449. .transform(~"scale(1.1)");
  450. color:#B74635;
  451. opacity:1;
  452. }
  453. }
  454. .queryresult {
  455. margin-bottom:11px;
  456. td.query {
  457. padding:6px 11px;
  458. border:1px solid #E1E1E1;
  459. background-color:#EEEEEE;
  460. &:empty {
  461. display:none;
  462. }
  463. }
  464. }
  465. }
  466. .ui-state-error {
  467. background-color: @state-danger-bg;
  468. border: 1px solid @state-danger-border;
  469. color: @state-danger-text;
  470. margin:4px 4px 8px;
  471. padding: 6px 10px;
  472. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  473. font-size:@base-font-size;
  474. }
  475. .ui-jqdialog .ui-widget-header {
  476. #gradient > .vertical(#FFFFFF , #EEEEEE);
  477. border-image: none;
  478. border-bottom:1px solid solid;
  479. color: #669FC7;
  480. min-height: 38px;
  481. position: relative;
  482. .ui-jqdialog-title{
  483. line-height: 38px;
  484. margin: 0;
  485. padding: 0;
  486. padding-left: 12px;
  487. text-align: left;
  488. }
  489. }
  490. .widget-header .ui-jqdialog-title{
  491. padding-left:0 !important;
  492. padding-right:0 !important;
  493. }
  494. .ui-jqdialog .ui-widget-header .widget-header{
  495. border-bottom:none;
  496. }
  497. .ui-jqdialog .ui-jqdialog-titlebar {
  498. border-bottom:1px solid #DDD !important;
  499. }
  500. .fm-button {
  501. margin:0 4px;
  502. }
  503. .fm-button:not(.btn) {
  504. background-color: @btn-default;
  505. border-radius: 0 ;
  506. box-shadow: none;
  507. color: #FFFFFF ;
  508. cursor: pointer;
  509. display: inline-block;
  510. font-size: @base-font-size;
  511. line-height: 28px;padding: 0 12px 1px;
  512. margin: 0 8px;
  513. position: relative;
  514. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  515. .transition(~"all 0.15s");
  516. vertical-align: middle;
  517. }
  518. .fm-button.ui-state-default:hover {
  519. background-color:@btn-default-hover;
  520. }
  521. //search toolbar
  522. .ui-jqgrid .ui-jqgrid-htable .ui-search-toolbar th {
  523. height: 30px;
  524. padding-top:2px;
  525. white-space: normal;
  526. div {
  527. padding-top: 0;
  528. padding-bottom: 0;
  529. height: 30px;
  530. line-height: 26px;
  531. }
  532. }
  533. //titlebar close/open button
  534. .ui-jqgrid .ui-jqgrid-titlebar-close {
  535. top: 10%;
  536. height: auto;
  537. padding: 0;
  538. margin: 2px 8px 0 0;
  539. text-align: center;
  540. border-radius: 4px;
  541. &:hover {
  542. background-color: rgba(255,255,255,0.2);
  543. }
  544. .ui-icon:before {
  545. display: inline-block;
  546. font-family: FontAwesome;
  547. content: "\f077";
  548. color: #FFF;
  549. }
  550. .ui-icon-circle-triangle-s:before {
  551. content: "\f078";
  552. }
  553. }
  554. .ui-jqgrid .tree-wrap-ltr {
  555. margin: 0 4px;
  556. float: none;
  557. display: inline;
  558. }
  559. .ui-jqgrid .tree-wrap-rtl {
  560. margin: 2px 4px 0;
  561. }
  562. ///
  563. //subgrid
  564. .ui-jqgrid .ui-subgrid {
  565. border-bottom: 1px solid #E1E1E1;
  566. background-color: #F6FAFF;
  567. .ui-jqgrid-btable {
  568. background-color: #FFF;
  569. }
  570. .ui-jqgrid .ui-jqgrid-hdiv {
  571. background-color: transparent;
  572. margin-top: 4px;
  573. .ui-jqgrid-htable {
  574. .ui-jqgrid-labels {
  575. border-bottom: 1px solid #E1E1E1;
  576. background: #F1F1F1;
  577. }
  578. th[aria-selected="true"] {
  579. background: #E5E9EF;
  580. }
  581. th .ui-jqgrid-sortable {
  582. font-size: 12px;
  583. }
  584. th div {
  585. padding-top: 8px;
  586. padding-bottom: 8px;
  587. }
  588. th span.ui-jqgrid-resize {
  589. height: 36px !important;
  590. }
  591. }
  592. }
  593. .ui-jqgrid .ui-jqgrid-bdiv {
  594. height: auto !important;
  595. max-height: 150px;
  596. margin-bottom: 4px;
  597. border-top-width: 0;
  598. border-bottom: 1px solid #E1E1E1;
  599. }
  600. }
  601. .ui-jqgrid {
  602. .ui-sgcollapsed > a:hover {
  603. text-decoration: none;
  604. }
  605. }
  606. @media only screen and (max-width: @screen-xs-max) {
  607. .ui-jqgrid .ui-jqgrid-pager {
  608. height: 90px;
  609. > .ui-pager-control {
  610. height: 85px;
  611. padding-top: 9px;
  612. > .ui-pg-table {
  613. > tbody > tr > td {
  614. vertical-align: top;
  615. //move the center one a bit down
  616. &#grid-pager_center {
  617. width: 0 !important;
  618. position: static;
  619. > .ui-pg-table {
  620. margin: 36px auto 0;
  621. position: absolute;
  622. right: 0;
  623. left: 0;
  624. text-align: center;
  625. }
  626. }
  627. }
  628. }
  629. }
  630. }
  631. }
  632. @media only screen and (max-width: @screen-xs-max) and (-webkit-min-device-pixel-ratio:0) {
  633. .ui-jqgrid .ui-jqgrid-pager > .ui-pager-control > .ui-pg-table > tbody > tr > td#grid-pager_center > .ui-pg-table {
  634. width: 300px;//required by chrome to put the table at center
  635. }
  636. }
  637. }
  638. .enable_plugin_jqgrid();