mobile.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*!
  2. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-FileCopyrightText: 2014 ownCloud, Inc.
  4. * SPDX-License-Identifier: AGPL-3.0-only
  5. */
  6. @use 'variables';
  7. @media only screen and (max-width: variables.$breakpoint-mobile) {
  8. /* make header scroll up for single shares, more view of content on small screens */
  9. #header.share-file {
  10. position: absolute !important;
  11. }
  12. /* hide size and date columns */
  13. table th.column-size,
  14. table td.filesize,
  15. table th.column-mtime,
  16. table td.date {
  17. display: none;
  18. }
  19. /* restrict length of displayed filename to prevent overflow */
  20. table td.filename .nametext {
  21. max-width: 75% !important;
  22. }
  23. /* on mobile, show single shared image at full width without margin */
  24. #imgframe {
  25. width: 100%;
  26. padding: 0;
  27. }
  28. /* some margin for the file type icon */
  29. #imgframe .publicpreview {
  30. margin-top: 32px;
  31. }
  32. /* some padding for better clickability */
  33. .files-fileList a.action img {
  34. padding-block: 0;
  35. padding-inline: 12px 6px;
  36. }
  37. /* hide text of the actions on mobile */
  38. .files-fileList a.action:not(.menuitem) span {
  39. display: none;
  40. }
  41. /* ellipsis on file names */
  42. .nametext {
  43. width: 60%;
  44. white-space: nowrap;
  45. overflow: hidden;
  46. text-overflow: ellipsis;
  47. }
  48. #header .menutoggle {
  49. padding-inline-end: 14px;
  50. background-position: center;
  51. }
  52. .note {
  53. padding: 0 20px;
  54. }
  55. .emptycontent {
  56. margin-top: 10vh;
  57. }
  58. }