_custom-data-table.scss 13 KB

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