Difference between revisions of MediaWiki:Common.css
No edit summary |
No edit summary |
||
| (23 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* Reset italic styling set by user agent */ | /* Reset italic styling set by user agent */ | ||
cite, dfn { | |||
font-style: inherit; | /* | ||
} | |||
CUSTOM ENDMYOPIA WIKI STYLING BEGIN | |||
/* Straight quote marks for <q> */ | |||
q { | */ | ||
quotes: '"' '"' "'" "'"; | |||
} | /* Get rid of Chrome outline when selecting editing box */ | ||
input:focus, textarea:focus, select:focus{ | |||
/* Avoid collision of blockquote with floating elements by swapping margin and padding */ | outline: none; | ||
blockquote { | } | ||
overflow: hidden; | |||
margin: 1em 0; | /* Hide main page title */ | ||
padding: 0 40px; | /* if you can't make it work for both languages, just don't do it! yay | ||
} | body.page-EndMyopia_Wiki h1 { display: none; } | ||
body.page-EndMyopia_Wiki/fr h1 { display: none; } | |||
/* Prevent the 'double bold' bug in Firefox when using DirectWrite */ | */ | ||
strong.selflink { | /* | ||
font-weight: 700; | |||
} | CUSTOM ENDMYOPIA WIKI STYLING END | ||
THE FOLLOWING IS GENERIC STUFF IMPORTED FROM WIKIPEDIA (we think?) | |||
*/ | |||
/* For portals, added 2011-12-07 -bv */ | |||
/* On wide screens, show these as two columns */ | |||
/* On narrow and mobile screens, let them collapse into a single column */ | |||
.portal-column-left { | |||
float: left; | |||
width: 50%; | |||
} | |||
.portal-column-right { | |||
float: right; | |||
width: 49%; | |||
} | |||
.portal-column-left-wide { | |||
float: left; | |||
width: 60%; | |||
} | |||
.portal-column-right-narrow { | |||
float: right; | |||
width: 39%; | |||
} | |||
.portal-column-left-extra-wide { | |||
float: left; | |||
width: 70%; | |||
} | |||
.portal-column-right-extra-narrow { | |||
float: right; | |||
width: 29%; | |||
} | |||
@media only screen and (max-width: 800px) { | |||
/* Decouple the columns on narrow screens */ | |||
.portal-column-left, | |||
.portal-column-right, | |||
.portal-column-left-wide, | |||
.portal-column-right-narrow, | |||
.portal-column-left-extra-wide, | |||
.portal-column-right-extra-narrow { | |||
float: inherit; | |||
width: inherit; | |||
} | |||
} | |||
cite, dfn { | |||
font-style: inherit; | |||
} | |||
/* Straight quote marks for <q> */ | |||
q { | |||
quotes: '"' '"' "'" "'"; | |||
} | |||
/* Avoid collision of blockquote with floating elements by swapping margin and padding */ | |||
blockquote { | |||
overflow: hidden; | |||
margin: 1em 0; | |||
padding: 0 40px; | |||
} | |||
/* Prevent the 'double bold' bug in Firefox when using DirectWrite */ | |||
strong.selflink { | |||
font-weight: 700; | |||
} | |||
/* Consistent size for <small>, <sub> and <sup> */ | /* Consistent size for <small>, <sub> and <sup> */ | ||
| Line 1,437: | Line 1,501: | ||
pre { | pre { | ||
white-space: pre-wrap; | white-space: pre-wrap; | ||
} | } | ||