data-list-view.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. // ================================================================================================
  2. // File Name: data-list-view.scss
  3. // Description: SCSS file for data list view.
  4. // ----------------------------------------------------------------------------------------------
  5. // Item name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ================================================================================================
  9. // Core variables and mixins
  10. @import "../bootstrap/functions";
  11. @import "../bootstrap/mixins";
  12. @import "../bootstrap-extended/mixins";
  13. // Load variable overrides
  14. @import "../core/variables/variables";
  15. @import "../bootstrap/variables";
  16. // Overrides user variable
  17. @import "../core/variables/components-variables";
  18. $checkbox-border-color: #b4b4b4;
  19. // For checkbox alignment
  20. // for header section
  21. .data-list-view-header,.data-thumb-view-header{
  22. .table-responsive{
  23. .top{
  24. display: flex;
  25. justify-content: space-between;
  26. padding: 0 1rem;
  27. margin-bottom: 1rem;
  28. .action-btns{
  29. margin-top: 1.5rem;
  30. display: flex;
  31. .actions-dropodown{
  32. box-shadow: 0 2px 8px 0 rgba($pure-black,.14);
  33. border-radius: .5rem;
  34. margin-right: .75rem;
  35. .dropdown-toggle{
  36. font-size: 1.125rem;
  37. font-weight: 500;
  38. &:after{
  39. left: 0;
  40. }
  41. }
  42. }
  43. .dt-buttons{
  44. .btn{
  45. padding: 0.9rem .938rem;
  46. }
  47. }
  48. }
  49. .dataTables_length{
  50. display: inline-block;
  51. .custom-select{
  52. width: 8.714rem;
  53. height: 3rem;
  54. border-radius: 1.428rem;
  55. border: 1px solid $gray-300;
  56. font-size: 1rem;
  57. background-position:calc(100% - 12px) 13px, calc(100% - 20px) 13px, 100% 0;
  58. &:focus{
  59. box-shadow: none;
  60. }
  61. }
  62. }
  63. .dataTables_filter{
  64. display: inline-block;
  65. .form-control{
  66. padding: 1.45rem 2.8rem !important;
  67. border-radius: 1.428rem;
  68. border: 1px solid $gray-300;
  69. }
  70. label{
  71. position: relative;
  72. &:after{
  73. content: "\e8bd";
  74. font-family: "feather";
  75. position: absolute;
  76. left: 1.428rem;
  77. top: .928rem;
  78. }
  79. }
  80. }
  81. }
  82. // to align pagination to center
  83. .dataTables_wrapper{
  84. .dataTables_paginate{
  85. ul.pagination{
  86. justify-content: center;
  87. }
  88. }
  89. }
  90. }
  91. // add new data sidebar customization
  92. .add-new-data-sidebar{
  93. .overlay-bg{
  94. background: rgba($pure-black,.2);
  95. width: 100%;
  96. height: 100%;
  97. position: fixed;
  98. top: 0;
  99. left: 0;
  100. display: none;
  101. transition: all .3s ease;
  102. opacity: 0;
  103. z-index: 1032;
  104. &.show{
  105. opacity: 1;
  106. display: block;
  107. }
  108. }
  109. .add-new-data{
  110. width: 28.57rem;
  111. max-width: 90vw;
  112. height: 100vh;
  113. height: calc(var(--vh, 1vh) * 100);
  114. background: $white;
  115. position: fixed;
  116. left: auto;
  117. right: 0;
  118. top: 0;
  119. z-index: 1033;
  120. box-shadow: 0 0 15px 0 rgba($pure-black,.05);
  121. transform: translateX(100%);
  122. transition: all .25s ease;
  123. overflow: hidden;
  124. &.show{
  125. transform: translateX(0%);
  126. }
  127. .new-data-title{
  128. padding-bottom: .714rem;
  129. border-bottom: 1px solid rgba($pure-black,.1);
  130. .hide-data-sidebar{
  131. position: relative;
  132. i{
  133. position: absolute;
  134. font-size: 1.71rem;
  135. right: 0;
  136. top: -.1428rem;
  137. cursor: pointer;
  138. }
  139. }
  140. }
  141. .data-items{
  142. border-bottom: 1px solid rgba($pure-black,.1);;
  143. height: calc(100vh - 10rem);
  144. position: relative;
  145. .data-field-col{
  146. margin-top: 1.25rem;
  147. &.data-list-upload{
  148. margin-top: 2rem;
  149. }
  150. .dropzone{
  151. min-height: 14.285rem;
  152. .dz-message{
  153. height: auto;
  154. &:before{
  155. font-size: 2.857rem;
  156. }
  157. }
  158. }
  159. }
  160. }
  161. }
  162. }
  163. }
  164. // datatable customization
  165. table.data-list-view.dataTable,table.data-thumb-view.dataTable{
  166. border-spacing: 0 1.3rem;
  167. padding: 0 0.7rem;
  168. thead{
  169. // th customization
  170. th{
  171. padding: .714rem 1.785rem;
  172. font-weight: 600;
  173. input:focus{
  174. outline: 0;
  175. }
  176. }
  177. th:first-child{
  178. padding-left: 0;
  179. }
  180. // for sorting icons
  181. .sorting_asc,.sorting_desc,.sorting{
  182. padding-right: inherit;
  183. &:before{
  184. font-size: .7rem;
  185. left: .857rem;
  186. top: .642rem;
  187. }
  188. &:after{
  189. font-size: .7rem;
  190. left: .857rem;
  191. top: 1.071rem;
  192. }
  193. }
  194. // checkbox customization starts
  195. .dt-checkboxes-select-all{
  196. input{
  197. width: 0;
  198. position: relative;
  199. &:before{
  200. border: 2px solid $checkbox-border-color;
  201. content: "";
  202. width: 1.071rem;
  203. height: 1.071rem;
  204. padding: 0;
  205. border-radius: 2px;
  206. transition: all .2s ease;
  207. transform: rotate(-90deg);
  208. overflow: hidden;
  209. transition: all .2s ease;
  210. position: absolute;
  211. }
  212. &:after{
  213. background-color: $primary;
  214. border: 2px solid $primary;
  215. font-family: "feather";
  216. content: "\e83f";
  217. font-size: 0.75rem;
  218. line-height: 1.2;
  219. color: $white;
  220. opacity: 0;
  221. position: absolute;
  222. width: .928rem;
  223. height: 1rem;
  224. transform: translate(100%);
  225. transform-origin: right;
  226. transition: all .2s ease;
  227. overflow: hidden;
  228. }
  229. &:active:checked{
  230. &:after{
  231. transform: translate(3px);
  232. }
  233. }
  234. &:checked{
  235. &:before{
  236. border: 2px solid $primary;
  237. transform: rotate(0deg);
  238. }
  239. &:after{
  240. transition: all .2s ease;
  241. opacity: 1;
  242. transform: translate(0)
  243. }
  244. }
  245. }
  246. }
  247. // checkbox customization ends
  248. }
  249. tbody{
  250. // for table row effects
  251. tr{
  252. background-color: $white;
  253. box-shadow: rgba($pure-black, 0.05) 0px 4px 20px 0px;
  254. cursor: pointer;
  255. transition: all .3s ease;
  256. border-radius: .5rem;
  257. &:hover{
  258. transform: translateY(-4px);
  259. transition: all .3s ease;
  260. }
  261. td:first-child{
  262. padding-left: 1rem;
  263. border-top-left-radius: .5rem;
  264. border-bottom-left-radius: .5rem;
  265. }
  266. td:last-child{
  267. border-top-right-radius: .5rem;
  268. border-bottom-right-radius: .5rem;
  269. }
  270. &.selected{
  271. td{
  272. border-radius: 0;
  273. }
  274. }
  275. }
  276. // for td effects
  277. td{
  278. padding: 1.357rem;
  279. border: none;
  280. vertical-align: middle;
  281. input:focus{
  282. outline: 0;
  283. }
  284. &.product-name{
  285. font-weight: 500;
  286. }
  287. &:focus{
  288. outline: 0;
  289. }
  290. // Check customization starts
  291. &.dt-checkboxes-cell{
  292. input{
  293. width: 0;
  294. position: relative;
  295. &:before{
  296. border: 2px solid $checkbox-border-color;
  297. position: absolute;
  298. left: -8px;
  299. content: "";
  300. width: 1.071rem;
  301. height: 1.071rem;
  302. padding: 0;
  303. border-radius: 2px;
  304. transform: rotate(-90deg);
  305. overflow: hidden;
  306. transition: all .2s ease;
  307. }
  308. &:after{
  309. background-color: $primary;
  310. font-family: "feather";
  311. content: "\e83f";
  312. font-size: 0.75rem;
  313. color: $white;
  314. opacity: 0;
  315. position: absolute;
  316. left: -.4285rem;
  317. width: .857rem;
  318. height: 1rem;
  319. overflow: hidden;
  320. transform: rotate(-90deg) translate(100%);
  321. transform-origin: right;
  322. transition: all .2s ease;
  323. }
  324. &:active:checked{
  325. &:after{
  326. transform: translate(3px); }
  327. }
  328. &:checked{
  329. &:before{
  330. transform: rotate(0deg);
  331. border: 2px solid $primary;
  332. transition: all .2s ease;
  333. }
  334. &:after{
  335. opacity: 1;
  336. transition: all .2s ease;
  337. transform: rotate(0deg) translate(0);
  338. }
  339. }
  340. }
  341. }
  342. // Check customization ends
  343. .progress{
  344. margin-bottom: 0;
  345. box-shadow: 0 4px 8px 0 rgba($pure-black,.12),0 2px 4px 0 rgba($pure-black,.08);
  346. }
  347. }
  348. }
  349. }
  350. // for thumb view images and padding
  351. table.data-thumb-view.dataTable{
  352. tbody{
  353. tr{
  354. td{
  355. padding-top: .714rem;
  356. padding-bottom: .714rem;
  357. &.product-img{
  358. img{
  359. height: 7.857rem;
  360. }
  361. }
  362. }
  363. }
  364. }
  365. }
  366. // to stack buttons
  367. @media(max-width: 768px){
  368. #data-list-view,#data-thumb-view {
  369. .table-responsive {
  370. .top{
  371. flex-direction: column;
  372. }
  373. .dt-buttons{
  374. width: auto;
  375. text-align: left;
  376. }
  377. .dataTables_length,
  378. .dataTables_filter{
  379. text-align: right;
  380. }
  381. }
  382. }
  383. }
  384. // to position upload text properly in small devices
  385. @media(max-width: 576px){
  386. .add-new-data-sidebar{
  387. .data-items{
  388. .data-list-upload{
  389. .dropzone{
  390. .dz-message{
  391. &:before{
  392. top: 3.428rem;
  393. }
  394. }
  395. }
  396. }
  397. }
  398. }
  399. }
  400. // IE Specific CSS
  401. _:-ms-lang(x),
  402. .data-list-view.dataTable,
  403. .data-thumb-view.dataTable{
  404. tbody,thead{
  405. tr{
  406. td,th{
  407. &.dt-checkboxes-cell {
  408. input{
  409. width: auto;
  410. }
  411. }
  412. }
  413. }
  414. }
  415. .table-responsive{
  416. .top{
  417. .dataTables_filter {
  418. .form-control{
  419. height: 1.4rem !important;
  420. padding: 0rem .5rem !important;
  421. &:after{
  422. display: none;
  423. }
  424. }
  425. }
  426. }
  427. }
  428. }
  429. @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  430. #data-list-view,
  431. #data-thumb-view{
  432. .table-responsive{
  433. .top{
  434. .dataTables_filter {
  435. .form-control{
  436. height: 3rem !important;
  437. padding: 0rem 1rem !important;
  438. }
  439. label{
  440. &:after{
  441. display: none;
  442. }
  443. }
  444. }
  445. }
  446. }
  447. }
  448. }
  449. // Macos Firefox Specific
  450. @supports (-moz-osx-font-smoothing: auto) {
  451. .data-list-view,
  452. .data-thumb-view {
  453. input{
  454. width: auto !important;
  455. }
  456. }
  457. }
  458. // Safari specific
  459. @media not all and (min-resolution:.001dpcm){
  460. @supports (-webkit-appearance:none) {
  461. table{
  462. &.data-list-view,
  463. &.data-thumb-view{
  464. tbody{
  465. td.dt-checkboxes-cell{
  466. input:after{
  467. left: -.485rem;
  468. }
  469. }
  470. }
  471. }
  472. }
  473. .data-list-view,
  474. .data-thumb-view {
  475. .dt-checkboxes-cell{
  476. input{
  477. -webkit-appearance: none;
  478. top: -10px;
  479. }
  480. }
  481. }
  482. }
  483. }
  484. // macbook chrome specific
  485. .data-list-view,
  486. .data-thumb-view {
  487. .mac-checkbox{
  488. -webkit-appearance: none;
  489. top: -10px;
  490. }
  491. }