files.scss 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324
  1. /**
  2. * Copyright (c) 2011, Jan-Christoph Borchardt, http://jancborchardt.net
  3. * @copyright Copyright (c) 2019, Fabian Dreßler <nudelsalat@clouz.de>
  4. *
  5. * This file is licensed under the Affero General Public License version 3 or later.
  6. * See the COPYING-README file.
  7. */
  8. @use 'variables';
  9. @import 'functions';
  10. /* FILE MENU */
  11. .actions {
  12. padding: 5px;
  13. height: 100%;
  14. display: inline-block;
  15. float: left;
  16. }
  17. .actions input, .actions button, .actions .button { margin:0; float:left; }
  18. .actions .button a { color: #555; }
  19. .actions .button a:hover,
  20. .actions .button a:focus {
  21. background-color: var(--color-background-hover);
  22. }
  23. .actions .button a:active {
  24. background-color: var(--color-primary-light);
  25. }
  26. .actions.creatable {
  27. position: relative;
  28. display: flex;
  29. flex: 1 1;
  30. .button:not(:last-child) {
  31. margin-right: 3px;
  32. }
  33. }
  34. .actions.hidden {
  35. display: none;
  36. }
  37. #trash {
  38. margin-right: 8px;
  39. float: right;
  40. z-index: 1010;
  41. padding: 10px;
  42. font-weight: normal;
  43. }
  44. .newFileMenu .error,
  45. .newFileMenu .error + .icon-confirm,
  46. .files-fileList .error {
  47. color: var(--color-error);
  48. border-color: var(--color-error);
  49. }
  50. /* FILE TABLE */
  51. .files-filestable {
  52. position: relative;
  53. width: 100%;
  54. min-width: 250px;
  55. display: block;
  56. flex-direction: column;
  57. // hide table if emptycontent is not hidden
  58. .emptycontent:not(.hidden) ~ & {
  59. display: none;
  60. }
  61. // floating header
  62. thead {
  63. position: -webkit-sticky;
  64. position: sticky;
  65. // breadcrumbs
  66. top: 44px;
  67. // under breadcrumbs, over file list
  68. z-index: 60;
  69. display: block;
  70. background-color: var(--color-main-background-translucent);
  71. }
  72. /**
  73. * This is a dirty hack as the sticky header requires us to use a different display type on the table element
  74. */
  75. tbody {
  76. display: table;
  77. width: 100%;
  78. tr[data-permissions="0"],
  79. tr[data-permissions="16"] {
  80. background-color: var(--color-background-dark);
  81. td.filename .nametext .innernametext {
  82. color: var(--color-text-maxcontrast);
  83. }
  84. }
  85. // Deactivates the possiblility to checkmark or click on the encrypted folder
  86. tr[data-e2eencrypted="true"] .selection {
  87. pointer-events: none;
  88. }
  89. }
  90. }
  91. .files-filestable.hidden {
  92. display: none;
  93. }
  94. /* fit app list view heights */
  95. .app-files #app-content > .viewcontainer {
  96. min-height: 0%;
  97. width: 100%;
  98. }
  99. .app-files #app-content {
  100. // force the width to be the full width to not go bigger than the screen
  101. // flex will grow for the mobile view if necessary
  102. width: calc(100% - 300px);
  103. }
  104. .file-drag, .file-drag .files-filestable tbody tr, .file-drag .files-filestable tbody tr:hover {
  105. background-color: var(--color-primary-light) !important;
  106. }
  107. .app-files #app-content.dir-drop {
  108. background-color: var(--color-main-background) !important;
  109. }
  110. .file-drag .files-filestable tbody tr, .file-drag .files-filestable tbody tr:hover{
  111. background-color: transparent !important;
  112. }
  113. .app-files #app-content.dir-drop .files-filestable tbody tr.dropping-to-dir{
  114. background-color: var(--color-primary-light) !important;
  115. }
  116. /* icons for sidebar */
  117. .nav-icon-files {
  118. @include icon-color('folder', 'files', variables.$color-black);
  119. }
  120. .nav-icon-recent {
  121. @include icon-color('recent', 'files', variables.$color-black);
  122. }
  123. .nav-icon-favorites {
  124. @include icon-color('starred', 'actions', variables.$color-black, 2, true);
  125. }
  126. .nav-icon-sharingin,
  127. .nav-icon-sharingout,
  128. .nav-icon-pendingshares,
  129. .nav-icon-shareoverview {
  130. @include icon-color('share', 'files', variables.$color-black);
  131. }
  132. .nav-icon-sharinglinks {
  133. @include icon-color('public', 'files', variables.$color-black);
  134. }
  135. .nav-icon-extstoragemounts {
  136. @include icon-color('external', 'files', variables.$color-black);
  137. }
  138. .nav-icon-trashbin {
  139. @include icon-color('delete', 'files', variables.$color-black);
  140. }
  141. .nav-icon-trashbin-starred {
  142. @include icon-color('delete', 'files', #ff0000);
  143. }
  144. .nav-icon-deletedshares {
  145. @include icon-color('unshare', 'files', variables.$color-black);
  146. }
  147. .nav-icon-favorites-starred {
  148. @include icon-color('starred', 'actions', variables.$color-yellow, 2, true);
  149. }
  150. #app-navigation .nav-files a.nav-icon-files {
  151. width: auto;
  152. }
  153. /* button needs overrides due to navigation styles */
  154. #app-navigation .nav-files a.new {
  155. width: 40px;
  156. height: 32px;
  157. padding: 0 10px;
  158. margin: 0;
  159. cursor: pointer;
  160. }
  161. #app-navigation .nav-files a.new.hidden {
  162. display: none;
  163. }
  164. #app-navigation .nav-files a.new.disabled {
  165. opacity: 0.3;
  166. }
  167. .files-filestable tbody tr {
  168. height: 51px;
  169. }
  170. .files-filestable tbody tr:hover,
  171. .files-filestable tbody tr:focus,
  172. .files-filestable tbody .name:focus,
  173. .files-filestable tbody tr:hover .filename form,
  174. table tr.mouseOver td {
  175. background-color: var(--color-background-hover);
  176. }
  177. .files-filestable tbody tr:active,
  178. .files-filestable tbody tr.highlighted,
  179. .files-filestable tbody tr.highlighted .name:focus,
  180. .files-filestable tbody tr.selected,
  181. .files-filestable tbody tr.searchresult {
  182. background-color: var(--color-primary-light);
  183. }
  184. tbody a { color: var(--color-main-text); }
  185. span.conflict-path, span.extension, span.uploading, td.date {
  186. color: var(--color-text-maxcontrast);
  187. }
  188. span.conflict-path, span.extension {
  189. -webkit-transition: opacity 300ms;
  190. -moz-transition: opacity 300ms;
  191. -o-transition: opacity 300ms;
  192. transition: opacity 300ms;
  193. vertical-align: top;
  194. }
  195. tr:hover span.conflict-path,
  196. tr:focus span.conflict-path,
  197. tr:hover span.extension,
  198. tr:focus span.extension {
  199. opacity: 1;
  200. color: var(--color-text-maxcontrast);
  201. }
  202. table th, table th a {
  203. color: var(--color-text-maxcontrast);
  204. }
  205. table.multiselect th a {
  206. color: var(--color-main-text);
  207. }
  208. table th .columntitle {
  209. display: block;
  210. padding: 15px;
  211. height: 50px;
  212. box-sizing: border-box;
  213. -moz-box-sizing: border-box;
  214. vertical-align: middle;
  215. &:focus-visible {
  216. border-radius: 2px;
  217. }
  218. }
  219. table.multiselect th .columntitle {
  220. display: inline-block;
  221. margin-right: -20px;
  222. }
  223. table th .columntitle.name {
  224. padding-left: 0;
  225. margin-left: 44px;
  226. }
  227. table.multiselect th .columntitle.name {
  228. margin-left: 0;
  229. }
  230. table th .sort-indicator {
  231. width: 10px;
  232. height: 8px;
  233. margin-left: 5px;
  234. display: inline-block;
  235. vertical-align: text-bottom;
  236. opacity: .3;
  237. }
  238. .sort-indicator.hidden,
  239. .multiselect .sort-indicator,
  240. table.multiselect th:hover .sort-indicator.hidden,
  241. table.multiselect th:focus .sort-indicator.hidden {
  242. visibility: hidden;
  243. }
  244. .multiselect .sort, .multiselect .sort span {
  245. cursor: default;
  246. }
  247. table th:hover .sort-indicator.hidden,
  248. table th:focus .sort-indicator.hidden {
  249. visibility: visible;
  250. }
  251. table th,
  252. table td {
  253. border-bottom: 1px solid var(--color-border);
  254. text-align: left;
  255. font-weight: normal;
  256. }
  257. table td {
  258. padding: 0 15px;
  259. font-style: normal;
  260. background-position: 8px center;
  261. background-repeat: no-repeat;
  262. }
  263. table th.column-name {
  264. position: relative;
  265. width: 9999px; /* not really sure why this works better than 100% … table styling */
  266. padding: 0;
  267. }
  268. .column-name-container {
  269. position: relative;
  270. height: 50px;
  271. }
  272. table th.column-selection {
  273. padding-top: 2px;
  274. }
  275. table th.column-size, table td.filesize {
  276. text-align: right;
  277. }
  278. table th.column-mtime, table td.date,
  279. table th.column-last, table td.column-last {
  280. -moz-box-sizing: border-box;
  281. box-sizing: border-box;
  282. position: relative;
  283. /* this can not be just width, both need to be set … table styling */
  284. min-width: 130px;
  285. }
  286. #app-content-recent,
  287. #app-content-favorites,
  288. #app-content-shareoverview,
  289. #app-content-sharingout,
  290. #app-content-sharingin,
  291. #app-content-sharinglinks,
  292. #app-content-deletedshares,
  293. #app-content-pendingshares {
  294. margin-top: 22px;
  295. thead {
  296. top: 0;
  297. }
  298. }
  299. table.multiselect thead th {
  300. background-color: var(--color-main-background-translucent);
  301. font-weight: bold;
  302. }
  303. #app-content.with-app-sidebar table.multiselect thead{
  304. margin-right: 27%;
  305. }
  306. table.multiselect .column-name {
  307. position: relative;
  308. width: 9999px; /* when we use 100%, the styling breaks on mobile … table styling */
  309. }
  310. table.multiselect .column-mtime>a {
  311. display: none;
  312. }
  313. table td.selection,
  314. table th.selection,
  315. table td.fileaction {
  316. width: 32px;
  317. text-align: center;
  318. }
  319. table td.filename a.name,
  320. table td.filename p.name {
  321. display: flex;
  322. position:relative; /* Firefox needs to explicitly have this default set … */
  323. -moz-box-sizing: border-box;
  324. box-sizing: border-box;
  325. height: 50px;
  326. line-height: 50px;
  327. padding: 0;
  328. }
  329. table td.filename .thumbnail-wrapper {
  330. /* we need this to make sure flex is working inside a table cell */
  331. width: 0;
  332. min-width: 50px;
  333. max-width: 50px;
  334. height: 50px;
  335. }
  336. table td.filename .thumbnail-wrapper.icon-loading-small {
  337. &:after {
  338. z-index: 10;
  339. }
  340. .thumbnail {
  341. opacity: 0.2;
  342. }
  343. }
  344. table td.filename .thumbnail {
  345. display: inline-block;
  346. width: 32px;
  347. height: 32px;
  348. background-size: contain;
  349. background-position: center;
  350. background-repeat: no-repeat;
  351. margin-left: 9px;
  352. margin-top: 9px;
  353. border-radius: var(--border-radius);
  354. cursor: pointer;
  355. position: absolute;
  356. z-index: 4;
  357. }
  358. table td.filename p.name .thumbnail {
  359. cursor: default;
  360. }
  361. // Show slight border around previews for images, txt, etc.
  362. table tr[data-has-preview='true'] .thumbnail {
  363. border: 1px solid var(--color-border);
  364. }
  365. table:not(.view-grid) td.filename input.filename {
  366. width: 70% !important;
  367. margin-left: 48px !important;
  368. cursor: text;
  369. }
  370. table td.filename form {
  371. margin-top: -40px;
  372. position: relative;
  373. top: -6px;
  374. }
  375. table td.filename a, table td.login, table td.logout, table td.download, table td.upload, table td.create, table td.delete { padding:3px 8px 8px 3px; }
  376. table td.filename .nametext, .modified, .column-last>span:first-child { float:left; padding:15px 0; }
  377. .modified, .column-last>span:first-child {
  378. position: relative;
  379. overflow: hidden;
  380. text-overflow: ellipsis;
  381. width: 110px;
  382. }
  383. /* TODO fix usability bug (accidental file/folder selection) */
  384. table {
  385. td.filename {
  386. max-width: 0;
  387. .nametext {
  388. width: 0;
  389. flex-grow: 1;
  390. display: flex;
  391. overflow: hidden;
  392. white-space: nowrap;
  393. text-overflow: ellipsis;
  394. height: 100%;
  395. z-index: 10;
  396. padding: 0 20px 0 0;
  397. }
  398. }
  399. }
  400. .hide-hidden-files .files-filestable .files-fileList tr.hidden-file,
  401. .hide-hidden-files .files-filestable .files-fileList tr.hidden-file.dragging {
  402. display: none;
  403. }
  404. .files-fileList tr.animate-opacity {
  405. -webkit-transition:opacity 250ms;
  406. -moz-transition:opacity 250ms;
  407. -o-transition:opacity 250ms;
  408. transition:opacity 250ms;
  409. }
  410. .files-fileList tr.dragging {
  411. opacity: 0.2;
  412. }
  413. table td.filename .nametext .innernametext {
  414. text-overflow: ellipsis;
  415. overflow: hidden;
  416. position: relative;
  417. vertical-align: top;
  418. }
  419. /* for smaller resolutions - see mobile.css */
  420. table td.filename .uploadtext {
  421. position: absolute;
  422. font-weight: normal;
  423. // checkbox width
  424. margin-left: 50px;
  425. left: 0;
  426. bottom: 0;
  427. height: 20px;
  428. padding: 0 4px;
  429. // align with file name
  430. padding-left: 1px;
  431. font-size: 11px;
  432. // double the font size
  433. line-height: 22px;
  434. color: var(--color-text-maxcontrast);
  435. text-overflow: ellipsis;
  436. white-space: nowrap;
  437. }
  438. table td.selection {
  439. padding: 0;
  440. }
  441. /* File checkboxes */
  442. .files-fileList tr td.selection>.selectCheckBox + label:before {
  443. opacity: 0.3;
  444. margin-right: 0;
  445. }
  446. /* Show checkbox with full opacity when hovering, checked, or selected */
  447. .files-fileList tr:hover td.selection>.selectCheckBox + label:before,
  448. .files-fileList tr:focus td.selection>.selectCheckBox + label:before,
  449. .files-fileList tr td.selection>.selectCheckBox:checked + label:before,
  450. .files-fileList tr.selected td.selection>.selectCheckBox + label:before {
  451. opacity: 1;
  452. }
  453. /* Show checkbox with half opacity when selecting range */
  454. .files-fileList tr.halfselected td.selection>.selectCheckBox + label:before {
  455. opacity: 0.5;
  456. }
  457. /* Use label to have bigger clickable size for checkbox */
  458. .files-fileList tr td.selection>.selectCheckBox,
  459. .select-all {
  460. & + label {
  461. padding: 16px;
  462. }
  463. &:focus-visible + label {
  464. background-color: var(--color-background-hover);
  465. border-radius: var(--border-radius-pill);
  466. outline: none !important;
  467. border: 2px solid var(--color-primary) !important;
  468. padding: 14px;
  469. }
  470. }
  471. .files-fileList tr td.selection>.selectCheckBox:focus-visible + label,
  472. .select-all:focus-visible + label {
  473. outline-offset: 0px;
  474. }
  475. .files-fileList tr td.filename {
  476. position: relative;
  477. width: 100%;
  478. padding-left: 0;
  479. padding-right:0;
  480. -webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms;
  481. }
  482. .files-fileList tr td.filename a.name label,
  483. .files-fileList tr td.filename p.name label {
  484. position: absolute;
  485. width: 80%;
  486. height: 50px;
  487. }
  488. .files-fileList tr td.filename .favorite {
  489. display: inline-block;
  490. float: left;
  491. }
  492. .files-fileList tr td.filename .favorite-mark {
  493. position: absolute;
  494. display: block;
  495. top: -6px;
  496. right: -6px;
  497. line-height: 100%;
  498. text-align: center;
  499. }
  500. #uploadsize-message,#delete-confirm { display:none; }
  501. /* File actions */
  502. .fileactions {
  503. z-index: 50;
  504. }
  505. .busy .fileactions, .busy .action {
  506. visibility: hidden;
  507. }
  508. /* fix position of bubble pointer for Files app */
  509. .bubble,
  510. #app-navigation .app-navigation-entry-menu {
  511. min-width: 100px;
  512. }
  513. /* force show the loading icon, not only on hover */
  514. .files-fileList .icon-loading-small {
  515. opacity: 1 !important;
  516. display: inline !important;
  517. }
  518. .files-fileList .action.action-share-notification span, .files-fileList a.name {
  519. cursor: default !important;
  520. }
  521. /*
  522. * Make the disabled link look not like a link in file list rows
  523. */
  524. .files-fileList a.name.disabled {
  525. * {
  526. cursor: default;
  527. }
  528. a, a * {
  529. cursor: pointer;
  530. }
  531. &:focus {
  532. background: none;
  533. }
  534. }
  535. a.action > img {
  536. height: 16px;
  537. width: 16px;
  538. vertical-align: text-bottom;
  539. }
  540. a.action.action-editlocally img.icon {
  541. filter: var(--background-invert-if-dark);
  542. }
  543. /* Actions for selected files */
  544. .selectedActions {
  545. position: relative;
  546. display: inline-block;
  547. vertical-align: middle;
  548. }
  549. .selectedActions.hidden {
  550. display: none;
  551. }
  552. .selectedActions a {
  553. display: inline;
  554. line-height: 50px;
  555. padding: 16px 5px;
  556. }
  557. .selectedActions a.hidden {
  558. display: none;
  559. }
  560. .selectedActions a img {
  561. position:relative;
  562. vertical-align: text-bottom;
  563. margin-bottom: -1px;
  564. }
  565. .selectedActions .actions-selected .icon-more {
  566. margin-top: -3px;
  567. }
  568. .files-fileList td a {
  569. a.action {
  570. display: inline;
  571. padding: 17px 8px;
  572. line-height: 50px;
  573. opacity: .3;
  574. &.action-share {
  575. padding: 17px 14px;
  576. &.permanent:not(.shared-style) .icon-shared + span {
  577. /* hide text of the share action */
  578. /* .hidden-visually for accessbility */
  579. position: absolute;
  580. left:-10000px;
  581. top: auto;
  582. width: 1px;
  583. height: 1px;
  584. overflow: hidden;
  585. }
  586. .avatar {
  587. display: inline-block;
  588. vertical-align: middle;
  589. }
  590. }
  591. &.action-menu {
  592. padding-top: 17px;
  593. padding-bottom: 17px;
  594. padding-left: 14px;
  595. padding-right: 14px;
  596. }
  597. &.no-permission {
  598. &:hover, &:focus {
  599. opacity: .3;
  600. }
  601. }
  602. &.disabled {
  603. &:hover, &:focus,
  604. img {
  605. opacity: .3;
  606. }
  607. &.action-download {
  608. opacity: .7;
  609. &:hover, &:focus {
  610. opacity: .7;
  611. }
  612. }
  613. }
  614. &:hover, &:focus {
  615. opacity: 1;
  616. }
  617. &:focus {
  618. background-color: var(--color-background-hover);
  619. border-radius: var(--border-radius-pill);
  620. }
  621. }
  622. .fileActionsMenu a.action, a.action.action-share.shared-style {
  623. opacity: .7;
  624. }
  625. .fileActionsMenu .action.permanent {
  626. opacity: 1;
  627. }
  628. }
  629. // Ellipsize long sharer names
  630. .files-fileList .action.action-share.permanent.shared-style span:not(.icon) {
  631. display: inline-block;
  632. max-width: 70px;
  633. overflow: hidden;
  634. text-overflow: ellipsis;
  635. vertical-align: middle;
  636. margin-left: 6px;
  637. }
  638. .files-fileList .remoteAddress .userDomain {
  639. margin-left: 0 !important;
  640. }
  641. .files-fileList .favorite-mark.permanent {
  642. opacity: 1;
  643. }
  644. .files-fileList .fileActionsMenu a.action:hover,
  645. .files-fileList .fileActionsMenu a.action:focus,
  646. /* show share action of shared items darker to distinguish from non-shared */
  647. .files-fileList a.action.action-share.shared-style:hover,
  648. .files-fileList a.action.action-share.shared-style:focus {
  649. opacity: 1;
  650. }
  651. .files-fileList tr a.action.disabled {
  652. background: none;
  653. }
  654. .selectedActions a.download.disabled,
  655. .files-fileList tr a.action.action-download.disabled {
  656. color: #000000;
  657. }
  658. .files-fileList tr:hover a.action.disabled:hover * {
  659. cursor: default;
  660. }
  661. .summary {
  662. color: var(--color-text-maxcontrast);
  663. /* add whitespace to bottom of files list to correctly show dropdowns */
  664. $action-menu-items-count: 7; // list view has currently max 7 items in its action menu
  665. height: 44px * ($action-menu-items-count + 0.5); // 0.5 is added to show some whitespace below
  666. }
  667. .files-filestable .summary .filesummary {
  668. width: 100%;
  669. /* Width of checkbox and file preview */
  670. padding-left: 101px;
  671. }
  672. /* Less whitespace needed on link share page
  673. * as there is a footer and action menus have fewer entries.
  674. */
  675. #body-public .summary {
  676. height: 180px;
  677. }
  678. .summary:hover,
  679. .summary:focus,
  680. .summary,
  681. table tr.summary td {
  682. background-color: transparent;
  683. }
  684. .summary td {
  685. border-bottom: none;
  686. vertical-align: top;
  687. padding-top: 20px;
  688. }
  689. .summary td:first-child {
  690. padding: 0;
  691. }
  692. .hiddeninfo {
  693. white-space: pre-line;
  694. }
  695. table.dragshadow {
  696. width:auto;
  697. z-index: 2000;
  698. }
  699. table.dragshadow td.filename {
  700. padding-left:60px;
  701. padding-right:16px;
  702. height: 36px;
  703. /* Override "max-width: 0" to prevent file name and size from overlapping */
  704. max-width: unset;
  705. }
  706. table.dragshadow td.size {
  707. padding-right:8px;
  708. }
  709. .mask {
  710. z-index: 50;
  711. position: absolute;
  712. top: 0;
  713. left: 0;
  714. right: 0;
  715. bottom: 0;
  716. background-color: var(--color-main-background);
  717. background-repeat: no-repeat no-repeat;
  718. background-position: 50%;
  719. opacity: 0.7;
  720. transition: opacity 100ms;
  721. -moz-transition: opacity 100ms;
  722. -o-transition: opacity 100ms;
  723. -ms-transition: opacity 100ms;
  724. -webkit-transition: opacity 100ms;
  725. }
  726. .mask.transparent{
  727. opacity: 0;
  728. }
  729. .newFileMenu {
  730. font-weight: 300;
  731. top: 100%;
  732. left: -48px !important;
  733. margin-top: 4px;
  734. min-width: 100px;
  735. z-index: 1001;
  736. /* Center triangle */
  737. &::after {
  738. left: 61px !important;
  739. }
  740. }
  741. .files-controls {
  742. box-sizing: border-box;
  743. position: -webkit-sticky;
  744. position: sticky;
  745. height: 54px;
  746. padding: 0;
  747. margin: 0;
  748. background-color: var(--color-main-background-translucent);
  749. z-index: 62; /* must be above the filelist sticky header and texteditor menubar */
  750. -webkit-user-select: none;
  751. -moz-user-select: none;
  752. -ms-user-select: none;
  753. user-select: none;
  754. display: flex;
  755. top: 0;
  756. padding-top: 3px;
  757. .actions {
  758. > div,
  759. & {
  760. > .button, button {
  761. box-sizing: border-box;
  762. display: inline-block;
  763. display: flex;
  764. height: 44px;
  765. width: 44px;
  766. padding: 9px; // width - border - icon width = 18px
  767. align-items: center;
  768. justify-content: center;
  769. }
  770. .button.hidden {
  771. display: none;
  772. }
  773. }
  774. }
  775. }
  776. /* position controls for apps with app-navigation */
  777. .viewer-mode #app-navigation + #app-content .files-controls {
  778. left: 0;
  779. }
  780. .files-filestable .filename .action .icon,
  781. .files-filestable .selectedActions a .icon,
  782. .files-filestable .filename .favorite-mark .icon,
  783. .files-controls .actions .button .icon {
  784. display: inline-block;
  785. vertical-align: middle;
  786. background-size: 16px 16px;
  787. }
  788. .files-filestable .filename .favorite-mark {
  789. // Override default icons to always hide the star icon and always show the
  790. // starred icon even when hovered or focused.
  791. & .icon-star {
  792. background-image: none;
  793. }
  794. & .icon-starred {
  795. background-image: var(--icon-starred-yellow) !important;
  796. }
  797. }
  798. .files-filestable .filename .action .icon.hidden,
  799. .files-filestable .selectedActions a .icon.hidden,
  800. .files-controls .actions .button .icon.hidden {
  801. display: none;
  802. }
  803. .files-filestable .filename .action .icon.loading,
  804. .files-filestable .selectedActions a .icon.loading,
  805. .files-controls .actions .button .icon.loading {
  806. width: 15px;
  807. height: 15px;
  808. }
  809. .app-files .actions .button.new {
  810. position: relative;
  811. }
  812. .breadcrumb {
  813. align-items: center;
  814. .icon-home {
  815. border-radius: var(--border-radius);
  816. }
  817. }
  818. .breadcrumb .canDrop > a,
  819. .files-filestable tbody tr.canDrop {
  820. background-color: rgba( variables.$color-primary, .3 );
  821. }
  822. .dropzone-background {
  823. background-color: rgba( variables.$color-primary, .3 );
  824. :hover{
  825. box-shadow: none !important;
  826. }
  827. }
  828. .notCreatable {
  829. margin-left: 12px;
  830. margin-right: 44px;
  831. margin-top: 12px;
  832. color: var(--color-main-text);
  833. overflow: auto;
  834. min-width: 160px;
  835. height: 54px;
  836. &:not(.hidden) {
  837. display: flex;
  838. }
  839. .icon-alert-outline {
  840. top: -15px;
  841. position: relative;
  842. margin-right: 4px;
  843. }
  844. }
  845. .quota-navigation-item {
  846. margin: 0 !important;
  847. border: none;
  848. border-radius: 0;
  849. background-color: transparent;
  850. z-index:1;
  851. height: 44px;
  852. display: flex !important;
  853. flex-direction: column;
  854. &__text {
  855. height: 30px;
  856. }
  857. &[href='#'] {
  858. // if no link is set, no mouse feedback
  859. &, * {
  860. cursor: default !important;
  861. }
  862. }
  863. &__container {
  864. height: 5px;
  865. border-radius: var(--border-radius);
  866. }
  867. }
  868. /* GRID */
  869. .files-filestable.view-grid:not(.hidden) {
  870. $grid-size: 160px;
  871. $grid-pad: 14px;
  872. /* HEADER and MULTISELECT */
  873. thead {
  874. tr {
  875. display: block;
  876. border-bottom: 1px solid var(--color-border);
  877. background-color: var(--color-main-background-translucent);
  878. th {
  879. width: auto;
  880. border: none;
  881. }
  882. }
  883. }
  884. /* MAIN FILE LIST */
  885. tbody {
  886. display: grid;
  887. grid-template-columns: repeat(auto-fill, $grid-size);
  888. justify-content: space-around;
  889. row-gap: 15px;
  890. margin: 15px 0;
  891. // ensure search still filters tr with .hidden
  892. tr:not(.hidden) {
  893. display: block;
  894. position: relative;
  895. height: $grid-size + 44px - $grid-pad;
  896. border-radius: var(--border-radius);
  897. &:hover, &:focus, &:active,
  898. &.selected,
  899. &.searchresult,
  900. .name:focus,
  901. &.highlighted {
  902. background-color: transparent;
  903. .thumbnail-wrapper,
  904. .nametext,
  905. .fileactions {
  906. background-color: var(--color-background-hover);
  907. }
  908. }
  909. }
  910. td {
  911. display: inline;
  912. border-bottom: none;
  913. &.filename {
  914. .thumbnail-wrapper {
  915. min-width: 0;
  916. max-width: none;
  917. position: absolute;
  918. width: $grid-size;
  919. height: $grid-size;
  920. padding: $grid-pad; // same as action icon bottom and right padding
  921. top: 0;
  922. left: 0;
  923. z-index: -1; // make sure the default click is the link
  924. .thumbnail {
  925. width: calc(100% - 2 * #{$grid-pad});
  926. height: calc(100% - 2 * #{$grid-pad}); //action icon padding
  927. background-size: contain;
  928. margin: 0;
  929. border-radius: var(--border-radius);
  930. background-repeat: no-repeat;
  931. background-position: center;
  932. /* Position favorite star related to checkbox to left and 3-dot menu below
  933. * Position is inherited from the selection while in grid view
  934. */
  935. .favorite-mark {
  936. padding: $grid-pad;
  937. left: auto;
  938. top: -22px; // center in corner of thumbnail
  939. right: -22px; // center in corner of thumbnail
  940. }
  941. }
  942. }
  943. .uploadtext {
  944. width: 100%;
  945. margin: 0;
  946. top: 0;
  947. bottom: auto;
  948. // checkbox align
  949. height: 28px;
  950. padding-top: 4px;
  951. // checkbox margins
  952. padding-left: calc(44px - 16px);
  953. }
  954. .name {
  955. height: 100%;
  956. border-radius: var(--border-radius);
  957. // since we're using thumbnail, name and actions bg
  958. // we need to hide the overflow for the radius to show
  959. // luckily the popovermenu is outside .name
  960. overflow: hidden;
  961. // we but the thumbnail in background to ensure
  962. // the name is the default click handler
  963. // force back the cursor which has been overridden
  964. // and disabled for some reason...
  965. cursor: pointer !important;
  966. .nametext {
  967. display: flex;
  968. height: 44px;
  969. margin-top: $grid-size - $grid-pad;
  970. text-align: center;
  971. line-height: 44px;
  972. padding: 0;
  973. .innernametext {
  974. display: inline-block;
  975. text-align: center;
  976. overflow: hidden;
  977. text-overflow: ellipsis;
  978. white-space: nowrap;
  979. }
  980. &:before {
  981. content: '';
  982. flex: 1;
  983. min-width: 14px;
  984. }
  985. &:after {
  986. content: '';
  987. flex: 1;
  988. min-width: 44px;
  989. }
  990. /* No space for extension in grid view */
  991. .extension {
  992. display: none;
  993. }
  994. }
  995. .fileactions {
  996. height: initial;
  997. margin-top: $grid-size - $grid-pad;
  998. display: flex;
  999. align-items: center;
  1000. position: absolute;
  1001. right: 0;
  1002. .action {
  1003. padding: $grid-pad;
  1004. width: 44px;
  1005. height: 44px;
  1006. display: flex;
  1007. align-items: center;
  1008. justify-content: center;
  1009. // hide all actions in grid view that are not the menu
  1010. &:not(.action-menu) {
  1011. display: none;
  1012. }
  1013. }
  1014. }
  1015. }
  1016. .fileActionsMenu {
  1017. // force show the sharing entry in the dropdown menu
  1018. .action-share-container.hidden {
  1019. display: block !important;
  1020. // avatar in shared by user dropdown menu
  1021. .action-share img {
  1022. padding: 6px;
  1023. border-radius: 50%;
  1024. }
  1025. }
  1026. // force show the sharing entry in the dropdown menu
  1027. .action-restore-container.hidden {
  1028. display: block !important;
  1029. }
  1030. // force show the sharing entry in the dropdown menu
  1031. .action-comment-container.hidden {
  1032. display: block !important;
  1033. }
  1034. }
  1035. form {
  1036. padding: 3px 14px;
  1037. border-radius: var(--border-radius);
  1038. input.filename {
  1039. width: 100%;
  1040. margin-left: 0;
  1041. cursor: text;
  1042. }
  1043. }
  1044. }
  1045. /* No space for filesize and date in grid view */
  1046. &.filesize,
  1047. &.date {
  1048. display: none;
  1049. }
  1050. &.selection,
  1051. &.filename .favorite-mark {
  1052. position: absolute;
  1053. top: -8px; // half the checkbox width, center on corner of thumbnail
  1054. left: -8px; // half the checkbox width, center on corner of thumbnail
  1055. display: flex;
  1056. width: 44px;
  1057. height: 44px;
  1058. z-index: 10;
  1059. background: transparent;
  1060. label {
  1061. width: 44px;
  1062. height: 44px;
  1063. display: inline-flex;
  1064. padding: $grid-pad; // like any action icon
  1065. &::before {
  1066. margin: 0;
  1067. width: $grid-pad; // 16px - border
  1068. height: $grid-pad; // 16px - border
  1069. }
  1070. }
  1071. }
  1072. /* Position actions menu below file */
  1073. .popovermenu {
  1074. left: 0;
  1075. width: $grid-size - 10px; // 2 * margin
  1076. margin: 0 5px;
  1077. /* Ellipsize long entries, normally menu width is adjusted but for grid we use fixed width. */
  1078. .menuitem span:not(.icon) {
  1079. overflow: hidden;
  1080. text-overflow: ellipsis;
  1081. }
  1082. }
  1083. }
  1084. }
  1085. tr.hidden-file td.filename .name .nametext .extension {
  1086. display: block;
  1087. }
  1088. /* Center align the footer file number & size summary */
  1089. tfoot {
  1090. display: grid;
  1091. .summary:not(.hidden) {
  1092. display: inline-block;
  1093. margin: 0 auto;
  1094. $action-menu-items-count: 9; // grid view has currently max 9 items in its action menu
  1095. height: 44px * ($action-menu-items-count + 0.5); // 0.5 is added to show some whitespace below
  1096. td {
  1097. padding-top: 50px;
  1098. &:first-child,
  1099. &.date {
  1100. display: none;
  1101. }
  1102. .info {
  1103. margin-left: 0;
  1104. }
  1105. }
  1106. }
  1107. }
  1108. }
  1109. /* Grid view toggle */
  1110. #view-toggle {
  1111. background-color: transparent;
  1112. border: none;
  1113. margin: 0;
  1114. padding: 22px;
  1115. opacity: .5;
  1116. float: right;
  1117. right: calc(var(--default-grid-baseline) * 4);
  1118. top: calc(var(--header-height) + var(--default-grid-baseline));
  1119. z-index: 100;
  1120. &:hover,
  1121. &:focus,
  1122. #showgridview:focus + & {
  1123. opacity: 1;
  1124. }
  1125. &:focus-visible,
  1126. #showgridview:focus-visible + & {
  1127. box-shadow: inset 0 0 0 2px var(--color-primary) !important;
  1128. }
  1129. }
  1130. /**
  1131. * Make sure the hidden input is always
  1132. * on the visible scrolled area of the
  1133. * page to avoid scrolling to top when focusing
  1134. */
  1135. #showgridview {
  1136. position: fixed;
  1137. top: 0;
  1138. }
  1139. /* Adjustments for link share page */
  1140. #body-public {
  1141. .files-filestable.view-grid:not(.hidden) tbody td {
  1142. /* More space for filename since there is no share icon */
  1143. &.filename .name .nametext .innernametext {
  1144. max-width: 124px;
  1145. }
  1146. /* Position actions menu correctly below 3-dot-menu */
  1147. .popovermenu {
  1148. left: -80px;
  1149. }
  1150. }
  1151. /* Right-align view toggle on link share page */
  1152. #view-toggle {
  1153. position: absolute;
  1154. right: 0;
  1155. top: 0;
  1156. }
  1157. }
  1158. /* Hide legacy Gallery toggle */
  1159. #gallery-button {
  1160. display: none;
  1161. }
  1162. #tag_multiple_files_container {
  1163. overflow: hidden;
  1164. background-color: #fff;
  1165. border-radius: 3px;
  1166. position: relative;
  1167. display: flex;
  1168. flex-wrap: wrap;
  1169. margin-bottom: 10px;
  1170. h3 {
  1171. width: 100%;
  1172. padding: 0 18px;
  1173. }
  1174. .systemTagsInputFieldContainer {
  1175. flex: 1 1 80%;
  1176. min-width: 0;
  1177. margin: 0 12px;
  1178. }
  1179. }