ng-table.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. .ng-table th {
  2. text-align: center;
  3. -webkit-touch-callout: none;
  4. -webkit-user-select: none;
  5. -khtml-user-select: none;
  6. -moz-user-select: none;
  7. -ms-user-select: none;
  8. user-select: none;
  9. }
  10. .ng-table th.sortable {
  11. cursor: pointer;
  12. }
  13. .ng-table th.sortable .sort-indicator {
  14. padding-right: 18px;
  15. position: relative;
  16. }
  17. .ng-table th.sortable .sort-indicator:after,
  18. .ng-table th.sortable .sort-indicator:before {
  19. content: "";
  20. border-width: 0 4px 4px;
  21. border-style: solid;
  22. border-color: #000 transparent;
  23. visibility: visible;
  24. right: 5px;
  25. top: 50%;
  26. position: absolute;
  27. opacity: .3;
  28. margin-top: -4px;
  29. }
  30. .ng-table th.sortable .sort-indicator:before {
  31. margin-top: 2px;
  32. border-bottom: none;
  33. border-left: 4px solid transparent;
  34. border-right: 4px solid transparent;
  35. border-top: 4px solid #000;
  36. }
  37. .ng-table th.sortable .sort-indicator:hover:after,
  38. .ng-table th.sortable .sort-indicator:hover:before {
  39. opacity: 1;
  40. visibility: visible;
  41. }
  42. .ng-table th.sortable.sort-desc,
  43. .ng-table th.sortable.sort-asc {
  44. background-color: rgba(141, 192, 219, 0.25);
  45. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  46. }
  47. .ng-table th.sortable.sort-desc .sort-indicator:after,
  48. .ng-table th.sortable.sort-asc .sort-indicator:after {
  49. margin-top: -2px;
  50. }
  51. .ng-table th.sortable.sort-desc .sort-indicator:before,
  52. .ng-table th.sortable.sort-asc .sort-indicator:before {
  53. visibility: hidden;
  54. }
  55. .ng-table th.sortable.sort-asc .sort-indicator:after,
  56. .ng-table th.sortable.sort-asc .sort-indicator:hover:after {
  57. visibility: visible;
  58. filter: alpha(opacity=60);
  59. -khtml-opacity: 0.6;
  60. -moz-opacity: 0.6;
  61. opacity: 0.6;
  62. }
  63. .ng-table th.sortable.sort-desc .sort-indicator:after {
  64. border-bottom: none;
  65. border-left: 4px solid transparent;
  66. border-right: 4px solid transparent;
  67. border-top: 4px solid #000;
  68. visibility: visible;
  69. -webkit-box-shadow: none;
  70. -moz-box-shadow: none;
  71. box-shadow: none;
  72. filter: alpha(opacity=60);
  73. -khtml-opacity: 0.6;
  74. -moz-opacity: 0.6;
  75. opacity: 0.6;
  76. }
  77. .ng-table th.filter .input-filter {
  78. margin: 0;
  79. display: block;
  80. width: 100%;
  81. min-height: 30px;
  82. -webkit-box-sizing: border-box;
  83. -moz-box-sizing: border-box;
  84. box-sizing: border-box;
  85. }
  86. .ng-table + .pagination {
  87. margin-top: 0;
  88. }
  89. @media only screen and (max-width: 800px) {
  90. .ng-table-responsive {
  91. border-bottom: 1px solid #999999;
  92. }
  93. .ng-table-responsive tr {
  94. border-top: 1px solid #999999;
  95. border-left: 1px solid #999999;
  96. border-right: 1px solid #999999;
  97. }
  98. .ng-table-responsive td:before {
  99. position: absolute;
  100. padding: 8px;
  101. left: 0;
  102. top: 0;
  103. width: 50%;
  104. white-space: nowrap;
  105. text-align: left;
  106. font-weight: bold;
  107. }
  108. .ng-table-responsive thead tr th {
  109. text-align: left;
  110. }
  111. .ng-table-responsive thead tr.ng-table-filters th {
  112. padding: 0;
  113. }
  114. .ng-table-responsive thead tr.ng-table-filters th form > div {
  115. padding: 8px;
  116. }
  117. .ng-table-responsive td {
  118. border: none;
  119. border-bottom: 1px solid #eeeeee;
  120. position: relative;
  121. padding-left: 50%;
  122. white-space: normal;
  123. text-align: left;
  124. }
  125. .ng-table-responsive td:before {
  126. content: attr(data-title-text);
  127. }
  128. .ng-table-responsive,
  129. .ng-table-responsive thead,
  130. .ng-table-responsive tbody,
  131. .ng-table-responsive th,
  132. .ng-table-responsive td,
  133. .ng-table-responsive tr {
  134. display: block;
  135. }
  136. }