mobile.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @charset "UTF-8";
  2. /**
  3. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)
  4. *
  5. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  6. *
  7. * @license GNU AGPL version 3 or any later version
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License as
  11. * published by the Free Software Foundation, either version 3 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. @media only screen and (max-width: 1024px) {
  24. /* position share dropdown */
  25. #dropdown {
  26. margin-right: 10% !important;
  27. width: 80% !important;
  28. }
  29. /* fix name autocomplete not showing on mobile */
  30. .ui-autocomplete {
  31. z-index: 1000 !important;
  32. }
  33. /* fix error display on smaller screens */
  34. .error-wide {
  35. width: 100%;
  36. margin-left: 0 !important;
  37. box-sizing: border-box;
  38. }
  39. /* APP SIDEBAR TOGGLE and SWIPE ----------------------------------------------*/
  40. #app-navigation:not(.vue) {
  41. transform: translateX(-300px);
  42. position: fixed;
  43. height: var(--body-height);
  44. }
  45. .snapjs-left #app-navigation {
  46. transform: translateX(0);
  47. }
  48. #app-navigation:not(.hidden) + #app-content {
  49. margin-left: 0;
  50. }
  51. .skip-navigation.skip-content {
  52. left: 3px;
  53. margin-left: 0;
  54. }
  55. /* full width for message list on mobile */
  56. .app-content-list {
  57. background: var(--color-main-background);
  58. flex: 1 1 100%;
  59. max-height: unset;
  60. max-width: 100%;
  61. }
  62. .app-content-list + .app-content-details {
  63. display: none;
  64. }
  65. .app-content-list.showdetails {
  66. display: none;
  67. }
  68. .app-content-list.showdetails + .app-content-details {
  69. display: initial;
  70. }
  71. /* Show app details page */
  72. #app-content.showdetails #app-navigation-toggle {
  73. transform: translateX(-44px);
  74. }
  75. #app-content.showdetails #app-navigation-toggle-back {
  76. position: fixed;
  77. display: inline-block !important;
  78. top: 50px;
  79. left: 0;
  80. width: 44px;
  81. height: 44px;
  82. z-index: 1050;
  83. background-color: rgba(255, 255, 255, 0.7);
  84. cursor: pointer;
  85. opacity: 0.6;
  86. transform: rotate(90deg);
  87. }
  88. #app-content.showdetails .app-content-list {
  89. transform: translateX(-100%);
  90. }
  91. #app-navigation-toggle {
  92. position: fixed;
  93. display: inline-block !important;
  94. left: 0;
  95. width: 44px;
  96. height: 44px;
  97. z-index: 1050;
  98. cursor: pointer;
  99. opacity: 0.6;
  100. }
  101. #app-navigation-toggle:hover,
  102. #app-navigation-toggle:focus {
  103. opacity: 1;
  104. }
  105. /* position controls for apps with app-navigation */
  106. #app-navigation + #app-content .files-controls {
  107. padding-left: 44px;
  108. }
  109. /* .viewer-mode is when text editor, PDF viewer, etc is open */
  110. #body-user .app-files.viewer-mode .files-controls {
  111. padding-left: 0 !important;
  112. }
  113. .app-files.viewer-mode #app-navigation-toggle {
  114. display: none !important;
  115. }
  116. table.multiselect thead {
  117. left: 0 !important;
  118. }
  119. /* prevent overflow in user management controls bar */
  120. #usersearchform {
  121. display: none;
  122. }
  123. #body-settings .files-controls {
  124. min-width: 1024px !important;
  125. }
  126. /* do not show dates in filepicker */
  127. #oc-dialog-filepicker-content .filelist .column-size,
  128. #oc-dialog-filepicker-content .filelist .column-mtime,
  129. #oc-dialog-filepicker-content .filelist .filesize,
  130. #oc-dialog-filepicker-content .filelist .date {
  131. display: none;
  132. }
  133. #oc-dialog-filepicker-content .filelist .filename {
  134. max-width: 100%;
  135. }
  136. .snapjs-left table.multiselect thead {
  137. top: 44px;
  138. }
  139. /* end of media query */
  140. }
  141. @media only screen and (max-width: 480px) {
  142. #header .header-right > div > .menu {
  143. max-width: calc(100vw - 10px);
  144. position: fixed;
  145. }
  146. #header .header-right > div > .menu::after {
  147. display: none !important;
  148. }
  149. /* Arrow directly child of menutoggle */
  150. #header .header-right > div {
  151. /* settings need a different offset, since they have a right padding */
  152. }
  153. #header .header-right > div.openedMenu::after {
  154. display: block;
  155. }
  156. #header .header-right > div::after {
  157. border: 10px solid transparent;
  158. border-bottom-color: var(--color-main-background);
  159. bottom: 0;
  160. content: " ";
  161. height: 0;
  162. width: 0;
  163. position: absolute;
  164. pointer-events: none;
  165. right: 15px;
  166. z-index: 2001;
  167. display: none;
  168. }
  169. #header .header-right > div#settings::after {
  170. right: 27px;
  171. }
  172. }
  173. /*# sourceMappingURL=mobile.css.map */