1
0

mobile.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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 {
  41. transform: translateX(-300px);
  42. }
  43. .snapjs-left #app-navigation {
  44. transform: translateX(0);
  45. }
  46. #app-navigation:not(.hidden) + #app-content {
  47. margin-left: 0;
  48. }
  49. .skip-navigation.skip-content {
  50. left: 3px;
  51. margin-left: 0;
  52. }
  53. /* full width for message list on mobile */
  54. .app-content-list {
  55. background: var(--color-main-background);
  56. flex: 1 1 100%;
  57. max-height: unset;
  58. max-width: 100%;
  59. }
  60. .app-content-list + .app-content-details {
  61. display: none;
  62. }
  63. .app-content-list.showdetails {
  64. display: none;
  65. }
  66. .app-content-list.showdetails + .app-content-details {
  67. display: initial;
  68. }
  69. /* Show app details page */
  70. #app-content.showdetails #app-navigation-toggle {
  71. transform: translateX(-44px);
  72. }
  73. #app-content.showdetails #app-navigation-toggle-back {
  74. position: fixed;
  75. display: inline-block !important;
  76. top: 50px;
  77. left: 0;
  78. width: 44px;
  79. height: 44px;
  80. z-index: 1050;
  81. background-color: rgba(255, 255, 255, 0.7);
  82. cursor: pointer;
  83. opacity: 0.6;
  84. transform: rotate(90deg);
  85. }
  86. #app-content.showdetails .app-content-list {
  87. transform: translateX(-100%);
  88. }
  89. #app-navigation-toggle {
  90. position: fixed;
  91. display: inline-block !important;
  92. left: 0;
  93. width: 44px;
  94. height: 44px;
  95. z-index: 1050;
  96. cursor: pointer;
  97. opacity: 0.6;
  98. }
  99. #app-navigation-toggle:hover,
  100. #app-navigation-toggle:focus {
  101. opacity: 1;
  102. }
  103. /* position controls for apps with app-navigation */
  104. #app-navigation + #app-content .files-controls {
  105. padding-left: 44px;
  106. }
  107. /* .viewer-mode is when text editor, PDF viewer, etc is open */
  108. #body-user .app-files.viewer-mode .files-controls {
  109. padding-left: 0 !important;
  110. }
  111. .app-files.viewer-mode #app-navigation-toggle {
  112. display: none !important;
  113. }
  114. table.multiselect thead {
  115. left: 0 !important;
  116. }
  117. /* prevent overflow in user management controls bar */
  118. #usersearchform {
  119. display: none;
  120. }
  121. #body-settings .files-controls {
  122. min-width: 1024px !important;
  123. }
  124. /* do not show dates in filepicker */
  125. #oc-dialog-filepicker-content .filelist .column-size,
  126. #oc-dialog-filepicker-content .filelist .column-mtime,
  127. #oc-dialog-filepicker-content .filelist .filesize,
  128. #oc-dialog-filepicker-content .filelist .date {
  129. display: none;
  130. }
  131. #oc-dialog-filepicker-content .filelist .filename {
  132. max-width: 100%;
  133. }
  134. .snapjs-left table.multiselect thead {
  135. top: 44px;
  136. }
  137. /* end of media query */
  138. }
  139. @media only screen and (max-width: 480px) {
  140. #header .header-right > div > .menu {
  141. max-width: calc(100vw - 10px);
  142. position: fixed;
  143. }
  144. #header .header-right > div > .menu::after {
  145. display: none !important;
  146. }
  147. /* Arrow directly child of menutoggle */
  148. #header .header-right > div {
  149. /* settings need a different offset, since they have a right padding */
  150. }
  151. #header .header-right > div.openedMenu::after {
  152. display: block;
  153. }
  154. #header .header-right > div::after {
  155. border: 10px solid transparent;
  156. border-bottom-color: var(--color-main-background);
  157. bottom: 0;
  158. content: " ";
  159. height: 0;
  160. width: 0;
  161. position: absolute;
  162. pointer-events: none;
  163. right: 15px;
  164. z-index: 2001;
  165. display: none;
  166. }
  167. #header .header-right > div#settings::after {
  168. right: 27px;
  169. }
  170. }
  171. /*# sourceMappingURL=mobile.css.map */