mobile.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. @use 'variables';
  2. @media only screen and (max-width: variables.$breakpoint-mobile) {
  3. /* position share dropdown */
  4. #dropdown {
  5. margin-right: 10% !important;
  6. width: 80% !important;
  7. }
  8. /* fix name autocomplete not showing on mobile */
  9. .ui-autocomplete {
  10. z-index: 1000 !important;
  11. }
  12. /* fix error display on smaller screens */
  13. .error-wide {
  14. width: 100%;
  15. margin-left: 0 !important;
  16. box-sizing: border-box;
  17. }
  18. /* APP SIDEBAR TOGGLE and SWIPE ----------------------------------------------*/
  19. #app-navigation:not(.vue) {
  20. transform: translateX(-#{variables.$navigation-width});
  21. position: fixed;
  22. height: var(--body-height);
  23. }
  24. .snapjs-left {
  25. #app-navigation {
  26. transform: translateX(0);
  27. }
  28. }
  29. #app-navigation:not(.hidden) + #app-content {
  30. margin-left: 0;
  31. }
  32. .skip-navigation.skip-content {
  33. left: 3px;
  34. margin-left: 0;
  35. }
  36. /* full width for message list on mobile */
  37. .app-content-list {
  38. background: var(--color-main-background);
  39. flex: 1 1 100%;
  40. // make full height scroll since app-content-details is hidden
  41. max-height: unset;
  42. // ignore 300px default max width
  43. max-width: 100%;
  44. + .app-content-details {
  45. display: none;
  46. }
  47. &.showdetails {
  48. display: none;
  49. + .app-content-details {
  50. display: initial;
  51. }
  52. }
  53. }
  54. /* Show app details page */
  55. #app-content.showdetails {
  56. #app-navigation-toggle {
  57. transform: translateX(-44px);
  58. }
  59. #app-navigation-toggle-back {
  60. position: fixed;
  61. display: inline-block !important;
  62. top: variables.$header-height;
  63. left: 0;
  64. width: 44px;
  65. height: 44px;
  66. z-index: 1050; // above app-content
  67. background-color: rgba(255, 255, 255, .7);
  68. cursor: pointer;
  69. opacity: .6;
  70. transform: rotate(90deg);
  71. }
  72. .app-content-list {
  73. transform: translateX(-100%);
  74. }
  75. }
  76. #app-navigation-toggle {
  77. position: fixed;
  78. display: inline-block !important;
  79. left: 0;
  80. width: 44px;
  81. height: 44px;
  82. z-index: 1050; // above app-content
  83. cursor: pointer;
  84. opacity: 0.6;
  85. }
  86. #app-navigation-toggle:hover,
  87. #app-navigation-toggle:focus {
  88. opacity: 1;
  89. }
  90. /* position controls for apps with app-navigation */
  91. #app-navigation + #app-content .files-controls {
  92. padding-left: 44px;
  93. }
  94. /* .viewer-mode is when text editor, PDF viewer, etc is open */
  95. #body-user .app-files.viewer-mode .files-controls {
  96. padding-left: 0 !important;
  97. }
  98. .app-files.viewer-mode #app-navigation-toggle {
  99. display: none !important;
  100. }
  101. table.multiselect thead {
  102. left: 0 !important;
  103. }
  104. /* prevent overflow in user management controls bar */
  105. #usersearchform {
  106. display: none;
  107. }
  108. #body-settings .files-controls {
  109. min-width: variables.$breakpoint-mobile !important;
  110. }
  111. /* do not show dates in filepicker */
  112. #oc-dialog-filepicker-content .filelist .column-size,
  113. #oc-dialog-filepicker-content .filelist .column-mtime,
  114. #oc-dialog-filepicker-content .filelist .filesize,
  115. #oc-dialog-filepicker-content .filelist .date {
  116. display: none;
  117. }
  118. #oc-dialog-filepicker-content .filelist .filename {
  119. max-width: 100%;
  120. }
  121. .snapjs-left table.multiselect thead {
  122. top: 44px;
  123. }
  124. /* end of media query */
  125. }
  126. @media only screen and (max-width: 480px) {
  127. #header .header-right > div > .menu {
  128. max-width: calc(100vw - 10px);
  129. position: fixed;
  130. &::after {
  131. display: none !important;
  132. }
  133. }
  134. /* Arrow directly child of menutoggle */
  135. #header .header-right > div {
  136. &.openedMenu {
  137. &::after {
  138. display: block;
  139. }
  140. }
  141. &::after {
  142. border: 10px solid transparent;
  143. border-bottom-color: var(--color-main-background);
  144. bottom: 0;
  145. content: ' ';
  146. height: 0;
  147. width: 0;
  148. position: absolute;
  149. pointer-events: none;
  150. right: 15px;
  151. z-index: 2001;
  152. display: none;
  153. }
  154. /* settings need a different offset, since they have a right padding */
  155. &#settings::after {
  156. right: 27px;
  157. }
  158. }
  159. }