files.scss 28 KB

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