mobile.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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, show logo-icon instead of logo-wide */
  20. #header .logo-wide {
  21. background-image: url(../img/logo-icon.svg);
  22. background-repeat: no-repeat;
  23. width: 62px;
  24. height: 34px;
  25. }
  26. /* compress search box on mobile, expand when focused */
  27. .searchbox input[type="search"] {
  28. width: 0;
  29. cursor: pointer;
  30. background-color: transparent;
  31. background-image: url('../img/actions/search-white.svg');
  32. -webkit-transition: all 100ms;
  33. -moz-transition: all 100ms;
  34. -o-transition: all 100ms;
  35. transition: all 100ms;
  36. }
  37. .searchbox input[type="search"]:focus,
  38. .searchbox input[type="search"]:active {
  39. width: 155px;
  40. max-width: 50%;
  41. cursor: text;
  42. background-color: #fff;
  43. background-image: url('../img/actions/search.svg');
  44. }
  45. /* do not show display name on mobile when profile picture is present */
  46. #header .avatardiv.avatardiv-shown + #expandDisplayName {
  47. display: none;
  48. }
  49. /* position share dropdown */
  50. #dropdown {
  51. margin-right: 10% !important;
  52. width: 80% !important;
  53. }
  54. /* fix error display on smaller screens */
  55. .error-wide {
  56. width: 100%;
  57. margin-left: 0 !important;
  58. -moz-box-sizing: border-box;
  59. box-sizing: border-box;
  60. }
  61. /* APP SIDEBAR TOGGLE and SWIPE ----------------------------------------------*/
  62. #app-navigation,
  63. #app-content {
  64. position: absolute !important;
  65. top: 0;
  66. left: 0;
  67. right: 0;
  68. bottom: 0;
  69. }
  70. #app-navigation {
  71. width: 250px !important;
  72. }
  73. #app-content {
  74. width: 100% !important;
  75. left: 0 !important;
  76. background-color: #fff;
  77. overflow-x: hidden !important;
  78. }
  79. /* allow horizontal scrollbar in settings
  80. otherwise user management is not usable on mobile */
  81. #body-settings #app-content {
  82. overflow-x: auto !important;
  83. }
  84. #app-navigation-toggle {
  85. position: fixed;
  86. display: inline-block !important;
  87. top: 45px;
  88. left: 0;
  89. width: 44px;
  90. height: 44px;
  91. z-index: 149;
  92. background-color: rgba(255, 255, 255, .7);
  93. cursor: pointer;
  94. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
  95. filter: alpha(opacity=60);
  96. opacity: .6;
  97. }
  98. #app-navigation-toggle:hover,
  99. #app-navigation-toggle:focus {
  100. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  101. filter: alpha(opacity=100);
  102. opacity: 1;
  103. }
  104. /* controls bar for mobile */
  105. #controls {
  106. min-width: initial !important;
  107. left: 0 !important;
  108. padding-left: 0;
  109. }
  110. /* position controls for apps with app-navigation */
  111. #app-navigation+#app-content #controls {
  112. padding-left: 44px;
  113. }
  114. /* .viewer-mode is when text editor, PDF viewer, etc is open */
  115. #body-user .app-files.viewer-mode #controls {
  116. padding-left: 0 !important;
  117. }
  118. .app-files.viewer-mode #app-navigation-toggle {
  119. display: none !important;
  120. }
  121. table.multiselect thead {
  122. left: 0 !important;
  123. }
  124. /* prevent overflow in user management controls bar */
  125. #usersearchform {
  126. display: none;
  127. }
  128. #body-settings #controls {
  129. min-width: 768px !important;
  130. }
  131. /* do not show dates in filepicker */
  132. #oc-dialog-filepicker-content .filelist .date {
  133. display: none;
  134. }
  135. #oc-dialog-filepicker-content .filelist .filename {
  136. max-width: 80%;
  137. }
  138. /* fix controls bar jumping when navigation is slid out */
  139. .snapjs-left #app-navigation-toggle,
  140. .snapjs-left #controls {
  141. top: 0;
  142. }
  143. .snapjs-left table.multiselect thead {
  144. top: 44px;
  145. }
  146. /* end of media query */
  147. }