Dashboard sipadu mbip
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

dataTables.jqueryui.scss 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. //
  2. // Colour customisation
  3. //
  4. // Border between the header (and footer) and the table body
  5. $table-header-border: 1px solid #111;
  6. // Border of rows / cells
  7. $table-body-border: 1px solid #ddd;
  8. // Row background colour (hover, striping etc are all based on this colour and
  9. // calculated automatically)
  10. $table-row-background: #ffffff;
  11. // Row colour, when selected (tr.selected)
  12. $table-row-selected: #B0BED9;
  13. // Text colour of the interaction control elements (info, filter, paging etc)
  14. $table-control-color: #333;
  15. // Highlight colour of the paging button for the current page
  16. $table-paging-button-active: #dcdcdc;
  17. // Hover colour of paging buttons on mouse over
  18. $table-paging-button-hover: #111;
  19. //
  20. // Functions / mixins
  21. //
  22. @function tint( $color, $percent ) {
  23. @return mix(white, $color, $percent);
  24. }
  25. @function shade( $color, $percent ) {
  26. @return mix(black, $color, $percent);
  27. }
  28. @mixin gradient( $from, $to ) {
  29. background-color: $from;
  30. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,$from), color-stop(100%,$to)); /* Chrome,Safari4+ */
  31. background: -webkit-linear-gradient(top, $from 0%, $to 100%); /* Chrome10+,Safari5.1+ */
  32. background: -moz-linear-gradient(top, $from 0%, $to 100%); /* FF3.6+ */
  33. background: -ms-linear-gradient(top, $from 0%, $to 100%); /* IE10+ */
  34. background: -o-linear-gradient(top, $from 0%, $to 100%); /* Opera 11.10+ */
  35. background: linear-gradient(to bottom, $from 0%, $to 100%); /* W3C */
  36. }
  37. /*
  38. * Table styles
  39. */
  40. table.dataTable {
  41. width: 100%;
  42. margin: 0 auto;
  43. clear: both;
  44. border-collapse: separate;
  45. border-spacing: 0;
  46. /*
  47. * Header and footer styles
  48. */
  49. thead,
  50. tfoot {
  51. th,
  52. td {
  53. padding: 4px 10px;
  54. }
  55. th {
  56. font-weight: bold;
  57. }
  58. }
  59. thead th,
  60. thead td {
  61. &:active {
  62. outline: none;
  63. }
  64. }
  65. // Sorting
  66. thead {
  67. .sorting_asc,
  68. .sorting_desc,
  69. .sorting {
  70. cursor: pointer;
  71. *cursor: hand;
  72. }
  73. th div.DataTables_sort_wrapper {
  74. position: relative;
  75. padding-right: 10px;
  76. span {
  77. position: absolute;
  78. top: 50%;
  79. margin-top: -8px;
  80. right: -5px;
  81. }
  82. }
  83. th.ui-state-default {
  84. border-right-width: 0;
  85. &:last-child {
  86. border-right-width: 1px;
  87. }
  88. }
  89. }
  90. /*
  91. * Body styles
  92. */
  93. tbody {
  94. tr {
  95. background-color: $table-row-background;
  96. &.selected {
  97. background-color: $table-row-selected;
  98. }
  99. }
  100. th,
  101. td {
  102. padding: 8px 10px;
  103. }
  104. }
  105. th.center,
  106. td.center,
  107. td.dataTables_empty {
  108. text-align: center;
  109. }
  110. th.right,
  111. td.right {
  112. text-align: right;
  113. }
  114. // Stripe classes - add "row-border" class to the table to activate
  115. &.row-border tbody,
  116. &.display tbody {
  117. th, td {
  118. border-top: $table-body-border;
  119. }
  120. tr:first-child th,
  121. tr:first-child td {
  122. border-top: none;
  123. }
  124. }
  125. // Stripe classes - add "cell-border" class to the table to activate
  126. &.cell-border tbody {
  127. th, td {
  128. border-top: $table-body-border;
  129. border-right: $table-body-border;
  130. }
  131. tr th:first-child,
  132. tr td:first-child {
  133. border-left: $table-body-border;
  134. }
  135. tr:first-child th,
  136. tr:first-child td {
  137. border-top: none;
  138. }
  139. }
  140. // Stripe classes - add "stripe" class to the table to activate
  141. &.stripe tbody,
  142. &.display tbody {
  143. tr.odd {
  144. background-color: shade($table-row-background, 2.35%); // shade by f9
  145. &.selected {
  146. background-color: shade($table-row-selected, 2.35%);
  147. }
  148. }
  149. }
  150. // Hover classes - add "hover" class to the table to activate
  151. &.hover tbody,
  152. &.display tbody {
  153. tr:hover,
  154. tr.odd:hover,
  155. tr.even:hover {
  156. background-color: shade($table-row-background, 3.6%); // shade by f5
  157. &.selected {
  158. background-color: shade($table-row-selected, 3.6%);
  159. }
  160. }
  161. }
  162. // Sort column highlighting - add "hover" class to the table to activate
  163. &.order-column,
  164. &.display {
  165. tbody {
  166. tr>.sorting_1,
  167. tr>.sorting_2,
  168. tr>.sorting_3 {
  169. background-color: shade($table-row-background, 2%); // shade by fa
  170. }
  171. tr.selected>.sorting_1,
  172. tr.selected>.sorting_2,
  173. tr.selected>.sorting_3 {
  174. background-color: shade($table-row-selected, 2%);
  175. }
  176. }
  177. }
  178. &.display tbody,
  179. &.order-column.stripe tbody {
  180. tr.odd {
  181. >.sorting_1 { background-color: shade($table-row-background, 5.4%); } // shade by f1
  182. >.sorting_2 { background-color: shade($table-row-background, 4.7%); } // shade by f3
  183. >.sorting_3 { background-color: shade($table-row-background, 3.9%); } // shade by f5
  184. &.selected {
  185. >.sorting_1 { background-color: shade($table-row-selected, 5.4%); }
  186. >.sorting_2 { background-color: shade($table-row-selected, 4.7%); }
  187. >.sorting_3 { background-color: shade($table-row-selected, 3.9%); }
  188. }
  189. }
  190. tr.even {
  191. >.sorting_1 { background-color: shade($table-row-background, 2%); } // shade by fa
  192. >.sorting_2 { background-color: shade($table-row-background, 1.2%); } // shade by fc
  193. >.sorting_3 { background-color: shade($table-row-background, 0.4%); } // shade by fe
  194. &.selected {
  195. >.sorting_1 { background-color: shade($table-row-selected, 2%); }
  196. >.sorting_2 { background-color: shade($table-row-selected, 1.2%); }
  197. >.sorting_3 { background-color: shade($table-row-selected, 0.4%); }
  198. }
  199. }
  200. }
  201. &.display tbody,
  202. &.order-column.hover tbody {
  203. tr:hover,
  204. tr.odd:hover,
  205. tr.even:hover {
  206. >.sorting_1 { background-color: shade($table-row-background, 8.2%); } // shade by ea
  207. >.sorting_2 { background-color: shade($table-row-background, 7.5%); } // shade by ec
  208. >.sorting_3 { background-color: shade($table-row-background, 6.3%); } // shade by ef
  209. &.selected {
  210. >.sorting_1 { background-color: shade($table-row-selected, 8.2%); }
  211. >.sorting_2 { background-color: shade($table-row-selected, 7.5%); }
  212. >.sorting_3 { background-color: shade($table-row-selected, 6.3%); }
  213. }
  214. }
  215. }
  216. &.nowrap {
  217. th, td {
  218. white-space: nowrap;
  219. }
  220. }
  221. &.compact {
  222. thead th,
  223. thead td {
  224. padding: 5px 9px;
  225. }
  226. tfoot th,
  227. tfoot td {
  228. padding: 5px 9px 3px 9px;
  229. }
  230. tbody th,
  231. tbody td {
  232. padding: 4px 5px;
  233. }
  234. }
  235. // Typography
  236. th.dt-left,
  237. td.dt-left {
  238. text-align: left;
  239. }
  240. th.dt-center,
  241. td.dt-center,
  242. td.dataTables_empty {
  243. text-align: center;
  244. }
  245. th.dt-right,
  246. td.dt-right {
  247. text-align: right;
  248. }
  249. th.dt-justify,
  250. td.dt-justify {
  251. text-align: justify;
  252. }
  253. th.dt-nowrap,
  254. td.dt-nowrap {
  255. white-space: nowrap;
  256. }
  257. thead,
  258. tfoot {
  259. th.dt-head-left,
  260. td.dt-head-left {
  261. text-align: left;
  262. }
  263. th.dt-head-center,
  264. td.dt-head-center{
  265. text-align: center;
  266. }
  267. th.dt-head-right,
  268. td.dt-head-right {
  269. text-align: right;
  270. }
  271. th.dt-head-justify,
  272. td.dt-head-justify {
  273. text-align: justify;
  274. }
  275. th.dt-head-nowrap,
  276. td.dt-head-nowrap {
  277. white-space: nowrap;
  278. }
  279. }
  280. tbody {
  281. th.dt-body-left,
  282. td.dt-body-left {
  283. text-align: left;
  284. }
  285. th.dt-body-center,
  286. td.dt-body-center {
  287. text-align: center;
  288. }
  289. th.dt-body-right,
  290. td.dt-body-right {
  291. text-align: right;
  292. }
  293. th.dt-body-justify,
  294. td.dt-body-justify {
  295. text-align: justify;
  296. }
  297. th.dt-body-nowrap,
  298. td.dt-body-nowrap {
  299. white-space: nowrap;
  300. }
  301. }
  302. }
  303. // Its not uncommon to use * {border-box} now, but it messes up the column width
  304. // calculations, so use content-box for the table and cells
  305. table.dataTable,
  306. table.dataTable th,
  307. table.dataTable td {
  308. -webkit-box-sizing: content-box;
  309. -moz-box-sizing: content-box;
  310. box-sizing: content-box;
  311. }
  312. /*
  313. * Control feature layout
  314. */
  315. .dataTables_wrapper {
  316. position: relative;
  317. clear: both;
  318. *zoom: 1;
  319. // Page length options
  320. .dataTables_length {
  321. float: left;
  322. }
  323. // Filtering input
  324. .dataTables_filter {
  325. float: right;
  326. text-align: right;
  327. input {
  328. margin-left: 0.5em;
  329. }
  330. }
  331. // Table info
  332. .dataTables_info {
  333. clear: both;
  334. float: left;
  335. padding-top: 0.55em;
  336. }
  337. // Paging
  338. .dataTables_paginate {
  339. float: right;
  340. text-align: right;
  341. .fg-button {
  342. box-sizing: border-box;
  343. display: inline-block;
  344. min-width: 1.5em;
  345. padding: 0.5em;
  346. margin-left: 2px;
  347. text-align: center;
  348. text-decoration: none !important;
  349. cursor: pointer;
  350. *cursor: hand;
  351. color: $table-control-color !important;
  352. border: 1px solid transparent;
  353. &:active {
  354. outline: none;
  355. }
  356. }
  357. .fg-button:first-child {
  358. border-top-left-radius: 3px;
  359. border-bottom-left-radius: 3px;
  360. }
  361. .fg-button:last-child {
  362. border-top-right-radius: 3px;
  363. border-bottom-right-radius: 3px;
  364. }
  365. }
  366. // Processing
  367. .dataTables_processing {
  368. position: absolute;
  369. top: 50%;
  370. left: 50%;
  371. width: 100%;
  372. height: 40px;
  373. margin-left: -50%;
  374. margin-top: -25px;
  375. padding-top: 20px;
  376. text-align: center;
  377. font-size: 1.2em;
  378. background-color: white;
  379. background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba($table-row-background, 0)), color-stop(25%,rgba($table-row-background, 0.9)), color-stop(75%,rgba($table-row-background, 0.9)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
  380. background: -webkit-linear-gradient(left, rgba($table-row-background, 0) 0%, rgba($table-row-background, 0.9) 25%, rgba($table-row-background, 0.9) 75%, rgba($table-row-background, 0) 100%); /* Chrome10+,Safari5.1+ */
  381. background: -moz-linear-gradient(left, rgba($table-row-background, 0) 0%, rgba($table-row-background, 0.9) 25%, rgba($table-row-background, 0.9) 75%, rgba($table-row-background, 0) 100%); /* FF3.6+ */
  382. background: -ms-linear-gradient(left, rgba($table-row-background, 0) 0%, rgba($table-row-background, 0.9) 25%, rgba($table-row-background, 0.9) 75%, rgba($table-row-background, 0) 100%); /* IE10+ */
  383. background: -o-linear-gradient(left, rgba($table-row-background, 0) 0%, rgba($table-row-background, 0.9) 25%, rgba($table-row-background, 0.9) 75%, rgba($table-row-background, 0) 100%); /* Opera 11.10+ */
  384. background: linear-gradient(to right, rgba($table-row-background, 0) 0%, rgba($table-row-background, 0.9) 25%, rgba($table-row-background, 0.9) 75%, rgba($table-row-background, 0) 100%); /* W3C */
  385. }
  386. .dataTables_length,
  387. .dataTables_filter,
  388. .dataTables_info,
  389. .dataTables_processing,
  390. .dataTables_paginate {
  391. color: $table-control-color;
  392. }
  393. // Scrolling
  394. .dataTables_scroll {
  395. clear: both;
  396. }
  397. .dataTables_scrollBody {
  398. *margin-top: -1px;
  399. -webkit-overflow-scrolling: touch;
  400. }
  401. .ui-widget-header {
  402. font-weight: normal;
  403. }
  404. .ui-toolbar {
  405. padding: 8px;
  406. }
  407. // Self clear the wrapper
  408. &:after {
  409. visibility: hidden;
  410. display: block;
  411. content: "";
  412. clear: both;
  413. height: 0;
  414. }
  415. zoom: 1; // Poor old IE
  416. }
  417. // Collapse the two column display of the control elements when the screen is
  418. // small
  419. @media screen and (max-width: 767px) {
  420. .dataTables_wrapper {
  421. .dataTables_length,
  422. .dataTables_filter,
  423. .dataTables_info,
  424. .dataTables_paginate {
  425. float: none;
  426. text-align: center;
  427. }
  428. .dataTables_filter,
  429. .dataTables_paginate {
  430. margin-top: 0.5em;
  431. }
  432. }
  433. }
  434. /*
  435. * TableTools styling for jQuery UI
  436. */
  437. div.DTTT_container {
  438. position: relative;
  439. float: left;
  440. }
  441. .DTTT_button {
  442. position: relative;
  443. float: left;
  444. margin-right: 3px;
  445. padding: 3px 10px;
  446. border: 1px solid #d0d0d0;
  447. background-color: #fff;
  448. color: #333;
  449. cursor: pointer;
  450. }
  451. .DTTT_button::-moz-focus-inner {
  452. border: none !important;
  453. padding: 0;
  454. }
  455. .DTTT_disabled {
  456. color: #999;
  457. }
  458. table.DTTT_selectable tbody tr {
  459. cursor: pointer;
  460. }
  461. div.DTTT_collection {
  462. width: 150px;
  463. background-color: #f3f3f3;
  464. overflow: hidden;
  465. z-index: 2002;
  466. box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  467. -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  468. -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  469. button.DTTT_button,
  470. div.DTTT_button,
  471. a.DTTT_button {
  472. float: none;
  473. width: 100%;
  474. margin-bottom: -0.1em;
  475. }
  476. }
  477. div.DTTT_collection_background {
  478. background: black;
  479. z-index: 2001;
  480. }
  481. .DTTT_print_info {
  482. position: absolute;
  483. top: 50%;
  484. left: 50%;
  485. width: 400px;
  486. height: 150px;
  487. margin-left: -200px;
  488. margin-top: -75px;
  489. text-align: center;
  490. background-color: #3f3f3f;
  491. color: white;
  492. padding: 10px 30px;
  493. opacity: 0.9;
  494. border-radius: 5px;
  495. -moz-border-radius: 5px;
  496. -webkit-border-radius: 5px;
  497. box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  498. -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  499. -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  500. .DTTT_print_info {
  501. h6 {
  502. font-weight: normal;
  503. font-size: 28px;
  504. line-height: 28px;
  505. margin: 1em;
  506. }
  507. p {
  508. font-size: 14px;
  509. line-height: 20px;
  510. }
  511. }
  512. }