tables.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. .@{brand}-table {
  2. background: @white;
  3. margin-bottom: 15px;
  4. &.table {
  5. & >thead>tr>th,
  6. & >thead>tr>td {
  7. border-bottom: 3px double @default-border-color;
  8. border-color: @default-border-color;
  9. & label {
  10. margin-bottom: 0;
  11. }
  12. }
  13. & .col-small {
  14. width: 45px;
  15. min-width: 45px;
  16. &.center {
  17. text-align: center;
  18. }
  19. }
  20. & .col-medium {
  21. width: 125px;
  22. min-width: 125px;
  23. &.center {
  24. text-align: center;
  25. }
  26. }
  27. @media (max-width:992px) {
  28. & .tool-bars {
  29. width: 45px;
  30. min-width: 45px;
  31. }
  32. }
  33. & label {
  34. margin-bottom: 0;
  35. }
  36. & ul.table-mobile-ul {
  37. margin-top: 5px;
  38. padding-left: 5px;
  39. border-left: 2px solid @default-border-color;
  40. }
  41. & >thead>tr>th[class*=sorted] {
  42. color: @link-color;
  43. }
  44. @media (max-width:360px) {
  45. font-size: @baseFontSize - 1;
  46. }
  47. }
  48. &.footable>thead>tr>th>span.footable-sort-indicator {
  49. color: @gray-light;
  50. float: right;
  51. margin-right:4px;
  52. }
  53. &.table-bordered {
  54. border: 1px solid @default-border-color;
  55. >thead>tr>th, >tbody>tr>th, >tfoot>tr>th, >thead>tr>td, >tbody>tr>td, >tfoot>tr>td {
  56. border: 1px solid @default-border-color;
  57. }
  58. >thead>tr>th,
  59. >thead>tr>td {
  60. border-bottom: 3px double @default-border-color;
  61. }
  62. }
  63. &.table-primary {
  64. &.table {
  65. & >thead>tr>th,
  66. & >thead>tr>td {
  67. border-bottom-width: 1px;
  68. //background: @themeColor;
  69. //color: @white;
  70. }
  71. }
  72. &.footable>thead>tr>th>span.footable-sort-indicator {
  73. //color: @white;
  74. }
  75. &.table-bordered {
  76. &.dataTable {
  77. margin-bottom:0;
  78. thead {
  79. th {
  80. border-bottom: 4px solid @brand-success;
  81. &:nth-child(even) {
  82. border-bottom: 4px solid darken(@brand-success, 7%);
  83. }
  84. }
  85. }
  86. }
  87. }
  88. }
  89. &.tech-features {
  90. thead {
  91. tr {
  92. th {
  93. text-transform: uppercase;
  94. }
  95. }
  96. }
  97. thead, tbody {
  98. tr {
  99. th,td {
  100. padding: 15px 25px;
  101. }
  102. }
  103. }
  104. tbody {
  105. tr {
  106. td {
  107. @media (min-width:992px) {
  108. &:first-child {
  109. background-color: @gray-lighter;
  110. }
  111. }
  112. }
  113. }
  114. }
  115. }
  116. }
  117. // DataTables Plugin
  118. // ---------------------------
  119. .dataTable {
  120. margin-bottom:0;
  121. th {
  122. &[class*=sort] {
  123. cursor:pointer;
  124. outline:0 none !important;
  125. &:after {
  126. content:"\f0dc";
  127. display:inline-block;
  128. color:@gray-light;
  129. font-family: "Font Awesome 5 Pro"; font-size:13px;
  130. float:right;
  131. margin-right:4px;
  132. position:relative;
  133. }
  134. }
  135. &[class*=sorting_] {
  136. background-color: @gray-lighter;
  137. &.sorting_disabled {
  138. background-color: @white;
  139. }
  140. }
  141. &.sorting_desc:after {
  142. content:"\f0dd";
  143. top:-6px;
  144. color:@gray-light;
  145. }
  146. &.sorting_asc:after {
  147. content:"\f0de";
  148. top:4px;
  149. color:@gray-light;
  150. }
  151. &.sorting_disabled {
  152. cursor:inherit;
  153. &:after { display:none; }
  154. }
  155. }
  156. }
  157. .dataTables_length {
  158. select {
  159. width:60px;
  160. height: auto;
  161. }
  162. label {
  163. font-weight:normal;
  164. }
  165. }
  166. .dataTables_filter {
  167. text-align:right;
  168. input[type=text] {
  169. width:125px;
  170. padding:4px 6px;
  171. }
  172. label {
  173. font-weight:normal;
  174. }
  175. }
  176. .dataTables_info {
  177. font-size:@baseFontSize;
  178. margin:5px 12px;
  179. }
  180. .dataTables_paginate {
  181. text-align:right;
  182. .pagination {
  183. margin:5px 12px;
  184. }
  185. }
  186. .dataTables_wrapper {
  187. label {
  188. display:inline-block;
  189. }
  190. input[type=text] , select {
  191. margin-bottom:0 !important;
  192. margin:0 4px;
  193. }
  194. .row {
  195. margin:0;
  196. &:first-child {
  197. padding-top:12px;
  198. padding-bottom:12px;
  199. border-bottom: 0 none;
  200. + .dataTable {
  201. border-top:1px solid @default-border-color;
  202. border-bottom:1px solid @default-border-color;
  203. }
  204. }
  205. &:last-child {
  206. padding-top:12px;
  207. padding-bottom:12px;
  208. border-top: 0 none;
  209. }
  210. }
  211. }
  212. .footable-row-detail-row {
  213. display: block;
  214. line-height: 1.5em;
  215. }
  216. .dataTable {
  217. &.table.has-columns-hidden > tbody > tr > td > span.responsiveExpander {
  218. cursor: pointer;
  219. &:before {
  220. font-family: "Font Awesome 5 Pro";
  221. font-style: normal;
  222. font-weight: 900;
  223. content: "\f067";
  224. padding-right: 5px;
  225. font-size: @baseFontSize + 5;
  226. color: #888;
  227. }
  228. }
  229. &.table.has-columns-hidden > tbody > tr.detail-show > td span.responsiveExpander {
  230. &:before {
  231. font-family: "Font Awesome 5 Pro";
  232. font-style: normal;
  233. font-weight: 900;
  234. content: "\f068";
  235. padding-right: 5px;
  236. font-size: @baseFontSize + 5;
  237. color: #888;
  238. }
  239. }
  240. &.table.has-columns-hidden > tbody > tr.row-detail > td > ul > li > span.columnTitle {
  241. font-weight: bold;
  242. }
  243. }