mobile.scss 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*!
  2. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-FileCopyrightText: 2014-2016 ownCloud, Inc.
  4. * SPDX-License-Identifier: AGPL-3.0-only
  5. */
  6. @use 'variables';
  7. /* 938 = table min-width(688) + app-navigation width: 250\
  8. $breakpoint-mobile +1 = size where app-navigation is hidden +1
  9. 688 = table min-width */
  10. $min-table-width: 688px;
  11. @media only screen and (max-width: $min-table-width + variables.$navigation-width) and (min-width: variables.$breakpoint-mobile + 1), only screen and (max-width: $min-table-width) {
  12. .app-files #app-content.dir-drop{
  13. background-color: rgba(255, 255, 255, 1)!important;
  14. }
  15. table th.column-size,
  16. table td.filesize,
  17. table th.column-mtime,
  18. table td.date {
  19. display: none;
  20. }
  21. /* remove padding to let border bottom fill the whole width*/
  22. table td {
  23. padding: 0;
  24. }
  25. /* remove shift for multiselect bar to account for missing navigation */
  26. table.multiselect thead {
  27. padding-left: 0;
  28. }
  29. .fileList a.action.action-menu img {
  30. padding-left: 0;
  31. }
  32. .fileList .fileActionsMenu {
  33. margin-right: 6px;
  34. }
  35. /* hide text of the share action on mobile */
  36. /* .hidden-visually for accessbility */
  37. .fileList a.action-share span:not(.icon):not(.avatar) {
  38. position: absolute;
  39. left:-10000px;
  40. top: auto;
  41. width: 1px;
  42. height: 1px;
  43. overflow: hidden;
  44. }
  45. // Hide system tags on mobile
  46. td.filename a.name .system-tags {
  47. display: none;
  48. }
  49. /* shorten elements for mobile */
  50. #uploadprogressbar, #uploadprogressbar .label.inner {
  51. width: 50px;
  52. }
  53. /* hide desktop-only parts */
  54. #uploadprogressbar .desktop {
  55. display: none !important;
  56. }
  57. #uploadprogressbar .mobile {
  58. display: block !important;
  59. }
  60. /* ensure that it is visible over #app-content */
  61. table.dragshadow {
  62. z-index: 1000;
  63. }
  64. }
  65. @media only screen and (max-width: 480px) {
  66. /* Only show icons */
  67. table th .selectedActions {
  68. float: right;
  69. }
  70. table th .selectedActions > a span:not(.icon) {
  71. display: none;
  72. }
  73. /* Increase touch area for the icons */
  74. table th .selectedActions a {
  75. padding: 17px 14px;
  76. }
  77. /* Remove the margin to reduce the overlap between the name and the icons */
  78. table.multiselect th .columntitle.name {
  79. margin-left: 0;
  80. }
  81. }