app-file-manager.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. // ================================================================================================
  2. // File Name: app-file-manager.scss
  3. // Description: SCC file for email application page.
  4. // ----------------------------------------------------------------------------------------------
  5. // Item Name: Vuexy - Vuejs, React, Angular, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ================================================================================================
  9. @import '../bootstrap-extended/include'; // Bootstrap includes
  10. @import '../components/include'; // Components includes
  11. $file-manager-logo-height: 7.5rem;
  12. // file manager app container
  13. .file-manager-application {
  14. // file manager sidebar styles
  15. .sidebar-file-manager {
  16. width: $sidebar-width;
  17. height: 100%;
  18. background-color: $white;
  19. border-top-left-radius: $border-radius-sm;
  20. border-bottom-left-radius: $border-radius-sm;
  21. transition: all 0.3s ease, background 0s;
  22. // styles for card-inner
  23. .sidebar-inner {
  24. height: inherit;
  25. .dropdown-actions {
  26. width: 100%;
  27. padding: 1.5rem 1.5rem 1.8rem;
  28. }
  29. .sidebar-close-icon {
  30. position: absolute;
  31. top: 0.25rem;
  32. right: 0.25rem;
  33. font-size: $font-size-xl;
  34. z-index: 5;
  35. cursor: pointer;
  36. }
  37. .add-file-btn {
  38. & ~ .dropdown-menu {
  39. width: 85%;
  40. &:before {
  41. display: none;
  42. }
  43. }
  44. }
  45. // styles for card inner list
  46. .sidebar-list {
  47. position: relative;
  48. height: calc(100% - 85px); // search section height 85px
  49. .my-drive {
  50. padding: 0.58rem 0;
  51. .jstree-node {
  52. .jstree-icon {
  53. background-position: 0.5rem;
  54. background-size: 1.3rem;
  55. }
  56. .jstree-anchor > .jstree-themeicon {
  57. margin-right: 0.5rem;
  58. }
  59. &.jstree-closed {
  60. > .jstree-icon {
  61. background-image: url(str-replace(
  62. str-replace($chevron-right, 'currentColor', $headings-color),
  63. '#',
  64. '%23'
  65. ));
  66. }
  67. }
  68. &.jstree-open {
  69. > .jstree-icon {
  70. background-image: url(str-replace(
  71. str-replace($chevron-down, 'currentColor', $headings-color),
  72. '#',
  73. '%23'
  74. ));
  75. }
  76. }
  77. }
  78. }
  79. .list-group-labels,
  80. .storage-status {
  81. margin-top: 2.2rem;
  82. }
  83. .list-group-item {
  84. padding: 0.58rem 1.9rem;
  85. font-weight: 500;
  86. border: 0;
  87. border-radius: 0;
  88. border-left: 2px solid transparent;
  89. &:hover {
  90. z-index: 0 !important;
  91. }
  92. + .list-group-item.active {
  93. margin-top: 0;
  94. }
  95. }
  96. .active {
  97. background-color: transparent;
  98. border-color: $primary;
  99. color: $primary;
  100. }
  101. }
  102. }
  103. // show sidebar on click
  104. &.show {
  105. transition: all 0.25s ease, background 0s !important;
  106. transform: translateX(0) !important;
  107. z-index: 10;
  108. }
  109. }
  110. // styles for content area wrapper
  111. .content-area-wrapper {
  112. border: 1px solid $border-color;
  113. border-radius: $border-radius-sm;
  114. .content-right {
  115. .content-wrapper {
  116. padding: 0;
  117. }
  118. }
  119. // styles for file manger app area
  120. .file-manager-main-content {
  121. border-left: 1px solid $border-color;
  122. height: inherit;
  123. // styles for searchbar
  124. .file-manager-content-header {
  125. padding: 0.4rem 1rem;
  126. border-bottom: 1px solid $border-color;
  127. background-color: $white;
  128. border-top-right-radius: $border-radius;
  129. .file-manager-toggler {
  130. cursor: pointer;
  131. }
  132. input {
  133. border-color: transparent;
  134. box-shadow: none;
  135. }
  136. .file-actions:not(.show) {
  137. display: none;
  138. }
  139. }
  140. // styles for main content
  141. .file-manager-content-body {
  142. position: relative;
  143. padding: 1.5rem 1.5rem 0;
  144. height: calc(100% - 50px); // search area height
  145. background-color: $white;
  146. .view-container {
  147. display: flex;
  148. flex-wrap: wrap;
  149. .file-manager-item {
  150. border: 1px solid $border-color;
  151. margin-bottom: 1.6rem;
  152. box-shadow: none;
  153. margin-right: 1rem;
  154. transition: none;
  155. cursor: pointer;
  156. .card-body {
  157. padding: 1rem;
  158. padding-bottom: 0.5rem;
  159. }
  160. .custom-control-input:not(:checked) ~ .custom-control-label:before {
  161. background-color: transparent;
  162. }
  163. .file-logo-wrapper {
  164. padding: 1rem;
  165. height: $file-manager-logo-height;
  166. background-color: $body-bg;
  167. .feather-folder {
  168. stroke: $gray-100;
  169. }
  170. }
  171. .dropdown-menu {
  172. transform: none;
  173. &:before {
  174. display: none;
  175. }
  176. }
  177. .content-wrapper {
  178. display: flex;
  179. flex-direction: row;
  180. justify-content: space-between;
  181. align-items: center;
  182. height: auto;
  183. }
  184. .file-date {
  185. flex-grow: 1;
  186. margin-bottom: 0;
  187. }
  188. &.selected {
  189. border-color: $primary;
  190. }
  191. }
  192. .file-name {
  193. width: calc(100% - 26rem);
  194. min-height: 1rem;
  195. font-weight: 600;
  196. flex-grow: 1;
  197. overflow: hidden;
  198. text-overflow: ellipsis;
  199. white-space: nowrap;
  200. }
  201. .files-section-title {
  202. width: 100%;
  203. }
  204. &.list-view {
  205. flex-direction: column;
  206. .files-section-title {
  207. display: none;
  208. }
  209. .files-header {
  210. display: flex;
  211. justify-content: space-between;
  212. margin-left: 7.2rem;
  213. margin-bottom: 1rem;
  214. p {
  215. font-weight: 600;
  216. }
  217. .file-last-modified,
  218. .file-item-size {
  219. margin-right: 3rem;
  220. }
  221. }
  222. .file-manager-item {
  223. flex-direction: row;
  224. flex: 0 0 100%;
  225. align-items: center;
  226. max-width: 100%;
  227. margin-bottom: 0.75rem;
  228. margin-right: 0;
  229. .file-logo-wrapper {
  230. padding-right: 0;
  231. width: auto;
  232. height: auto;
  233. background-color: transparent !important;
  234. img {
  235. height: 1.5rem;
  236. }
  237. .feather-folder,
  238. .feather-arrow-up {
  239. width: 19px;
  240. height: 18px;
  241. }
  242. .dropdown {
  243. position: absolute;
  244. right: 1rem;
  245. }
  246. }
  247. .custom-checkbox {
  248. margin: 0 0.4rem 0 1.75rem;
  249. }
  250. .file-accessed {
  251. display: none;
  252. }
  253. .file-size {
  254. width: 5.71rem;
  255. flex-grow: 1;
  256. margin-bottom: 0;
  257. }
  258. }
  259. .folder {
  260. &.level-up {
  261. .file-logo-wrapper {
  262. margin-left: 3.5rem;
  263. }
  264. }
  265. }
  266. }
  267. &:not(.list-view) {
  268. .files-header {
  269. display: none;
  270. }
  271. .file-manager-item {
  272. .content-wrapper {
  273. margin-bottom: 0rem;
  274. }
  275. .file-date {
  276. display: none;
  277. }
  278. .file-size {
  279. color: $text-muted;
  280. font-size: 85%;
  281. }
  282. &:not(.selected):not(:hover) {
  283. .custom-checkbox,
  284. .toggle-dropdown {
  285. opacity: 0;
  286. }
  287. }
  288. .feather-folder {
  289. height: 32px;
  290. width: 35px;
  291. }
  292. &.folder.level-up {
  293. display: none !important;
  294. }
  295. .custom-checkbox {
  296. position: absolute;
  297. top: 1rem;
  298. left: 1rem;
  299. }
  300. }
  301. }
  302. }
  303. }
  304. }
  305. }
  306. }
  307. // media query for max-width of 1200px
  308. @media screen and (max-width: 1200px) {
  309. .file-manager-application {
  310. .content-right {
  311. width: 100%;
  312. }
  313. .content-body {
  314. margin-left: 0 !important;
  315. }
  316. .content-area-wrapper {
  317. .file-manager-main-content {
  318. border-left: 0;
  319. }
  320. }
  321. .sidebar-left {
  322. .sidebar {
  323. z-index: 10;
  324. .sidebar-file-manager {
  325. transform: translateX(-112%);
  326. transition: all 0.25s ease;
  327. position: absolute;
  328. }
  329. }
  330. }
  331. }
  332. }
  333. @include media-breakpoint-down(sm) {
  334. .file-manager-application {
  335. .view-container {
  336. .file-manager-item {
  337. flex: 47%;
  338. }
  339. }
  340. }
  341. }
  342. @include media-breakpoint-down(xs) {
  343. .file-manager-application {
  344. .content-area-wrapper {
  345. .file-manager-main-content {
  346. .file-manager-content-header {
  347. padding-left: 0.5rem;
  348. .file-actions {
  349. .dropdown {
  350. padding-left: 0.5rem;
  351. padding-right: 0.5rem;
  352. }
  353. }
  354. }
  355. }
  356. .view-container {
  357. .file-manager-item {
  358. flex: 0 0 100%;
  359. max-width: 100%;
  360. }
  361. &.list-view {
  362. .file-date,
  363. .file-last-modified,
  364. .file-size,
  365. .file-item-size {
  366. display: none !important;
  367. }
  368. }
  369. }
  370. }
  371. }
  372. }
  373. @include media-breakpoint-up(xs) {
  374. .file-manager-application {
  375. .view-container {
  376. .file-manager-item {
  377. flex: 0 0 47%;
  378. max-width: 50%;
  379. }
  380. }
  381. }
  382. }
  383. @include media-breakpoint-up(sm) {
  384. .file-manager-application {
  385. .view-container {
  386. .file-manager-item {
  387. flex: 0 0 23%;
  388. max-width: 25%;
  389. }
  390. }
  391. }
  392. }