screen-mobile.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. /*
  2. ** Mobile styles for MonoBook
  3. */
  4. @import 'variables.less';
  5. div#column-content {
  6. padding-top: 6em;
  7. }
  8. .mw-body {
  9. border-right: 0;
  10. border-left: 0;
  11. }
  12. /*
  13. ** Navigation
  14. */
  15. .menu-toggle {
  16. .menu-button();
  17. }
  18. #sidebar-toggle {
  19. .background-image-svg( 'images/icon-triangle-down.svg', 'images/icon-triangle-down.gif' );
  20. position: absolute;
  21. top: @top-position;
  22. left: 1em;
  23. }
  24. #p-personal-toggle {
  25. .background-image-svg( 'images/icon-user.svg', 'images/icon-user.gif' );
  26. position: absolute;
  27. top: @top-position;
  28. right: 1em;
  29. }
  30. #globalWrapper-toggle {
  31. .background-image-svg( 'images/icon-triangle-up.svg', 'images/icon-triangle-up.gif' );
  32. margin: 1em auto;
  33. }
  34. /*
  35. ** search
  36. */
  37. #p-search {
  38. position: absolute;
  39. z-index: 3;
  40. top: @top-position;
  41. left: 0;
  42. width: 100%;
  43. padding: 0 @block-size + 20px;
  44. box-sizing: border-box;
  45. h3 {
  46. .hidden();
  47. }
  48. }
  49. #searchBody {
  50. border: solid 1px @orange-border;
  51. background-color: @content-background;
  52. height: @block-size;
  53. box-sizing: border-box;
  54. }
  55. #searchform {
  56. position: relative;
  57. width: 100%;
  58. padding: 3px 42px 3px 9px;
  59. box-sizing: border-box;
  60. }
  61. #searchInput {
  62. width: 100%;
  63. height: @block-size - 8px;
  64. border: solid 1px @content-border;
  65. padding: 0 0.25em;
  66. box-sizing: border-box;
  67. }
  68. #searchGoButton {
  69. position: absolute;
  70. box-sizing: border-box;
  71. top: 1px;
  72. right: 6px;
  73. height: @block-size - 4px;
  74. width: @block-size;
  75. text-indent: -99999px;
  76. border: 0;
  77. background: none;
  78. .background-image-svg( 'images/icon-search.svg', 'images/icon-search.gif' );
  79. background-position: 50% 50%;
  80. background-repeat: no-repeat;
  81. cursor: pointer;
  82. }
  83. #mw-searchButton {
  84. display: none;
  85. }
  86. /*
  87. ** site nav, nojs layout
  88. */
  89. .client-nojs {
  90. #p-cactions,
  91. #p-personal,
  92. #sidebar .generated-sidebar,
  93. #p-tb,
  94. #p-lang {
  95. margin: 1em;
  96. overflow: visible;
  97. .pBody {
  98. border: solid 1px @content-border;
  99. background: @content-background;
  100. padding: 0.5em;
  101. }
  102. ul {
  103. margin: 0;
  104. }
  105. li {
  106. display: inline-block;
  107. border-left: solid 1px @content-border;
  108. padding: 0 0.5em;
  109. white-space: nowrap;
  110. &:first-child {
  111. border-left: 0;
  112. padding-left: 0;
  113. }
  114. // wtf echo
  115. &#pt-notifications-alert,
  116. &#pt-notifications-notice {
  117. border-left: 0;
  118. }
  119. &.selected {
  120. font-weight: bold;
  121. a {
  122. color: @text-color;
  123. }
  124. }
  125. }
  126. h3 {
  127. font-weight: normal;
  128. }
  129. }
  130. }
  131. /*
  132. ** fake cactions
  133. */
  134. #p-cactions-mobile {
  135. position: absolute;
  136. top: 3.75em;
  137. left: 0;
  138. padding: 0 1em;
  139. width: 100%;
  140. box-sizing: border-box;
  141. h3 {
  142. display: none;
  143. }
  144. ul {
  145. margin: 0;
  146. list-style: none;
  147. }
  148. li {
  149. display: inline-block;
  150. border: 1px solid @content-border;
  151. border-bottom: 0;
  152. margin-right: 0.5em;
  153. height: 2.5em;
  154. a {
  155. .icon-tab();
  156. display: block;
  157. position: relative;
  158. padding: 0.5em 1em 0.75em;
  159. background-color: #fbfbfb;
  160. .background-image-svg( 'images/icon-page.svg', 'images/icon-page.gif' );
  161. background-position: 50% 50%;
  162. background-repeat: no-repeat;
  163. text-transform: lowercase;
  164. }
  165. &#ca-talk-mobile a {
  166. .background-image-svg( 'images/icon-chat.svg', 'images/icon-chat.gif' );
  167. }
  168. &#ca-more {
  169. border: 0;
  170. a {
  171. background-color: transparent;
  172. .background-image-svg( 'images/icon-triangle-ltr.svg', 'images/icon-triangle-ltr.gif' );
  173. background-position: 100% 40%;
  174. text-indent: 0;
  175. padding-left: 0.5em;
  176. padding-right: 1.35em;
  177. width: auto;
  178. }
  179. }
  180. &#ca-languages a {
  181. .background-image-svg( 'images/icon-globe.svg', 'images/icon-globe.gif' );
  182. }
  183. &#ca-tools a {
  184. .background-image-svg( 'images/icon-tools.svg', 'images/icon-tools.gif' );
  185. }
  186. &.selected {
  187. border-color: @orange-border;
  188. font-weight: bold;
  189. }
  190. &.selected a,
  191. &:hover a {
  192. z-index: 3;
  193. background-color: @content-background;
  194. text-decoration: none;
  195. }
  196. &#ca-languages,
  197. &#ca-tools {
  198. float: right;
  199. margin-right: 0;
  200. margin-left: 0.5em;
  201. }
  202. }
  203. }
  204. /*
  205. ** footer
  206. */
  207. #footer li {
  208. margin-left: 0;
  209. }
  210. #f-poweredbyico,
  211. #f-copyrightico {
  212. display: inline-block;
  213. margin: 0 0.5em 1em;
  214. }
  215. /*
  216. ** images
  217. */
  218. div.thumb {
  219. float: none;
  220. margin: 1em auto;
  221. }
  222. div.tright {
  223. margin-left: 0;
  224. padding-left: 0;
  225. }
  226. div.tleft {
  227. margin-right: 0;
  228. padding-right: 0;
  229. }
  230. .thumbinner {
  231. width: 100% !important; /* stylelint-disable-line declaration-no-important */
  232. box-sizing: border-box;
  233. }
  234. .mw-body-content {
  235. overflow: auto;
  236. }
  237. /* Keep images from overflowing */
  238. .mw-body-content img {
  239. height: auto !important; /* stylelint-disable-line declaration-no-important */
  240. max-width: 100% !important; /* stylelint-disable-line declaration-no-important */
  241. }
  242. /*
  243. ** table of contents
  244. */
  245. #toc,
  246. .toc,
  247. .mw-warning {
  248. width: 100%;
  249. box-sizing: border-box;
  250. }
  251. .nomobile {
  252. display: none;
  253. }