files.scss 29 KB

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