MediaWiki:Common.css: Difference between revisions
Content deleted Content added
Add Infobox styling |
No edit summary |
||
| Line 5: | Line 5: | ||
/* Infobox template style */ |
/* Infobox template style */ |
||
.infobox { |
.infobox { |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
/* @noflip */ |
|||
margin: 0.5em 0 0.5em 1em; |
|||
padding: 0.2em; |
|||
/* @noflip */ |
|||
float: right; |
float: right; |
||
/* @noflip */ |
|||
clear: right; |
clear: right; |
||
margin-bottom: 0.5em; |
|||
margin-left: 1em; |
|||
padding: 0.2em; |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
.infobox |
.infobox td, |
||
.infobox |
.infobox th { |
||
| ⚫ | |||
.infobox-full-data, |
|||
.infobox-data, |
|||
.infobox-below, |
|||
.infobox-subheader, |
|||
.infobox-image, |
|||
.infobox-navbar, |
|||
/* Remove element selector when every .infobox thing is using the standard module/templates */ |
|||
.infobox th, |
|||
.infobox td { |
|||
vertical-align: top; |
vertical-align: top; |
||
} |
} |
||
.infobox-label, |
|||
.infobox-data, |
|||
/* Remove element selector when every .infobox thing is using the standard module/templates */ |
|||
.infobox th, |
|||
.infobox td { |
|||
/* @noflip */ |
|||
text-align: left; |
|||
} |
|||
/* Remove .infobox when element selectors above are removed */ |
|||
.infobox .infobox-above, |
|||
.infobox .infobox-title, |
|||
/* Remove element selector when every .infobox thing is using the standard module/templates */ |
|||
.infobox caption { |
.infobox caption { |
||
margin-left: inherit; |
|||
font- |
font-size: larger; |
||
text-align: center; |
|||
} |
} |
||
.infobox |
.infobox.bordered { |
||
border-collapse: collapse; |
|||
/* Remove element selector when every .infobox thing is using the standard module/templates */ |
|||
.infobox caption { |
|||
padding: 0.2em; |
|||
} |
} |
||
| ⚫ | |||
/* Remove .infobox when element selectors above are removed */ |
|||
.infobox |
.infobox.bordered th { |
||
border: 1px solid #AAA; |
|||
.infobox .infobox-subheader, |
|||
.infobox .infobox-image, |
|||
.infobox .infobox-full-data, |
|||
.infobox .infobox-below { |
|||
text-align: center; |
|||
} |
} |
||
.infobox.bordered .borderless td, |
|||
/* Remove .infobox when element selectors above are removed */ |
|||
.infobox . |
.infobox.bordered .borderless th { |
||
| ⚫ | |||
/* @noflip */ |
|||
text-align: right; |
|||
} |
} |
||
Revision as of 21:58, 3 February 2023
/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Zen+Kaku+Gothic+New:wght@500&display=swap');
/* Infobox template style */
.infobox {
float: right;
clear: right;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
border: 1px solid #AAA;
background: #F9F9F9;
color: black;
}
.infobox td,
.infobox th {
vertical-align: top;
}
.infobox caption {
margin-left: inherit;
font-size: larger;
}
.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;
}