files.scss 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319
  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-right: 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-right: 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-right: -20px;
  192. }
  193. table th .columntitle.name {
  194. padding-left: 0;
  195. margin-left: 44px;
  196. }
  197. table.multiselect th .columntitle.name {
  198. margin-left: 0;
  199. }
  200. table th .sort-indicator {
  201. width: 10px;
  202. height: 8px;
  203. margin-left: 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: left;
  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: right;
  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-right: 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-left: 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-left: 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 20px 0 0;
  367. }
  368. }
  369. }
  370. .hide-hidden-files .files-filestable .files-fileList tr.hidden-file,
  371. .hide-hidden-files .files-filestable .files-fileList tr.hidden-file.dragging {
  372. display: none !important;
  373. }
  374. .files-fileList tr.animate-opacity {
  375. -webkit-transition:opacity 250ms;
  376. -moz-transition:opacity 250ms;
  377. -o-transition:opacity 250ms;
  378. transition:opacity 250ms;
  379. }
  380. .files-fileList tr.dragging {
  381. opacity: 0.2;
  382. }
  383. table td.filename .nametext .innernametext {
  384. text-overflow: ellipsis;
  385. overflow: hidden;
  386. position: relative;
  387. vertical-align: top;
  388. }
  389. /* for smaller resolutions - see mobile.css */
  390. table td.filename .uploadtext {
  391. position: absolute;
  392. font-weight: normal;
  393. // checkbox width
  394. margin-left: 50px;
  395. left: 0;
  396. bottom: 0;
  397. height: 20px;
  398. padding: 0 4px;
  399. // align with file name
  400. padding-left: 1px;
  401. font-size: 11px;
  402. // double the font size
  403. line-height: 22px;
  404. color: var(--color-text-maxcontrast);
  405. text-overflow: ellipsis;
  406. white-space: nowrap;
  407. }
  408. table td.selection {
  409. padding: 0;
  410. }
  411. /* File checkboxes */
  412. .files-fileList tr td.selection>.selectCheckBox + label:before {
  413. opacity: 0.3;
  414. margin-right: 0;
  415. }
  416. /* Show checkbox with full opacity when hovering, checked, or selected */
  417. .files-fileList tr:hover td.selection>.selectCheckBox + label:before,
  418. .files-fileList tr:focus td.selection>.selectCheckBox + label:before,
  419. .files-fileList tr td.selection>.selectCheckBox:checked + label:before,
  420. .files-fileList tr.selected td.selection>.selectCheckBox + label:before {
  421. opacity: 1;
  422. }
  423. /* Show checkbox with half opacity when selecting range */
  424. .files-fileList tr.halfselected td.selection>.selectCheckBox + label:before {
  425. opacity: 0.5;
  426. }
  427. /* Use label to have bigger clickable size for checkbox */
  428. .files-fileList tr td.selection>.selectCheckBox,
  429. .select-all {
  430. & + label {
  431. padding: 16px;
  432. }
  433. &:focus-visible + label {
  434. background-color: var(--color-background-hover);
  435. border-radius: var(--border-radius-pill);
  436. outline: none !important;
  437. border: 2px solid var(--color-primary-element) !important;
  438. padding: 14px;
  439. }
  440. }
  441. .files-fileList tr td.selection>.selectCheckBox:focus-visible + label,
  442. .select-all:focus-visible + label {
  443. outline-offset: 0px;
  444. }
  445. .files-fileList tr td.filename {
  446. position: relative;
  447. width: 100%;
  448. padding-left: 0;
  449. padding-right: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. right: -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. left:-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-left: 14px;
  582. padding-right: 14px;
  583. }
  584. &.no-permission {
  585. &:hover, &:focus {
  586. opacity: .3;
  587. }
  588. }
  589. &.disabled {
  590. &:hover, &:focus,
  591. img {
  592. opacity: .3;
  593. }
  594. &.action-download {
  595. opacity: .7;
  596. &:hover, &:focus {
  597. opacity: .7;
  598. }
  599. }
  600. }
  601. &:hover, &:focus {
  602. opacity: 1;
  603. }
  604. &:focus {
  605. background-color: var(--color-background-hover);
  606. border-radius: var(--border-radius-pill);
  607. }
  608. }
  609. .fileActionsMenu a.action, a.action.action-share.shared-style {
  610. opacity: .7;
  611. }
  612. .fileActionsMenu .action.permanent {
  613. opacity: 1;
  614. }
  615. }
  616. // Ellipsize long sharer names
  617. .files-fileList .action.action-share.permanent.shared-style span:not(.icon) {
  618. display: inline-block;
  619. max-width: 70px;
  620. overflow: hidden;
  621. text-overflow: ellipsis;
  622. vertical-align: middle;
  623. margin-left: 6px;
  624. }
  625. .files-fileList .remoteAddress .userDomain {
  626. margin-left: 0 !important;
  627. }
  628. .files-fileList .favorite-mark.permanent {
  629. opacity: 1;
  630. }
  631. .files-fileList .fileActionsMenu a.action:hover,
  632. .files-fileList .fileActionsMenu a.action:focus,
  633. /* show share action of shared items darker to distinguish from non-shared */
  634. .files-fileList a.action.action-share.shared-style:hover,
  635. .files-fileList a.action.action-share.shared-style:focus {
  636. opacity: 1;
  637. }
  638. .files-fileList tr a.action.disabled {
  639. background: none;
  640. }
  641. .selectedActions a.download.disabled,
  642. .files-fileList tr a.action.action-download.disabled {
  643. color: #000000;
  644. }
  645. .files-fileList tr:hover a.action.disabled:hover * {
  646. cursor: default;
  647. }
  648. .summary {
  649. color: var(--color-text-maxcontrast);
  650. /* add whitespace to bottom of files list to correctly show dropdowns */
  651. $action-menu-items-count: 7; // list view has currently max 7 items in its action menu
  652. height: 44px * ($action-menu-items-count + 0.5); // 0.5 is added to show some whitespace below
  653. }
  654. .files-filestable .summary .filesummary {
  655. width: 100%;
  656. /* Width of checkbox and file preview */
  657. padding-left: 101px;
  658. }
  659. /* Less whitespace needed on link share page
  660. * as there is a footer and action menus have fewer entries.
  661. */
  662. #body-public .summary {
  663. height: 180px;
  664. }
  665. .summary:hover,
  666. .summary:focus,
  667. .summary,
  668. table tr.summary td {
  669. background-color: transparent;
  670. }
  671. .summary td {
  672. border-bottom: none;
  673. vertical-align: top;
  674. padding-top: 20px;
  675. }
  676. .summary td:first-child {
  677. padding: 0;
  678. }
  679. .hiddeninfo {
  680. white-space: pre-line;
  681. }
  682. table.dragshadow {
  683. width:auto;
  684. z-index: 2000;
  685. }
  686. table.dragshadow td.filename {
  687. padding-left:60px;
  688. padding-right:16px;
  689. height: 36px;
  690. /* Override "max-width: 0" to prevent file name and size from overlapping */
  691. max-width: unset;
  692. }
  693. table.dragshadow td.size {
  694. padding-right:8px;
  695. }
  696. .mask {
  697. z-index: 50;
  698. position: absolute;
  699. top: 0;
  700. left: 0;
  701. right: 0;
  702. bottom: 0;
  703. background-color: var(--color-main-background);
  704. background-repeat: no-repeat no-repeat;
  705. background-position: 50%;
  706. opacity: 0.7;
  707. transition: opacity 100ms;
  708. -moz-transition: opacity 100ms;
  709. -o-transition: opacity 100ms;
  710. -ms-transition: opacity 100ms;
  711. -webkit-transition: opacity 100ms;
  712. }
  713. .mask.transparent{
  714. opacity: 0;
  715. }
  716. .newFileMenu {
  717. font-weight: 300;
  718. top: 100%;
  719. left: -48px !important;
  720. margin-top: 4px;
  721. min-width: 100px;
  722. z-index: 1001;
  723. /* Center triangle */
  724. &::after {
  725. left: 84px !important;
  726. }
  727. }
  728. .files-controls {
  729. box-sizing: border-box;
  730. position: -webkit-sticky;
  731. position: sticky;
  732. height: 50px; /* height of the nav toggle button; */
  733. padding: 0;
  734. margin: 0;
  735. background-color: var(--color-main-background-translucent);
  736. z-index: 62; /* must be above the filelist sticky header and texteditor menubar */
  737. -webkit-user-select: none;
  738. -moz-user-select: none;
  739. -ms-user-select: none;
  740. user-select: none;
  741. display: flex;
  742. top: 0;
  743. padding-left: 50px; /* width of the nav toggle button; */
  744. .actions {
  745. > div,
  746. & {
  747. > .button, button {
  748. box-sizing: border-box;
  749. display: inline-block;
  750. display: flex;
  751. height: 44px;
  752. width: 44px;
  753. padding: 9px; // width - border - icon width = 18px
  754. align-items: center;
  755. justify-content: center;
  756. }
  757. .button.hidden {
  758. display: none;
  759. }
  760. }
  761. }
  762. }
  763. /* position controls for apps with app-navigation */
  764. .viewer-mode #app-navigation + #app-content .files-controls {
  765. left: 0;
  766. }
  767. .files-filestable .filename .action .icon,
  768. .files-filestable .selectedActions a .icon,
  769. .files-filestable .filename .favorite-mark .icon,
  770. .files-controls .actions .button .icon {
  771. display: inline-block;
  772. vertical-align: middle;
  773. background-size: 16px 16px;
  774. }
  775. .files-filestable .filename .favorite-mark {
  776. // Override default icons to always hide the star icon and always show the
  777. // starred icon even when hovered or focused.
  778. & .icon-star {
  779. background-image: none;
  780. }
  781. & .icon-starred {
  782. background-image: var(--icon-starred-yellow) !important;
  783. }
  784. }
  785. .files-filestable .filename .action .icon.hidden,
  786. .files-filestable .selectedActions a .icon.hidden,
  787. .files-controls .actions .button .icon.hidden {
  788. display: none;
  789. }
  790. .files-filestable .filename .action .icon.loading,
  791. .files-filestable .selectedActions a .icon.loading,
  792. .files-controls .actions .button .icon.loading {
  793. width: 15px;
  794. height: 15px;
  795. }
  796. .app-files .actions .button.new {
  797. position: relative;
  798. width: unset;
  799. gap: 14px;
  800. background-color: var(--color-primary-element-light);
  801. color: var(--color-primary-element-light-text);
  802. border: unset;
  803. padding: 0px 20px;
  804. }
  805. .breadcrumb {
  806. align-items: center;
  807. .icon-home {
  808. border-radius: var(--border-radius);
  809. }
  810. }
  811. .breadcrumb .canDrop > a,
  812. .files-filestable tbody tr.canDrop {
  813. background-color: rgba( variables.$color-primary, .3 );
  814. }
  815. .dropzone-background {
  816. background-color: rgba( variables.$color-primary, .3 );
  817. :hover{
  818. box-shadow: none !important;
  819. }
  820. }
  821. .notCreatable {
  822. margin-left: 12px;
  823. margin-right: 44px;
  824. margin-top: 12px;
  825. color: var(--color-main-text);
  826. overflow: auto;
  827. min-width: 160px;
  828. height: 54px;
  829. &:not(.hidden) {
  830. display: flex;
  831. }
  832. .icon-alert-outline {
  833. top: -15px;
  834. position: relative;
  835. margin-right: 4px;
  836. }
  837. }
  838. .quota-navigation-item {
  839. margin: 0 !important;
  840. border: none;
  841. border-radius: 0;
  842. background-color: transparent;
  843. z-index:1;
  844. height: 44px;
  845. display: flex !important;
  846. flex-direction: column;
  847. &__text {
  848. height: 30px;
  849. }
  850. &[href='#'] {
  851. // if no link is set, no mouse feedback
  852. &, * {
  853. cursor: default !important;
  854. }
  855. }
  856. &__container {
  857. height: 5px;
  858. border-radius: var(--border-radius);
  859. }
  860. }
  861. /* GRID */
  862. .files-filestable.view-grid:not(.hidden) {
  863. $grid-size: 160px;
  864. $grid-pad: 14px;
  865. /* HEADER and MULTISELECT */
  866. thead {
  867. tr {
  868. display: block;
  869. border-bottom: 1px solid var(--color-border);
  870. background-color: var(--color-main-background-translucent);
  871. th {
  872. width: auto;
  873. border: none;
  874. }
  875. }
  876. }
  877. /* MAIN FILE LIST */
  878. tbody {
  879. display: grid;
  880. grid-template-columns: repeat(auto-fill, $grid-size);
  881. justify-content: space-around;
  882. row-gap: 15px;
  883. margin: 15px 0;
  884. // ensure search still filters tr with .hidden
  885. tr:not(.hidden) {
  886. display: block;
  887. position: relative;
  888. height: $grid-size + 44px - $grid-pad;
  889. border-radius: var(--border-radius);
  890. &:hover, &:focus, &:active,
  891. &.selected,
  892. &.searchresult,
  893. .name:focus,
  894. &.highlighted {
  895. background-color: transparent;
  896. .thumbnail-wrapper,
  897. .nametext,
  898. .fileactions {
  899. background-color: var(--color-background-hover);
  900. }
  901. }
  902. }
  903. td {
  904. display: inline;
  905. border-bottom: none;
  906. &.filename {
  907. .thumbnail-wrapper {
  908. min-width: 0;
  909. max-width: none;
  910. position: absolute;
  911. width: $grid-size;
  912. height: $grid-size;
  913. padding: $grid-pad; // same as action icon bottom and right padding
  914. top: 0;
  915. left: 0;
  916. z-index: -1; // make sure the default click is the link
  917. .thumbnail {
  918. width: calc(100% - 2 * #{$grid-pad});
  919. height: calc(100% - 2 * #{$grid-pad}); //action icon padding
  920. background-size: contain;
  921. margin: 0;
  922. border-radius: var(--border-radius);
  923. background-repeat: no-repeat;
  924. background-position: center;
  925. /* Position favorite star related to checkbox to left and 3-dot menu below
  926. * Position is inherited from the selection while in grid view
  927. */
  928. .favorite-mark {
  929. left: auto;
  930. top: -11px; // center in corner of thumbnail
  931. right: -11px; // center in corner of thumbnail
  932. }
  933. }
  934. }
  935. .uploadtext {
  936. width: 100%;
  937. margin: 0;
  938. top: 0;
  939. bottom: auto;
  940. // checkbox align
  941. height: 28px;
  942. padding-top: 4px;
  943. // checkbox margins
  944. padding-left: calc(44px - 16px);
  945. }
  946. .name {
  947. height: 100%;
  948. border-radius: var(--border-radius);
  949. // since we're using thumbnail, name and actions bg
  950. // we need to hide the overflow for the radius to show
  951. // luckily the popovermenu is outside .name
  952. overflow: hidden;
  953. // we but the thumbnail in background to ensure
  954. // the name is the default click handler
  955. // force back the cursor which has been overridden
  956. // and disabled for some reason...
  957. cursor: pointer !important;
  958. .nametext {
  959. display: flex;
  960. height: 44px;
  961. margin-top: $grid-size - $grid-pad;
  962. text-align: center;
  963. line-height: 44px;
  964. padding: 0;
  965. .innernametext {
  966. display: inline-block;
  967. text-align: center;
  968. overflow: hidden;
  969. text-overflow: ellipsis;
  970. white-space: nowrap;
  971. }
  972. &:before {
  973. content: '';
  974. flex: 1;
  975. min-width: 14px;
  976. }
  977. &:after {
  978. content: '';
  979. flex: 1;
  980. min-width: 44px;
  981. }
  982. /* No space for extension in grid view */
  983. .extension {
  984. display: none;
  985. }
  986. }
  987. /* System tags */
  988. .system-tags {
  989. display: none;
  990. }
  991. .fileactions {
  992. height: initial;
  993. margin-top: $grid-size - $grid-pad;
  994. display: flex;
  995. align-items: center;
  996. position: absolute;
  997. right: 0;
  998. .action {
  999. padding: $grid-pad;
  1000. width: 44px;
  1001. height: 44px;
  1002. display: flex;
  1003. align-items: center;
  1004. justify-content: center;
  1005. // hide all actions in grid view that are not the menu
  1006. &:not(.action-menu) {
  1007. display: none;
  1008. }
  1009. }
  1010. }
  1011. }
  1012. .fileActionsMenu {
  1013. // force show the sharing entry in the dropdown menu
  1014. .action-share-container.hidden {
  1015. display: block !important;
  1016. // avatar in shared by user dropdown menu
  1017. .action-share img {
  1018. padding: 6px;
  1019. border-radius: 50%;
  1020. }
  1021. }
  1022. // force show the sharing entry in the dropdown menu
  1023. .action-restore-container.hidden {
  1024. display: block !important;
  1025. }
  1026. // force show the sharing entry in the dropdown menu
  1027. .action-comment-container.hidden {
  1028. display: block !important;
  1029. }
  1030. }
  1031. form {
  1032. padding: 3px 14px;
  1033. border-radius: var(--border-radius);
  1034. input.filename {
  1035. width: 100%;
  1036. margin-left: 0;
  1037. cursor: text;
  1038. }
  1039. }
  1040. }
  1041. /* No space for filesize and date in grid view */
  1042. &.filesize,
  1043. &.date {
  1044. display: none;
  1045. }
  1046. &.selection,
  1047. &.filename .favorite-mark {
  1048. position: absolute;
  1049. top: -8px; // half the checkbox width, center on corner of thumbnail
  1050. left: -8px; // half the checkbox width, center on corner of thumbnail
  1051. display: flex;
  1052. z-index: 10;
  1053. label {
  1054. width: 44px;
  1055. height: 44px;
  1056. display: inline-flex;
  1057. padding: $grid-pad; // like any action icon
  1058. &::before {
  1059. margin: 0;
  1060. width: $grid-pad; // 16px - border
  1061. height: $grid-pad; // 16px - border
  1062. }
  1063. }
  1064. }
  1065. /* Position actions menu below file */
  1066. .popovermenu {
  1067. left: 0;
  1068. width: $grid-size - 10px; // 2 * margin
  1069. margin: 0 5px;
  1070. /* Ellipsize long entries, normally menu width is adjusted but for grid we use fixed width. */
  1071. .menuitem span:not(.icon) {
  1072. overflow: hidden;
  1073. text-overflow: ellipsis;
  1074. }
  1075. }
  1076. }
  1077. }
  1078. tr.hidden-file td.filename .name .nametext .extension {
  1079. display: block;
  1080. }
  1081. /* Center align the footer file number & size summary */
  1082. tfoot {
  1083. display: grid;
  1084. .summary:not(.hidden) {
  1085. display: inline-block;
  1086. margin: 0 auto;
  1087. $action-menu-items-count: 9; // grid view has currently max 9 items in its action menu
  1088. height: 44px * ($action-menu-items-count + 0.5); // 0.5 is added to show some whitespace below
  1089. td {
  1090. padding-top: 50px;
  1091. &:first-child,
  1092. &.date {
  1093. display: none;
  1094. }
  1095. .info {
  1096. margin-left: 0;
  1097. }
  1098. }
  1099. }
  1100. }
  1101. }
  1102. /* Grid view toggle */
  1103. #view-toggle {
  1104. background-color: var(--color-main-background-translucent);
  1105. border: none;
  1106. margin: 0;
  1107. padding: 22px;
  1108. opacity: .5;
  1109. float: right;
  1110. right: var(--default-grid-baseline);
  1111. top: var(--default-grid-baseline);
  1112. z-index: 100;
  1113. position: sticky;
  1114. &:hover,
  1115. &:focus,
  1116. #showgridview:focus + & {
  1117. opacity: 1;
  1118. }
  1119. &:focus-visible,
  1120. #showgridview:focus-visible + & {
  1121. box-shadow: inset 0 0 0 2px var(--color-primary-element) !important;
  1122. }
  1123. }
  1124. /**
  1125. * Make sure the hidden input is always
  1126. * on the visible scrolled area of the
  1127. * page to avoid scrolling to top when focusing
  1128. */
  1129. #showgridview {
  1130. position: fixed;
  1131. top: 0;
  1132. }
  1133. /* Adjustments for link share page */
  1134. #body-public {
  1135. .files-filestable.view-grid:not(.hidden) tbody td {
  1136. /* More space for filename since there is no share icon */
  1137. &.filename .name .nametext .innernametext {
  1138. max-width: 124px;
  1139. }
  1140. /* Position actions menu correctly below 3-dot-menu */
  1141. .popovermenu {
  1142. left: -80px;
  1143. }
  1144. }
  1145. /* Right-align view toggle on link share page */
  1146. #view-toggle {
  1147. position: absolute;
  1148. right: 0;
  1149. top: 0;
  1150. }
  1151. }
  1152. /* Hide legacy Gallery toggle */
  1153. #gallery-button {
  1154. display: none;
  1155. }
  1156. #tag_multiple_files_container {
  1157. overflow: hidden;
  1158. background-color: #fff;
  1159. border-radius: 3px;
  1160. position: relative;
  1161. display: flex;
  1162. flex-wrap: wrap;
  1163. margin-bottom: 10px;
  1164. h3 {
  1165. width: 100%;
  1166. padding: 0 18px;
  1167. }
  1168. .systemTagsInputFieldContainer {
  1169. flex: 1 1 80%;
  1170. min-width: 0;
  1171. margin: 0 12px;
  1172. }
  1173. }