_custom-data-table.scss 9.8 KB

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