mobile.css 2.9 KB

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