screen-desktop.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. /*
  2. ** Desktop-specific styles for MonoBook
  3. **
  4. ** Must remain simple css (not less) for IE8- support; ResourceLoader does not support
  5. ** conditional IE loading, and so we cannot depend on it for anything here as this file
  6. ** is also loaded directly, bypassing ResourceLoader, in those browsers.
  7. */
  8. div#column-content {
  9. float: right;
  10. margin: 0 0 0.6em -12.2em;
  11. }
  12. .mw-body {
  13. margin: 2.8em 0 0 12.2em;
  14. border-right: 0;
  15. }
  16. #mw-data-after-content {
  17. margin-left: 12.2em;
  18. }
  19. div#column-one {
  20. padding-top: 160px;
  21. }
  22. /*
  23. ** edit views etc
  24. */
  25. .special li {
  26. line-height: 1.4em;
  27. margin: 0;
  28. padding: 0;
  29. }
  30. /*
  31. ** Structural Elements
  32. */
  33. /*
  34. ** general portlet styles (elements in the quickbar)
  35. */
  36. .portlet {
  37. border: 0;
  38. margin: 0 0 0.5em;
  39. padding: 0;
  40. float: none;
  41. width: 11.6em;
  42. }
  43. .portlet h3 {
  44. padding: 0 1em 0 0.5em;
  45. text-transform: lowercase;
  46. font-weight: normal;
  47. }
  48. .pBody {
  49. background-color: #fff;
  50. border: 1px solid #aaa;
  51. padding: 0 0.8em 0.3em 0.5em;
  52. }
  53. /* Don't lowercase username */
  54. li#pt-userpage {
  55. text-transform: none;
  56. }
  57. /* Override text-transform on languages where capitalization is significant */
  58. .capitalize-all-nouns .portlet h3,
  59. .capitalize-all-nouns #p-personal ul,
  60. .capitalize-all-nouns #p-cactions ul li a {
  61. text-transform: none;
  62. }
  63. /* Sometimes people don't want personal tools to be lowercase! */
  64. .no-text-transform {
  65. text-transform: none;
  66. }
  67. /*
  68. ** Logo properties
  69. */
  70. #p-logo {
  71. top: 0;
  72. left: 0;
  73. height: 155px;
  74. width: 12em;
  75. }
  76. #p-logo a,
  77. #p-logo a:hover {
  78. height: 155px;
  79. width: 12.2em;
  80. background-position: 35% 50% !important; /* stylelint-disable-line declaration-no-important */
  81. }
  82. /*
  83. ** Search portlet
  84. */
  85. #p-search {
  86. position: relative;
  87. z-index: 3;
  88. }
  89. input.searchButton {
  90. margin-top: 1px;
  91. font-size: 95%;
  92. }
  93. #searchGoButton {
  94. padding-left: 0.5em;
  95. padding-right: 0.5em;
  96. font-weight: bold;
  97. }
  98. #searchInput {
  99. width: 10.9em;
  100. margin: 0;
  101. font-size: 95%;
  102. }
  103. #p-search .pBody {
  104. padding: 0.5em 0.4em 0.4em 0.4em;
  105. text-align: center;
  106. }
  107. #p-search #searchform div div {
  108. margin-top: 0.4em;
  109. font-size: 95%;
  110. }
  111. /*
  112. ** the personal toolbar
  113. */
  114. #p-personal {
  115. position: absolute;
  116. left: 0;
  117. top: 0;
  118. z-index: 3;
  119. width: 100%;
  120. white-space: nowrap;
  121. padding: 0;
  122. margin: 0;
  123. border: 0;
  124. background: none;
  125. overflow: visible;
  126. line-height: 1.2em;
  127. }
  128. #p-personal h3 {
  129. position: absolute;
  130. top: -9999px;
  131. }
  132. #p-personal .portlet,
  133. #p-personal .pBody {
  134. z-index: 0;
  135. padding: 0;
  136. margin: 0;
  137. border: 0;
  138. overflow: visible;
  139. background: none;
  140. }
  141. /* this is the ul contained in the portlet */
  142. #p-personal ul {
  143. border: 0;
  144. line-height: 1.4em;
  145. color: #2f6fab;
  146. padding: 0;
  147. padding-right: 2em;
  148. /* Avoid overlap with the logo. */
  149. padding-left: 14em;
  150. margin: 0;
  151. float: right;
  152. list-style-type: none;
  153. list-style-image: none;
  154. z-index: 0;
  155. background: none;
  156. cursor: default;
  157. text-transform: lowercase;
  158. box-sizing: border-box;
  159. max-width: 100%;
  160. }
  161. #p-personal li {
  162. z-index: 0;
  163. border: 0;
  164. padding: 0;
  165. color: #2f6fab;
  166. display: inline;
  167. margin-left: 1em;
  168. line-height: 1.2em;
  169. background: none;
  170. }
  171. #p-personal li a {
  172. color: #005896;
  173. text-decoration: none;
  174. padding-bottom: 0.2em;
  175. }
  176. #p-personal li a:hover {
  177. background-color: #fff;
  178. text-decoration: none;
  179. }
  180. #p-personal li.active a:hover {
  181. background-color: transparent;
  182. }
  183. /* The icon in front of the username / login link */
  184. li#pt-userpage,
  185. li#pt-anonuserpage {
  186. background-image: url( images/icon-user.gif );
  187. /* @embed */
  188. background-image: linear-gradient( transparent, transparent ), url( images/icon-user.svg );
  189. background-position: top left;
  190. background-repeat: no-repeat;
  191. padding-left: 20px;
  192. }
  193. #p-lang {
  194. position: relative;
  195. z-index: 3;
  196. }
  197. /*
  198. ** the page-related actions- page/talk, edit etc
  199. */
  200. #p-cactions {
  201. position: absolute;
  202. top: 1.3em;
  203. left: 11.5em;
  204. margin: 0;
  205. white-space: nowrap;
  206. width: 76%;
  207. line-height: 1.1em;
  208. overflow: visible;
  209. background: none;
  210. border-collapse: collapse;
  211. padding-left: 1em;
  212. font-size: 95%;
  213. }
  214. #p-cactions h3 {
  215. position: absolute;
  216. top: -9999px;
  217. }
  218. #p-cactions ul {
  219. list-style-type: none;
  220. list-style-image: none;
  221. }
  222. #p-cactions li {
  223. display: inline;
  224. border: 1px solid #aaa;
  225. border-bottom: 0;
  226. margin: 0 0.5em 0 0;
  227. padding: 0 0 1em 0;
  228. overflow: visible;
  229. background: #fff;
  230. }
  231. #p-cactions li.selected {
  232. border-color: #fabd23;
  233. font-weight: bold;
  234. }
  235. #p-cactions li.selected a {
  236. z-index: 3;
  237. background-color: #fff;
  238. }
  239. #p-cactions li a {
  240. background-color: #fbfbfb;
  241. color: #002bb8;
  242. border: 0;
  243. padding: 0 0.8em 0.3em;
  244. position: relative;
  245. z-index: 0;
  246. margin: 0;
  247. text-decoration: none;
  248. text-transform: lowercase;
  249. }
  250. #p-cactions li a:hover {
  251. z-index: 3;
  252. text-decoration: none;
  253. background-color: #fff;
  254. }
  255. #p-cactions li.istalk {
  256. margin-right: 0;
  257. }
  258. #p-cactions li.istalk a {
  259. padding-right: 0.5em;
  260. }
  261. #p-cactions .new a {
  262. color: #c20;
  263. }
  264. #p-cactions #ca-addsection a {
  265. padding-left: 0.4em;
  266. padding-right: 0.4em;
  267. }
  268. #p-cactions .pBody {
  269. font-size: 1em;
  270. background-color: transparent;
  271. color: inherit;
  272. border-collapse: inherit;
  273. border: 0;
  274. padding: 0;
  275. }
  276. /* offsets to distinguish the tab groups */
  277. li#ca-talk {
  278. margin-right: 1.6em;
  279. }
  280. li#ca-watch,
  281. li#ca-unwatch,
  282. li#ca-varlang-0,
  283. li#ca-print {
  284. margin-left: 1.6em;
  285. }
  286. /*
  287. ** mobile toggles; not used here
  288. */
  289. #p-personal #pt-notifications,
  290. #echo-hack-badges,
  291. #p-cactions-mobile,
  292. #sidebar-mobilejs,
  293. .mobile-close-button,
  294. .menu-toggle,
  295. .menus-cover {
  296. display: none;
  297. }
  298. /*
  299. ** footer
  300. */
  301. #f-poweredbyico,
  302. #f-copyrightico {
  303. margin: 0 8px;
  304. position: relative;
  305. top: -2px; /* Bump it up just a tad */
  306. }
  307. #f-poweredbyico {
  308. float: right;
  309. height: 1%;
  310. }
  311. #f-copyrightico {
  312. float: left;
  313. height: 1%;
  314. }