1
0

mobile.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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: 149;
  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: 149;
  76. background-color: var(--color-main-background-darker);
  77. cursor: pointer;
  78. opacity: 0.6;
  79. }
  80. #app-navigation-toggle:hover,
  81. #app-navigation-toggle:focus {
  82. opacity: 1;
  83. }
  84. /* position controls for apps with app-navigation */
  85. #app-navigation + #app-content #controls {
  86. padding-left: 44px;
  87. }
  88. /* .viewer-mode is when text editor, PDF viewer, etc is open */
  89. #body-user .app-files.viewer-mode #controls {
  90. padding-left: 0 !important;
  91. }
  92. .app-files.viewer-mode #app-navigation-toggle {
  93. display: none !important;
  94. }
  95. table.multiselect thead {
  96. left: 0 !important;
  97. }
  98. /* prevent overflow in user management controls bar */
  99. #usersearchform {
  100. display: none;
  101. }
  102. #body-settings #controls {
  103. min-width: $breakpoint-mobile !important;
  104. }
  105. /* do not show dates in filepicker */
  106. #oc-dialog-filepicker-content .filelist .filesize,
  107. #oc-dialog-filepicker-content .filelist .date {
  108. display: none;
  109. }
  110. #oc-dialog-filepicker-content .filelist .filename {
  111. max-width: 100%;
  112. }
  113. .snapjs-left table.multiselect thead {
  114. top: 44px;
  115. }
  116. /* end of media query */
  117. }
  118. @media only screen and (max-width: 480px) {
  119. #header .header-right > div > .menu {
  120. max-width: calc(100vw - 10px);
  121. position: fixed;
  122. &::after {
  123. display: none !important;
  124. }
  125. }
  126. /* Arrow directly child of menutoggle */
  127. #header .header-right > div {
  128. &.openedMenu {
  129. &::after {
  130. display: block;
  131. }
  132. }
  133. &::after {
  134. border: 10px solid transparent;
  135. border-bottom-color: var(--color-main-background);
  136. bottom: 0;
  137. content: ' ';
  138. height: 0;
  139. width: 0;
  140. position: absolute;
  141. pointer-events: none;
  142. right: 15px;
  143. z-index: 2001;
  144. display: none;
  145. }
  146. /* settings need a different offset, since they have a right padding */
  147. &#settings::after {
  148. right: 27px;
  149. }
  150. }
  151. #notification-container {
  152. max-width: 100%;
  153. width: 100%;
  154. }
  155. }