MediaWiki:Common.css: Difference between revisions
Appearance
fixed, had it below media |
move table css |
||
| Line 30: | Line 30: | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
padding: 0.5em; | padding: 0.5em; | ||
width: | width: 24em; | ||
} | } | ||
| Line 36: | Line 36: | ||
font-size: 2em; | font-size: 2em; | ||
text-align: center; | text-align: center; | ||
border-bottom: | border-bottom: 0.2em solid #ccc; | ||
padding-bottom: .25em; | padding-bottom: .25em; | ||
} | } | ||
| Line 45: | Line 45: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
} | |||
.infobox-table{ | |||
width:100%; | |||
table-layout:fixed; | |||
} | |||
.infobox-table td{ | |||
word-wrap:break-word; | |||
text-align: left; | |||
} | |||
.infobox-table th{ | |||
text-align: left; | |||
} | |||
.infobox-table-caption{ | |||
border-bottom: 0.1em solid #ccc; | |||
font-size:125%; | |||
} | } | ||
Revision as of 11:04, 20 January 2025
/* CSS placed here will be applied to all skins */
/************************************************/
/** Templates **/
/* Notices - Coloured boxes */
.cat-mw-box{
border: 1px solid #aaa;
border-radius: 0.2rem;
margin-bottom:2rem
}
.cat-mw-box-header{
font-size:1rem;
background:rgba(0,0,0,0.03);
padding:0.2rem 1rem;
}
.cat-mw-box-body{
padding:0.2rem 1rem;
}
/* Infobox */
.infobox {
background: #eee;
border: 1px solid #aaa;
float: right;
margin: 0 0 1em 1em;
padding: 0.5em;
width: 24em;
}
.infobox-title {
font-size: 2em;
text-align: center;
border-bottom: 0.2em solid #ccc;
padding-bottom: .25em;
}
.infobox-image{
display: flex;
aspect-ratio: 2 / 1;
align-items: center;
justify-content: center;
}
.infobox-table{
width:100%;
table-layout:fixed;
}
.infobox-table td{
word-wrap:break-word;
text-align: left;
}
.infobox-table th{
text-align: left;
}
.infobox-table-caption{
border-bottom: 0.1em solid #ccc;
font-size:125%;
}
/* Loosely based on https://en.wikipedia.org/wiki/Template:Infobox */
@media (min-width: 640px) {
.infobox {
float: right;
clear: right;
}
}
@media (max-width: 640px) {
.infobox {
width: 100%;
}
}