1
0

mobile.scss 1.9 KB

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