_custom-data-table.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. .custom-data-table-header .table-responsive .top {
  2. display: flex;
  3. justify-content: space-between;
  4. padding: 0 1rem;
  5. margin-bottom: .5rem
  6. }
  7. .custom-data-table-header .table-responsive .top .action-btns {
  8. margin-top: 1.5rem;
  9. display: flex
  10. }
  11. .custom-data-table-header .table-responsive .top .action-btns .actions-dropodown {
  12. box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .14);
  13. border-radius:.4rem;
  14. margin-right: .75rem
  15. }
  16. .custom-data-table-header .table-responsive .top .action-btns .actions-dropodown .dropdown-toggle{
  17. font-size: 1.125rem;
  18. font-weight: 500
  19. }
  20. .custom-data-table-header .table-responsive .top .action-btns .actions-dropodown .dropdown-toggle:after {
  21. left: 0
  22. }
  23. .custom-data-table-header .table-responsive .top .action-btns .dt-buttons .btn {
  24. padding: .9rem .938rem
  25. }
  26. .custom-data-table-header .table-responsive .top .dataTables_length {
  27. display: inline-block
  28. }
  29. .custom-data-table-header .table-responsive .top .dataTables_length .custom-select {
  30. width: 8.714rem;
  31. height: 3rem;
  32. border-radius: 1.428rem;
  33. border: 1px solid #dae1e7;
  34. font-size: 1rem;
  35. background-position: calc(100% - 12px) 13px, calc(100% - 20px) 13px, 100% 0
  36. }
  37. .custom-data-table-header .table-responsive .top .dataTables_length .custom-select:focus{
  38. box-shadow: none
  39. }
  40. .custom-data-table-header .table-responsive .top .dataTables_filter{
  41. display: inline-block
  42. }
  43. .custom-data-table-header .table-responsive .top .dataTables_filter .form-control{
  44. //padding: 1.45rem 2.8rem !important;
  45. //border-radius: 1.428rem;
  46. //border: 1px solid #dae1e7;
  47. padding: 1.15rem 2.8rem !important;
  48. border-radius: 1.4rem;
  49. border: 0;
  50. box-shadow: $shadow;
  51. font-size: .82rem;
  52. }
  53. .custom-data-table-header .table-responsive .top .dataTables_filter label{
  54. position: relative
  55. }
  56. .custom-data-table-header .table-responsive .top .dataTables_filter label:after{
  57. content: "\E8BD";
  58. font-family: feather;
  59. position: absolute;
  60. top: 0.5rem;
  61. font-size: 1rem;
  62. left: 1.2rem;
  63. font-weight: 300;
  64. color: #777;
  65. }
  66. .custom-data-table-header .table-responsive .dataTables_wrapper .dataTables_paginate ul.pagination {
  67. justify-content: center
  68. }
  69. .custom-data-table-header .add-new-data-sidebar .overlay-bg{
  70. background: rgba(0, 0, 0, .2);
  71. width: 100%;
  72. height: 100%;
  73. position: fixed;
  74. top: 0;
  75. left: 0;
  76. display: none;
  77. transition: all .3s ease;
  78. opacity: 0;
  79. z-index: 1032
  80. }
  81. .custom-data-table-header .add-new-data-sidebar .overlay-bg.show{
  82. opacity: 1;
  83. display: block
  84. }
  85. .custom-data-table-header .add-new-data-sidebar .add-new-data {
  86. width: 28.57rem;
  87. max-width: 90vw;
  88. height: 100vh;
  89. height: calc(var(--vh, 1vh) * 100);
  90. background: #fff;
  91. position: fixed;
  92. left: auto;
  93. right: 0;
  94. top: 0;
  95. z-index: 1033;
  96. box-shadow: 0 0 15px 0 rgba(0, 0, 0, .05);
  97. transform: translateX(100%);
  98. transition: all .25s ease;
  99. overflow: hidden
  100. }
  101. .custom-data-table-header .add-new-data-sidebar .add-new-data.show {
  102. transform: translateX(0)
  103. }
  104. .custom-data-table-header .add-new-data-sidebar .add-new-data .new-data-title {
  105. padding-bottom: .714rem;
  106. border-bottom: 1px solid rgba(0, 0, 0, .1)
  107. }
  108. .custom-data-table-header .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar {
  109. position: relative
  110. }
  111. .custom-data-table-header .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar i {
  112. position: absolute;
  113. font-size: 1.71rem;
  114. right: 0;
  115. top: -.1428rem;
  116. cursor: pointer
  117. }
  118. .custom-data-table-header .add-new-data-sidebar .add-new-data .data-items {
  119. border-bottom: 1px solid rgba(0, 0, 0, .1);
  120. height: calc(100vh - 10rem);
  121. position: relative
  122. }
  123. .custom-data-table-header .add-new-data-sidebar .add-new-data .data-items .data-field-col {
  124. margin-top: 1.25rem
  125. }
  126. .custom-data-table-header .add-new-data-sidebar .add-new-data .data-items .data-field-col.data-list-upload {
  127. margin-top: 2rem
  128. }
  129. .custom-data-table-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone {
  130. min-height: 14.285rem
  131. }
  132. .custom-data-table-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone .dz-message {
  133. height: auto
  134. }
  135. .custom-data-table-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone .dz-message:before {
  136. font-size: 2.857rem
  137. }
  138. table.custom-data-table.dataTable, table.data-thumb-view.dataTable {
  139. border-spacing: 0 .8rem;
  140. padding: 0;
  141. }
  142. table.custom-data-table.dataTable thead th, table.data-thumb-view.dataTable thead th {
  143. //padding: .714rem 1.785rem;
  144. padding: 0.714rem .51rem;
  145. font-weight: 600;
  146. border-bottom: 0;
  147. border-top: 0;
  148. }
  149. table.custom-data-table.dataTable thead th input:focus, table.data-thumb-view.dataTable thead th input:focus {
  150. outline: 0
  151. }
  152. table.custom-data-table.dataTable thead th:first-child, table.data-thumb-view.dataTable thead th:first-child {
  153. //padding-left: 0;
  154. padding-left: .9rem;
  155. }
  156. table.custom-data-table.dataTable thead .sorting, table.custom-data-table.dataTable thead .sorting_asc, table.custom-data-table.dataTable thead .sorting_desc, table.data-thumb-view.dataTable thead .sorting, table.data-thumb-view.dataTable thead .sorting_asc, table.data-thumb-view.dataTable thead .sorting_desc {
  157. padding-right: inherit
  158. }
  159. table.custom-data-table.dataTable thead .sorting:before, table.custom-data-table.dataTable thead .sorting_asc:before, table.custom-data-table.dataTable thead .sorting_desc:before, table.data-thumb-view.dataTable thead .sorting:before, table.data-thumb-view.dataTable thead .sorting_asc:before, table.data-thumb-view.dataTable thead .sorting_desc:before {
  160. font-size: .7rem;
  161. left: .857rem;
  162. top: .642rem
  163. }
  164. table.custom-data-table.dataTable thead .sorting:after, table.custom-data-table.dataTable thead .sorting_asc:after, table.custom-data-table.dataTable thead .sorting_desc:after, table.data-thumb-view.dataTable thead .sorting:after, table.data-thumb-view.dataTable thead .sorting_asc:after, table.data-thumb-view.dataTable thead .sorting_desc:after {
  165. font-size: .7rem;
  166. left: .857rem;
  167. top: 1.071rem
  168. }
  169. table.custom-data-table.dataTable thead .dt-checkboxes-select-all input, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input {
  170. width: 0;
  171. position: relative
  172. }
  173. table.custom-data-table.dataTable thead .dt-checkboxes-select-all input:before, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:before {
  174. border: 2px solid #b4b4b4;
  175. content: "";
  176. width: 1.071rem;
  177. height: 1.071rem;
  178. padding: 0;
  179. border-radius: 2px;
  180. transform: rotate(-90deg);
  181. overflow: hidden;
  182. transition: all .2s ease;
  183. position: absolute
  184. }
  185. table.custom-data-table.dataTable thead .dt-checkboxes-select-all input:after, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:after {
  186. background-color: $primary;
  187. border: 2px solid $primary;
  188. font-family: feather;
  189. content: "\E83F";
  190. font-size: .75rem;
  191. line-height: 1.2;
  192. color: #fff;
  193. opacity: 0;
  194. position: absolute;
  195. width: .928rem;
  196. height: 1rem;
  197. transform: translate(100%);
  198. transform-origin: right;
  199. transition: all .2s ease;
  200. overflow: hidden
  201. }
  202. table.custom-data-table.dataTable thead .dt-checkboxes-select-all input:active:checked:after, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:active:checked:after {
  203. transform: translate(3px)
  204. }
  205. table.custom-data-table.dataTable thead .dt-checkboxes-select-all input:checked:before, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:checked:before {
  206. border: 2px solid $primary;
  207. transform: rotate(0deg)
  208. }
  209. table.custom-data-table.dataTable thead .dt-checkboxes-select-all input:checked:after, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:checked:after {
  210. transition: all .2s ease;
  211. opacity: 1;
  212. transform: translate(0)
  213. }
  214. table.custom-data-table.dataTable tbody tr, table.data-thumb-view.dataTable tbody tr {
  215. background-color: #fff;
  216. //box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .05);
  217. box-shadow: $shadow;
  218. cursor: pointer;
  219. transition: all .3s ease;
  220. border-radius:.4rem
  221. }
  222. table.custom-data-table.dataTable tbody tr:hover, table.data-thumb-view.dataTable tbody tr:hover {
  223. //transform: translateY(-4px);
  224. //transition: all .3s ease;
  225. //transform: none;
  226. background: lighten($dark30, 1%);
  227. }
  228. table.custom-data-table.dataTable tbody tr td:first-child, table.data-thumb-view.dataTable tbody tr td:first-child {
  229. padding-left: 1rem;
  230. border-top-left-radius:.4rem;
  231. border-bottom-left-radius:.4rem
  232. }
  233. table.custom-data-table.dataTable tbody tr td:last-child, table.data-thumb-view.dataTable tbody tr td:last-child {
  234. border-top-right-radius:.4rem;
  235. border-bottom-right-radius:.4rem
  236. }
  237. table.custom-data-table.dataTable tbody tr.selected td, table.data-thumb-view.dataTable tbody tr.selected td {
  238. border-radius: 0
  239. }
  240. table.custom-data-table.dataTable tbody td, table.data-thumb-view.dataTable tbody td {
  241. //padding: 1.357rem;
  242. border: none;
  243. vertical-align: middle;
  244. height: 46px;
  245. padding: .55rem;
  246. line-height: 1.42857;
  247. }
  248. table.custom-data-table.dataTable tbody td input:focus, table.data-thumb-view.dataTable tbody td input:focus {
  249. outline: 0
  250. }
  251. table.custom-data-table.dataTable tbody td.product-name, table.data-thumb-view.dataTable tbody td.product-name {
  252. font-weight: 500
  253. }
  254. table.custom-data-table.dataTable tbody td:focus, table.data-thumb-view.dataTable tbody td:focus {
  255. outline: 0
  256. }
  257. table.custom-data-table.dataTable tbody td.dt-checkboxes-cell input, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input {
  258. width: 0;
  259. position: relative
  260. }
  261. table.custom-data-table.dataTable tbody td.dt-checkboxes-cell input:before, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:before {
  262. border: 2px solid #b4b4b4;
  263. position: absolute;
  264. left: -8px;
  265. content: "";
  266. width: 1.071rem;
  267. height: 1.071rem;
  268. padding: 0;
  269. border-radius: 2px;
  270. transform: rotate(-90deg);
  271. overflow: hidden;
  272. transition: all .2s ease
  273. }
  274. table.custom-data-table.dataTable tbody td.dt-checkboxes-cell input:after, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:after {
  275. background-color: $primary;
  276. font-family: feather;
  277. content: "\E83F";
  278. font-size: .75rem;
  279. color: #fff;
  280. opacity: 0;
  281. position: absolute;
  282. left: -.4285rem;
  283. width: .857rem;
  284. height: 1rem;
  285. overflow: hidden;
  286. transform: rotate(-90deg) translate(100%);
  287. transform-origin: right;
  288. transition: all .2s ease
  289. }
  290. table.custom-data-table.dataTable tbody td.dt-checkboxes-cell input:active:checked:after, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:active:checked:after {
  291. transform: translate(3px)
  292. }
  293. table.custom-data-table.dataTable tbody td.dt-checkboxes-cell input:checked:before, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:checked:before {
  294. transform: rotate(0deg);
  295. border: 2px solid $primary;
  296. transition: all .2s ease
  297. }
  298. table.custom-data-table.dataTable tbody td.dt-checkboxes-cell input:checked:after, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:checked:after {
  299. opacity: 1;
  300. transition: all .2s ease;
  301. transform: rotate(0deg) translate(0)
  302. }
  303. table.custom-data-table.dataTable tbody td .progress, table.data-thumb-view.dataTable tbody td .progress {
  304. margin-bottom: 0;
  305. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .12), 0 2px 4px 0 rgba(0, 0, 0, .08)
  306. }
  307. table.data-thumb-view.dataTable tbody tr td {
  308. padding-top: .714rem;
  309. padding-bottom: .714rem
  310. }
  311. table.data-thumb-view.dataTable tbody tr td.product-img img {
  312. height: 7.857rem
  313. }
  314. @media (max-width: 576px) {
  315. .add-new-data-sidebar .data-items .data-list-upload .dropzone .dz-message:before {
  316. top: 3.428rem
  317. }
  318. }
  319. .custom-data-table.dataTable tbody tr td.dt-checkboxes-cell input, .custom-data-table.dataTable tbody tr th.dt-checkboxes-cell input, .custom-data-table.dataTable thead tr td.dt-checkboxes-cell input, .custom-data-table.dataTable thead tr th.dt-checkboxes-cell input, .data-thumb-view.dataTable tbody tr td.dt-checkboxes-cell input, .data-thumb-view.dataTable tbody tr th.dt-checkboxes-cell input, .data-thumb-view.dataTable thead tr td.dt-checkboxes-cell input, .data-thumb-view.dataTable thead tr th.dt-checkboxes-cell input, _:-ms-lang(x) tbody tr td.dt-checkboxes-cell input, _:-ms-lang(x) tbody tr th.dt-checkboxes-cell input, _:-ms-lang(x) thead tr td.dt-checkboxes-cell input, _:-ms-lang(x) thead tr th.dt-checkboxes-cell input {
  320. width: auto
  321. }
  322. .custom-data-table.dataTable .table-responsive .top .dataTables_filter .form-control, .data-thumb-view.dataTable .table-responsive .top .dataTables_filter .form-control, _:-ms-lang(x) .table-responsive .top .dataTables_filter .form-control {
  323. height: 1.4rem !important;
  324. padding: 0 .5rem !important
  325. }
  326. .custom-data-table.dataTable .table-responsive .top .dataTables_filter .form-control:after, .data-thumb-view.dataTable .table-responsive .top .dataTables_filter .form-control:after, _:-ms-lang(x) .table-responsive .top .dataTables_filter .form-control:after {
  327. display: none
  328. }
  329. @supports (-moz-osx-font-smoothing:auto) {
  330. .custom-data-table input, .data-thumb-view input {
  331. width: auto !important
  332. }
  333. }
  334. @media not all and (min-resolution: 0.001dpcm) {
  335. @supports (-webkit-appearance:none) {
  336. table.custom-data-table tbody td.dt-checkboxes-cell input:after, table.data-thumb-view tbody td.dt-checkboxes-cell input:after {
  337. left: -.485rem
  338. }
  339. .custom-data-table .dt-checkboxes-cell input, .data-thumb-view .dt-checkboxes-cell input {
  340. -webkit-appearance: none;
  341. top: -10px
  342. }
  343. }
  344. }
  345. .custom-data-table .mac-checkbox, .data-thumb-view .mac-checkbox {
  346. -webkit-appearance: none;
  347. top: -10px
  348. }