files.css 34 KB

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