dataTables.responsive.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child,
  2. table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child {
  3. position: relative;
  4. padding-left: 30px;
  5. cursor: pointer;
  6. }
  7. table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
  8. table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
  9. top: 8px;
  10. left: 4px;
  11. height: 16px;
  12. width: 16px;
  13. display: block;
  14. position: absolute;
  15. color: white;
  16. border: 2px solid white;
  17. border-radius: 16px;
  18. text-align: center;
  19. line-height: 14px;
  20. box-shadow: 0 0 3px #444;
  21. box-sizing: content-box;
  22. content: '+';
  23. background-color: #31b131;
  24. }
  25. table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child.dataTables_empty:before,
  26. table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child.dataTables_empty:before {
  27. display: none;
  28. }
  29. table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before,
  30. table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before {
  31. content: '-';
  32. background-color: #d33333;
  33. }
  34. table.dataTable.dtr-inline.collapsed > tbody > tr.child td:before {
  35. display: none;
  36. }
  37. table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child,
  38. table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child {
  39. padding-left: 27px;
  40. }
  41. table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before,
  42. table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before {
  43. top: 5px;
  44. left: 4px;
  45. height: 14px;
  46. width: 14px;
  47. border-radius: 14px;
  48. line-height: 12px;
  49. }
  50. table.dataTable.dtr-column > tbody > tr > td.control,
  51. table.dataTable.dtr-column > tbody > tr > th.control {
  52. position: relative;
  53. cursor: pointer;
  54. }
  55. table.dataTable.dtr-column > tbody > tr > td.control:before,
  56. table.dataTable.dtr-column > tbody > tr > th.control:before {
  57. top: 50%;
  58. left: 50%;
  59. height: 16px;
  60. width: 16px;
  61. margin-top: -10px;
  62. margin-left: -10px;
  63. display: block;
  64. position: absolute;
  65. color: white;
  66. border: 2px solid white;
  67. border-radius: 16px;
  68. text-align: center;
  69. line-height: 14px;
  70. box-shadow: 0 0 3px #444;
  71. box-sizing: content-box;
  72. content: '+';
  73. background-color: #31b131;
  74. }
  75. table.dataTable.dtr-column > tbody > tr.parent td.control:before,
  76. table.dataTable.dtr-column > tbody > tr.parent th.control:before {
  77. content: '-';
  78. background-color: #d33333;
  79. }
  80. table.dataTable > tbody > tr.child {
  81. padding: 0.5em 1em;
  82. }
  83. table.dataTable > tbody > tr.child:hover {
  84. background: transparent !important;
  85. }
  86. table.dataTable > tbody > tr.child ul {
  87. display: inline-block;
  88. list-style-type: none;
  89. margin: 0;
  90. padding: 0;
  91. }
  92. table.dataTable > tbody > tr.child ul li {
  93. border-bottom: 1px solid #efefef;
  94. padding: 0.5em 0;
  95. }
  96. table.dataTable > tbody > tr.child ul li:first-child {
  97. padding-top: 0;
  98. }
  99. table.dataTable > tbody > tr.child ul li:last-child {
  100. border-bottom: none;
  101. }
  102. table.dataTable > tbody > tr.child span.dtr-title {
  103. display: inline-block;
  104. min-width: 75px;
  105. font-weight: bold;
  106. }