MediaWiki:Common.css: Difference between revisions
From Project Nakagami
No edit summary |
(Adding itemtable) |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
.item-icon { | .item-icon { | ||
| Line 15: | Line 14: | ||
width:20%; | width:20%; | ||
border: 1px solid black; | border: 1px solid black; | ||
} | |||
.itemtable, body .itemtable { | |||
color: var(--text-color-wikitable); | |||
border-color: var(--border-color-wikitable); | |||
} | |||
.itemtable>tr>th, body .itemtable>tr>th, .itemtable>tr>td, body .itemtable>tr>td, .itemtable>*>tr>th, body .itemtable>*>tr>th, .itemtable>*>tr>td, body .itemtable>*>tr>td { | |||
border-color: var(--border-color-wikitable) | |||
} | |||
@media screen { | |||
.itemtable { | |||
color: #202122; | |||
margin: 1em 0; | |||
border-collapse: collapse; | |||
} | |||
.itemtable>tr>th, .itemtable>tr>td, .itemtable>*>tr>th, .itemtable>*>tr>td { | |||
border: 1px solid #a2a9b1; | |||
padding: 0.2em 0.4em | |||
} | |||
.itemtable>tr>th, .itemtable>*>tr>th { | |||
background-color: #eaecf0; | |||
text-align: center | |||
} | |||
.itemtable>caption { | |||
font-weight: bold | |||
} | |||
} | |||
@media print { | |||
.itemtable { | |||
background: #fff; | |||
margin: 1em 0; | |||
border: 1pt solid #aaa; | |||
border-collapse: collapse; | |||
font-size: 10pt; | |||
page-break-inside: avoid | |||
} | |||
.itemtable>caption { | |||
padding: 5px; | |||
font-size: 10pt | |||
} | |||
.itemtable>tr>th, .itemtable>tr>td, .itemtable>*>tr>th, .itemtable>*>tr>td { | |||
background: #fff !important; | |||
color: #000 !important; | |||
border: 1pt solid #aaa; | |||
padding: 0.4em 0.6em | |||
} | |||
.itemtable>tr>th, .itemtable>*>tr>th { | |||
text-align: center | |||
} | |||
} | } | ||
Revision as of 18:26, 8 February 2022
/* CSS placed here will be applied to all skins */
.item-icon {
background-image: url(/images/0/06/ItemIcons.png);
background-repeat: no-repeat;
display: inline-block;
vertical-align: middle;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
table.infobox {
float:right;
width:20%;
border: 1px solid black;
}
.itemtable, body .itemtable {
color: var(--text-color-wikitable);
border-color: var(--border-color-wikitable);
}
.itemtable>tr>th, body .itemtable>tr>th, .itemtable>tr>td, body .itemtable>tr>td, .itemtable>*>tr>th, body .itemtable>*>tr>th, .itemtable>*>tr>td, body .itemtable>*>tr>td {
border-color: var(--border-color-wikitable)
}
@media screen {
.itemtable {
color: #202122;
margin: 1em 0;
border-collapse: collapse;
}
.itemtable>tr>th, .itemtable>tr>td, .itemtable>*>tr>th, .itemtable>*>tr>td {
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em
}
.itemtable>tr>th, .itemtable>*>tr>th {
background-color: #eaecf0;
text-align: center
}
.itemtable>caption {
font-weight: bold
}
}
@media print {
.itemtable {
background: #fff;
margin: 1em 0;
border: 1pt solid #aaa;
border-collapse: collapse;
font-size: 10pt;
page-break-inside: avoid
}
.itemtable>caption {
padding: 5px;
font-size: 10pt
}
.itemtable>tr>th, .itemtable>tr>td, .itemtable>*>tr>th, .itemtable>*>tr>td {
background: #fff !important;
color: #000 !important;
border: 1pt solid #aaa;
padding: 0.4em 0.6em
}
.itemtable>tr>th, .itemtable>*>tr>th {
text-align: center
}
}