You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

files.scss 28KB

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