screen-common.less 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. /*
  2. ** MediaWiki 'monobook' style sheet for CSS2-capable browsers.
  3. ** Copyright Gabriel Wicke - http://wikidev.net/
  4. ** License: GPL (http://www.gnu.org/copyleft/gpl.html)
  5. **
  6. ** Loosely based on http://www.positioniseverything.net/ordered-floats.html by Big John
  7. ** and the Plone 2.0 styles, see http://plone.org/ (Alexander Limi,Joe Geldart & Tom Croucher,
  8. ** Michael Zeltner and Geir Bækholt)
  9. ** All you guys rock :)
  10. */
  11. @import 'variables.less';
  12. /*
  13. ** Common styles across desktop and mobile
  14. */
  15. div#column-content {
  16. width: 100%;
  17. margin: 0;
  18. padding: 0;
  19. }
  20. .mw-body {
  21. padding: 1em;
  22. position: relative;
  23. z-index: 2;
  24. background: @content-background;
  25. color: @text-color;
  26. border: 1px solid @content-border;
  27. line-height: 1.5em;
  28. }
  29. /* Hide, but keep accessible for screen-readers */
  30. #column-one h2 {
  31. .hidden();
  32. }
  33. /* the left column width is specified in class .portlet */
  34. /* Font size:
  35. ** We take advantage of keyword scaling- browsers won't go below 9px
  36. ** More at http://www.w3.org/2003/07/30-font-size
  37. ** http://style.cleverchimp.com/font_size_intervals/altintervals.html
  38. */
  39. body {
  40. font: x-small sans-serif;
  41. background: @background url( images/headbg.jpg ) 0 0 no-repeat;
  42. // stylelint-disable value-list-comma-newline-after
  43. /* @embed */
  44. background: linear-gradient( transparent, transparent ),
  45. url( images/headbg.svg ) 0 0 no-repeat,
  46. @background url( images/headbg-gradient.svg ) 0 0 repeat-x;
  47. // stylelint-enable value-list-comma-newline-after
  48. color: @text-color;
  49. margin: 0;
  50. padding: 0;
  51. direction: ltr; /* Needed for RTL flipping */
  52. unicode-bidi: embed;
  53. }
  54. /* scale back up to a sane default */
  55. div#globalWrapper {
  56. font-size: 127%;
  57. width: 100%;
  58. margin: 0;
  59. padding: 0;
  60. position: relative;
  61. z-index: 0;
  62. }
  63. /* general styles */
  64. a {
  65. color: @link;
  66. }
  67. a:visited {
  68. color: @link-visited;
  69. }
  70. a.new,
  71. #p-personal a.new {
  72. color: @link-new;
  73. }
  74. ul {
  75. list-style-type: square;
  76. .list-style-image( 'images/bullet.svg' );
  77. }
  78. pre,
  79. .mw-code {
  80. line-height: 1.1em;
  81. }
  82. #firstHeading {
  83. padding-top: 0;
  84. overflow: visible;
  85. }
  86. .mw-indicators {
  87. float: right;
  88. line-height: 1.5em;
  89. font-size: 95%;
  90. }
  91. .mw-indicator {
  92. display: -moz-inline-block;
  93. display: inline-block;
  94. zoom: 1;
  95. *display: inline; /* stylelint-disable-line declaration-block-no-duplicate-properties */
  96. }
  97. .mw-jump-link:not( :focus ) {
  98. .mixin-screen-reader-text;
  99. }
  100. /*
  101. ** the main content area
  102. */
  103. #siteNotice {
  104. font-size: 95%;
  105. padding: 0 0.9em;
  106. p {
  107. margin: 0;
  108. padding: 0;
  109. }
  110. }
  111. #localNotice {
  112. margin: 0;
  113. }
  114. /*
  115. ** classes for special content elements like town boxes
  116. ** intended to be referenced directly from the wiki src
  117. */
  118. /*
  119. ** User styles
  120. */
  121. /* table standards */
  122. table.rimage {
  123. float: right;
  124. position: relative;
  125. margin-left: 1em;
  126. margin-bottom: 1em;
  127. text-align: center;
  128. }
  129. /*
  130. ** Structural Elements
  131. */
  132. /*
  133. ** general portlet styles (elements in the quickbar)
  134. */
  135. .portlet {
  136. overflow: hidden;
  137. h3 {
  138. background: transparent;
  139. display: inline;
  140. height: 1em;
  141. font-size: 91%;
  142. white-space: nowrap;
  143. }
  144. ul {
  145. line-height: 1.5em;
  146. font-size: 95%;
  147. }
  148. li {
  149. padding: 0;
  150. margin: 0;
  151. }
  152. }
  153. .pBody {
  154. font-size: 95%;
  155. color: @text-color;
  156. border-collapse: collapse;
  157. /* allows .pBody styles to wrap around content added via BaseTemplateAfterPortlet hook */
  158. &:after {
  159. content: '';
  160. clear: both;
  161. display: block;
  162. }
  163. }
  164. /*
  165. ** Logo properties
  166. */
  167. #p-logo {
  168. position: absolute;
  169. z-index: 3;
  170. overflow: visible;
  171. a,
  172. a:hover {
  173. display: block;
  174. background-repeat: no-repeat;
  175. text-decoration: none;
  176. }
  177. }
  178. /*
  179. ** the personal toolbar
  180. */
  181. /* "Not logged in" text in gray */
  182. li#pt-anonuserpage {
  183. color: @text-grey;
  184. }
  185. /*
  186. ** footer
  187. */
  188. #footer {
  189. background-color: @content-background;
  190. border-top: 1px solid @orange-border;
  191. border-bottom: 1px solid @orange-border;
  192. margin: 0.6em 0 1em 0;
  193. overflow: hidden;
  194. padding: 0.4em 0 0.3em 0;
  195. text-align: center;
  196. font-size: 90%;
  197. li {
  198. display: inline;
  199. margin: 0 1.3em;
  200. }
  201. }
  202. #userloginprompt,
  203. #languagelinks {
  204. font-size: 85%;
  205. }
  206. #login-sectiontip {
  207. font-size: 85%;
  208. line-height: 1.2;
  209. padding-top: 2em;
  210. }
  211. /**
  212. * This was originally added by Gabriel Wicke in r3681 (committed on 25 May 2004)
  213. * with the commit message "tweaks to page history".
  214. * Unlike the other IE/Mac fixes that used to be present here, this seems to get
  215. * applied on more modern browsers, so let's keep it here until someone has the
  216. * time to properly test it out.
  217. */
  218. #pagehistory li.selected {
  219. position: relative;
  220. }
  221. div.patrollink {
  222. clear: both;
  223. }
  224. .sharedUploadNotice {
  225. font-style: italic;
  226. }
  227. .toggle {
  228. margin-left: 2em;
  229. text-indent: -2em;
  230. }
  231. /* @bug 1714 */
  232. input#wpSave,
  233. input#wpDiff {
  234. margin-right: 0.33em;
  235. }
  236. #wpSave {
  237. font-weight: bold;
  238. }
  239. /* noarticletext */
  240. div.noarticletext {
  241. border: 1px solid @content-border;
  242. background: @content-background;
  243. padding: 0.2em 1em;
  244. color: @text-color;
  245. }
  246. #powersearch p {
  247. margin-top: 0;
  248. }
  249. div.multipageimagenavbox {
  250. border: solid 1px @content-border;
  251. padding: 4px;
  252. margin: 1em;
  253. background: @background;
  254. div.thumb {
  255. border: 0;
  256. margin-left: 2em;
  257. margin-right: 2em;
  258. }
  259. hr {
  260. margin: 6px;
  261. }
  262. }
  263. table.multipageimage td {
  264. text-align: center;
  265. }
  266. .templatesUsed {
  267. margin-top: 1.5em;
  268. }
  269. .mw-summary-preview {
  270. margin: 0.1em 0;
  271. }
  272. /* Friendlier slave lag warnings */
  273. div.mw-lag-warn-normal,
  274. div.mw-lag-warn-high {
  275. padding: 3px;
  276. text-align: center;
  277. margin: 3px auto;
  278. }
  279. div.mw-lag-warn-normal {
  280. border: 1px solid #fc6;
  281. background-color: #ffc;
  282. }
  283. div.mw-lag-warn-high {
  284. font-weight: bold;
  285. border: 2px solid #f03;
  286. background-color: #fcc;
  287. }
  288. .MediaTransformError {
  289. background-color: @content-border;
  290. padding: 0.1em;
  291. td {
  292. text-align: center;
  293. vertical-align: middle;
  294. font-size: 90%;
  295. }
  296. }
  297. /* Tooltips are outside of the normal body code, so this helps make the size of the text sensible */
  298. .tipsy {
  299. font-size: 127%;
  300. }