mobile.scss 3.3 KB

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