mobile.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. @media only screen and (max-width: 768px) {
  2. #body-login #header {
  3. padding-top: 10px;
  4. }
  5. #body-login .wrapper {
  6. display: -webkit-box;
  7. -webkit-box-orient: horizontal;
  8. -webkit-box-pack: center;
  9. -webkit-box-align: center;
  10. display: -webkit-flex;
  11. -webkit-flex-direction: row;
  12. -webkit-align-self: center;
  13. -webkit-align-items: center;
  14. display: -moz-box;
  15. -moz-box-orient: horizontal;
  16. -moz-box-pack: center;
  17. -moz-box-align: center;
  18. display: -ms-flexbox;
  19. -ms-flex-direction: row;
  20. -ms-flex-pack: center;
  21. -ms-flex-align: center;
  22. display: flex;
  23. flex-direction: row;
  24. align-self: center;
  25. align-items: center;
  26. }
  27. /* on mobile public share, show only the icon of the logo, hide the text */
  28. #body-public #header .header-appname-container {
  29. display: none;
  30. }
  31. /* do not show update notification on mobile */
  32. #update-notification {
  33. display: none !important;
  34. }
  35. /* position share dropdown */
  36. #dropdown {
  37. margin-right: 10% !important;
  38. width: 80% !important;
  39. }
  40. /* fix name autocomplete not showing on mobile */
  41. .ui-autocomplete {
  42. z-index: 1000 !important;
  43. }
  44. /* fix error display on smaller screens */
  45. .error-wide {
  46. width: 100%;
  47. margin-left: 0 !important;
  48. box-sizing: border-box;
  49. }
  50. /* APP SIDEBAR TOGGLE and SWIPE ----------------------------------------------*/
  51. #app-navigation,
  52. #app-content {
  53. position: absolute !important;
  54. top: 0;
  55. left: 0;
  56. right: 0;
  57. bottom: 0;
  58. }
  59. #app-navigation {
  60. width: 250px !important;
  61. }
  62. #app-content {
  63. width: 100% !important;
  64. left: 0 !important;
  65. background-color: #fff;
  66. overflow-x: hidden !important;
  67. z-index: 1000;
  68. }
  69. /* allow horizontal scrollbar in settings
  70. otherwise user management is not usable on mobile */
  71. #body-settings #app-content {
  72. overflow-x: auto !important;
  73. }
  74. #app-navigation-toggle {
  75. position: fixed;
  76. display: inline-block !important;
  77. top: 45px;
  78. left: 0;
  79. width: 44px;
  80. height: 44px;
  81. z-index: 149;
  82. background-color: rgba(255, 255, 255, .7);
  83. cursor: pointer;
  84. opacity: .6;
  85. }
  86. #app-navigation-toggle:hover,
  87. #app-navigation-toggle:focus {
  88. opacity: 1;
  89. }
  90. /* controls bar for mobile */
  91. #controls {
  92. min-width: initial !important;
  93. left: 0 !important;
  94. padding-left: 0;
  95. }
  96. /* position controls for apps with app-navigation */
  97. #app-navigation+#app-content #controls {
  98. padding-left: 44px;
  99. }
  100. /* .viewer-mode is when text editor, PDF viewer, etc is open */
  101. #body-user .app-files.viewer-mode #controls {
  102. padding-left: 0 !important;
  103. }
  104. .app-files.viewer-mode #app-navigation-toggle {
  105. display: none !important;
  106. }
  107. table.multiselect thead {
  108. left: 0 !important;
  109. }
  110. /* prevent overflow in user management controls bar */
  111. #usersearchform {
  112. display: none;
  113. }
  114. #body-settings #controls {
  115. min-width: 768px !important;
  116. }
  117. /* do not show dates in filepicker */
  118. #oc-dialog-filepicker-content .filelist .filesize,
  119. #oc-dialog-filepicker-content .filelist .date {
  120. display: none;
  121. }
  122. #oc-dialog-filepicker-content .filelist .filename {
  123. max-width: 80%;
  124. }
  125. /* fix controls bar jumping when navigation is slid out */
  126. .snapjs-left #app-navigation-toggle,
  127. .snapjs-left #controls {
  128. top: 0;
  129. }
  130. .snapjs-left table.multiselect thead {
  131. top: 44px;
  132. }
  133. /* end of media query */
  134. }