Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 23: | Line 23: | ||
@font-face { | @font-face { | ||
font-family: 'fedra'; | font-family: 'fedra'; | ||
| − | src: url('FedraSans-Light.ttf') format('truetype'); | + | src: url('skins/monobook/FedraSans-Light.ttf') format('truetype'); |
font-weight: normal; | font-weight: normal; | ||
font-style: normal; | font-style: normal; | ||
| Line 29: | Line 29: | ||
@font-face { | @font-face { | ||
font-family: 'fedra-bold'; | font-family: 'fedra-bold'; | ||
| − | src: url('FedraSans-Medium.ttf') format('truetype'); | + | src: url('skins/monobook/FedraSans-Medium.ttf') format('truetype'); |
font-weight: bold; | font-weight: bold; | ||
font-style: normal; | font-style: normal; | ||
| Line 35: | Line 35: | ||
@font-face { | @font-face { | ||
font-family: 'fedra-italic'; | font-family: 'fedra-italic'; | ||
| − | src: url('FedraSans-LightItalic.ttf') format('truetype'); | + | src: url('skins/monobook/FedraSans-LightItalic.ttf') format('truetype'); |
font-weight: normal; | font-weight: normal; | ||
font-style: italic; | font-style: italic; | ||
| Line 42: | Line 42: | ||
@font-face { | @font-face { | ||
font-family: 'neohellenic'; | font-family: 'neohellenic'; | ||
| − | src: url('gfsneohellenic.otf') format('otf'); | + | src: url('skins/monobook/gfsneohellenic.otf') format('otf'); |
font-weight: normal; | font-weight: normal; | ||
font-style: normal; | font-style: normal; | ||
| Line 48: | Line 48: | ||
@font-face { | @font-face { | ||
font-family: 'neohellenic-bold'; | font-family: 'neohellenic-bold'; | ||
| − | src: url('gfsneohellenicbold.otf') format('otf'); | + | src: url('skins/monobook/gfsneohellenicbold.otf') format('otf'); |
font-weight: bold; | font-weight: bold; | ||
font-style: normal; | font-style: normal; | ||
| Line 54: | Line 54: | ||
@font-face { | @font-face { | ||
font-family: 'neohellenic-italic'; | font-family: 'neohellenic-italic'; | ||
| − | src: url('gfsneohellenicit.otf') format('otf'); | + | src: url('skins/monobook/gfsneohellenicit.otf') format('otf'); |
font-weight: normal; | font-weight: normal; | ||
font-style: italic; | font-style: italic; | ||
Revision as of 02:46, 11 March 2012
/* CSS placed here will be applied to all skins */
body {
width: 85%;
text-align: center;
margin-top: 1em;
margin: auto;
position:relative;
}
div { text-align: left; }
body #ca-delete {
display: none !important;
}
/* Fonts */
body, #content, .portlet { font-family: fedra, fallback-fonts; }
b, strong, big { font-family: fedra-bold; }
i, em { font-family: fedra-italic; }
h1, h2, h3, h4, h5, h6 { font-family: neohellenic-bold, fallback-fonts; }
@font-face {
font-family: 'fedra';
src: url('skins/monobook/FedraSans-Light.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'fedra-bold';
src: url('skins/monobook/FedraSans-Medium.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'fedra-italic';
src: url('skins/monobook/FedraSans-LightItalic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'neohellenic';
src: url('skins/monobook/gfsneohellenic.otf') format('otf');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'neohellenic-bold';
src: url('skins/monobook/gfsneohellenicbold.otf') format('otf');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'neohellenic-italic';
src: url('skins/monobook/gfsneohellenicit.otf') format('otf');
font-weight: normal;
font-style: italic;
}
/* Infobox template style */
.infobox {
border: 1px solid #aaa;
background-color: #f9f9f9;
color: black;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
text-align: left;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
}
.infobox td,
.infobox th {
vertical-align: top;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
.infobox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #aaa;
border-right: 1px solid #aaa;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
border: 0;
border-right: 1px solid #aaa;
}
/* Styles for geography infoboxes, eg countries,
country subdivisions, cities, etc. */
.infobox.geography {
/* @noflip */
text-align: left;
border-collapse: collapse;
line-height: 1.2em;
font-size: 90%;
}
.infobox.geography td,
.infobox.geography th {
border-top: 1px solid #aaa;
padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
border-top: 1px solid #aaa;
padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
border-top: 0;
border-bottom: 1px solid #aaa;
padding: 0 0.6em 0.4em 0.6em;
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
border: 0;
padding: 0;
}
/* displayed formula, formula number */
div.texdisplay {
margin: 3px; padding: 3px;
background-color: transparent;
text-align:center;
}
/* change to float:left if you want formula numbers appear on the left */
div.texdisplay span.dispno {
float: right;
}