You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mobile.scss 3.5KB

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