files.scss 28 KB

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