mobile.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. /* shorten elements for mobile */
  41. #uploadprogressbar, #uploadprogressbar .label.inner {
  42. width: 50px;
  43. }
  44. /* hide desktop-only parts */
  45. #uploadprogressbar .desktop {
  46. display: none !important;
  47. }
  48. #uploadprogressbar .mobile {
  49. display: block !important;
  50. }
  51. /* ensure that it is visible over #app-content */
  52. table.dragshadow {
  53. z-index: 1000;
  54. }
  55. }
  56. @media only screen and (max-width: 480px) {
  57. /* Only show icons */
  58. table th .selectedActions {
  59. float: right;
  60. }
  61. table th .selectedActions > a span:not(.icon) {
  62. display: none;
  63. }
  64. /* Increase touch area for the icons */
  65. table th .selectedActions a {
  66. padding: 17px 14px;
  67. }
  68. /* Remove the margin to reduce the overlap between the name and the icons */
  69. table.multiselect th .columntitle.name {
  70. margin-left: 0;
  71. }
  72. }