MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 133: Line 133:
}
}


/* [[Template:Infobox]], [[Template:Infobox row]] */
.infobox {
.infobox {
    float: right;
position: relative;
    clear: right;
clear: right;
    margin: 0 0 1em 1em;
margin: 0 0 1em 1em;
    width: 280px;
width: 300px;
    background: #f9f9f9;
font-size: 90%;
    border: 1px solid #a2a9b1;
background: #ffffff;
    border-collapse: collapse;
float: right;
    font-size: 90%;
border: 1px solid #b8d4f1; /* soft blue border */
    line-height: 1.4em;
padding: 2px;
overflow: auto;
box-shadow: 0 1px 3px rgba(0, 50, 100, 0.1);
border-radius: 4px;
}
@media all and (max-width: 511px) {
.infobox {
float: none;
margin-left: 0;
width: auto;
}
}
@media all and (max-width: 337px) {
.infobox {
margin-left: -16px;
margin-right: -16px;
border-left: none;
border-right: none;
}
}
}


.infobox-title {
.infobox-title {
    background: #cedff2;
background: #3b82f6; /* bright medium blue */
    color: #000;
color: #ffffff;
    font-weight: bold;
padding-top: 8px;
    text-align: center;
padding-bottom: 8px;
    font-size: 110%;
border-radius: 2px 2px 0 0;
    padding: 0.3em;
}
    border-bottom: 1px solid #a2a9b1;
.infobox > .infobox-title {
font-weight: bold;
text-align: center;
font-size: 120%;
border: none;
}
.infobox th + td > ul {
list-style: none;
margin-left: unset;
}
.infobox-imagearea {
text-align: center;
padding: 4px;
}
.infobox-imagearea > div:not(:first-child) {
padding-top: 1em;
}
}


.infobox-rows {
/* horizontally center animated images */
    width: 100%;
.mw-body-content .infobox-imagearea .animated {
    border-collapse: collapse;
display: inline-flex;
align-items: center;
}
}


.infobox-rows th,
/* infobox gallery tweaks */
.infobox-rows td {
.infobox-imagearea li.gallerybox div.thumb {
    border-top: 1px solid #a2a9b1;
background: none;
    vertical-align: top;
border: none;
    padding: 0.3em;
margin: 0;
}
.infobox-imagearea ul.gallery,
.infobox-imagearea li.gallerybox,
.infobox-imagearea li.gallerybox div.thumb > div {
margin: 0 !important;
}
.infobox-imagearea li.gallerybox div.gallerytext {
font-weight: bold;
font-size: 100%;
padding: 0;
}
}


.infobox-rows th {
/* infobox tabber */
    background: #f2f2f2;
.infobox-imagearea .tabber .tabbertab,
    width: 40%;
.infobox-imagearea ul.tabbernav li a,
    text-align: left;
.infobox-imagearea ul.tabbernav li.tabberactive a {
background: none;
border: none;
}
}


.infobox-footer {
.infobox-imagearea ul.tabbernav {
    text-align: center;
font: inherit;
    font-style: italic;
font-size: 100%;
    padding: 0.4em;
}
    background: #e9ecef;
 
.infobox-imagearea ul.tabbernav li a:hover,
.infobox-imagearea ul.tabbernav li.tabberactive a:hover {
color: #0d47a1; /* deep blue hover */
}
 
.infobox-imagearea ul.tabbernav > li {
margin-bottom: 5px;
padding: 0;
}
 
.infobox-imagearea ul.tabbernav > li > a {
color: #2763c4; /* standard blue tab text */
padding-bottom: 1px;
display: block;
}
 
/* prevent tab text jump */
.infobox-imagearea ul.tabbernav > li > a::before {
display: block;
content: attr(alt);
font-weight: bold;
height: 0;
color: transparent;
overflow: hidden;
visibility: hidden;
}
 
.infobox-imagearea ul.tabbernav > li.tabberactive {
border: none;
}
 
.infobox-imagearea ul.tabbernav > li.tabberactive > a {
font-weight: bold;
border-bottom: 2px solid #3b82f6; /* blue active underline */
color: #1e40af; /* darker blue active text */
}
 
.infobox .infobox-rows {
display: table;
margin: 0 !important;
width: 100% !important;
border-collapse: separate;
border-spacing: 1px;
}
.infobox .infobox-rows {
border-collapse: collapse !important;
}
.infobox-rows tr:nth-child(2n) {
background-color: #f0f7ff; /* light blue alternating rows */
}
.infobox-rows > tbody > tr > th {
text-align: left;
white-space: nowrap;
color: #0d47a1;
}
.mw-body-content .infobox-rows p {
margin: 0;
}
 
/* merge adjacent dls */
.infobox-rows dl + dl {
margin-top: -0.4em;
}
.infobox-rows dl:last-child {
margin-bottom: 0.2em;
}
}


.infobox-imagearea {
.infobox-footer {
    text-align: center;
text-align: center;
    padding: 0.5em;
color: #0d47a1;
background: #e8f2ff;
border-top: 1px solid #b8d4f1;
padding: 4px;
font-style: italic;
}
}


.infobox-imagearea img {
/* hide debug JSON */
    max-width: 95%;
.history-json {
    height: auto;
display: none;
}
}