mobile.scss 3.6 KB

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