tables.css 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ul[id*="sortable"] { word-wrap: break-word; list-style-type: none; float: left; padding: 0 15px 0 0; width: 48%; cursor:move}
  2. ul[id$="sortable-active"] li {cursor:move; }
  3. ul[id$="sortable-inactive"] li {cursor:move }
  4. .list-heading { cursor:default !important}
  5. .ui-state-disabled { cursor:no-drop; color:#ccc; }
  6. .ui-state-highlight {background: #F5F5F5 !important; height: 41px !important; cursor:move }
  7. table[data-sortable] {
  8. border-collapse: collapse;
  9. border-spacing: 0;
  10. }
  11. table[data-sortable] th {
  12. vertical-align: bottom;
  13. font-weight: bold;
  14. }
  15. table[data-sortable] th, table[data-sortable] td {
  16. text-align: left;
  17. padding: 10px;
  18. }
  19. table[data-sortable] th:not([data-sortable="false"]) {
  20. -webkit-user-select: none;
  21. -moz-user-select: none;
  22. -ms-user-select: none;
  23. -o-user-select: none;
  24. user-select: none;
  25. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  26. -webkit-touch-callout: none;
  27. cursor: pointer;
  28. }
  29. table[data-sortable] th:after {
  30. content: "";
  31. visibility: hidden;
  32. display: inline-block;
  33. vertical-align: inherit;
  34. height: 0;
  35. width: 0;
  36. border-width: 5px;
  37. border-style: solid;
  38. border-color: transparent;
  39. margin-right: 1px;
  40. margin-left: 10px;
  41. float: right;
  42. }
  43. table[data-sortable] th[data-sortable="false"]:after {
  44. display: none;
  45. }
  46. table[data-sortable] th[data-sorted="true"]:after {
  47. visibility: visible;
  48. }
  49. table[data-sortable] th[data-sorted-direction="descending"]:after {
  50. border-top-color: inherit;
  51. margin-top: 8px;
  52. }
  53. table[data-sortable] th[data-sorted-direction="ascending"]:after {
  54. border-bottom-color: inherit;
  55. margin-top: 3px;
  56. }
  57. table[data-sortable].sortable-theme-bootstrap thead th {
  58. border-bottom: 2px solid #e0e0e0;
  59. }
  60. table[data-sortable].sortable-theme-bootstrap th[data-sorted="true"] {
  61. color: #3a87ad;
  62. background: #d9edf7;
  63. border-bottom-color: #bce8f1;
  64. }
  65. table[data-sortable].sortable-theme-bootstrap th[data-sorted="true"][data-sorted-direction="descending"]:after {
  66. border-top-color: #3a87ad;
  67. }
  68. table[data-sortable].sortable-theme-bootstrap th[data-sorted="true"][data-sorted-direction="ascending"]:after {
  69. border-bottom-color: #3a87ad;
  70. }
  71. table[data-sortable].sortable-theme-bootstrap.sortable-theme-bootstrap-striped tbody > tr:nth-child(odd) > td {
  72. background-color: #f9f9f9;
  73. }
  74. #data td, #no-data td {
  75. vertical-align: middle;
  76. }
  77. .sort-table:hover {
  78. border-bottom-color: #00B7DC !important;
  79. }