Template:Wikidata Infobox/sandbox/styles.css
Jump to navigation
Jump to search
#wdinfobox {
float: right; /* override .infobox style: this rule is flipped (changed to
“left”) on rtl pages, while MediaWiki:Common.css isn’t */
width: 250px;
font-size: 95%;
table-layout: fixed;
padding: 0;
}
#wdinfobox .image img {
max-width:242px;
max-height:250px;
width:auto;
}
#wdinfoboxcaption {
background-color:white;
}
/* @noflip */
#wdinfobox[dir="ltr"] #wdinfoboxcaption {
margin-left: 0;
}
/* @noflip */
#wdinfobox[dir="rtl"] #wdinfoboxcaption {
margin-right: 0;
}
#wdinfobox th, #wdinfo_taxon th {
vertical-align: top;
word-wrap: break-word;
hyphens: auto;
}
#wdinfobox td, #wdinfo_taxon td {
word-wrap: break-word;
hyphens: auto;
}
#wdinfobox li:not(:last-child) {
margin-bottom: 3px;
}
#wdinfo_taxon {
font-size: 95%;
table-layout: fixed;
padding: 0;
}
.taxontree-lcell, .wikidatainfobox-lcell {
background-color: #cfe3ff;
padding-left: 0.4em;
padding-right: 0.4em;
font-weight:bold;
min-width: 60px;
}
.taxontree-rcell, .wikidatainfobox-rcell {
word-wrap: break-word;
hyphens: auto;
}
/* @noflip */
#wdinfobox[dir="ltr"] .taxontree-lcell,
#wdinfobox[dir="ltr"] .wikidatainfobox-lcell {
text-align: right;
word-wrap: break-word;
hyphens: auto;
}
/* @noflip */
#wdinfobox[dir="rtl"] .taxontree-lcell,
#wdinfobox[dir="rtl"] .wikidatainfobox-lcell {
text-align: left;
word-wrap: break-word;
hyphens: auto;
}
.taxontree-fullcell {
text-align: center;
}
.taxontree-hdrcell {
text-align: center;
background-color: #cfe3ff;
padding-left: 0.4em;
padding-right: 0.4em;
font-weight:bold;
}
.taxontree-row {
}
@media screen and (max-width: 600px) {
.wdinfo_nomobile {
display: none;
visibility: hidden;
height: 0;
}
}
.wdinfobox_horizontal {
width: 100% !important;
clear: both !important;
display: block;
column-count: 4;
}
.wdinfobox_hide {
display: none;
}
#wdcreator {
display: none;
}
.wdcreator_show {
display: block !important;
}
#wdinfo_taxon ul {
list-style: none;
list-style-position: inside;
}
/* @noflip */
#wdinfobox[dir="ltr"] #wdinfo_taxon ul {
padding-left: 0;
margin-left: 0;
}
/* @noflip */
#wdinfobox[dir="rtl"] #wdinfo_taxon ul {
padding-right: 0;
margin-right: 0;
}
.wikidatainfoboxVN ul li {
list-style: none;
padding: 0;
margin: 0;
}
.wikidatainfoboxVN ul {
margin-left: 0;
}
.wikidatainfoboxVN {
padding: 0;
margin: 0;
}