The District of Joban Difference between revisions of "MediaWiki:Common.css"

Difference between revisions of "MediaWiki:Common.css"

MediaWiki interface page
(Add InfoBox CSS)
 
m
Line 4: Line 4:
     float: right;
     float: right;
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
    border-radius: 5px;
     padding: 1em;
     padding: 1em;
     width: 400px;
     width: 400px;
Line 21: Line 22:
.infobox td {
.infobox td {
     vertical-align: top;
     vertical-align: top;
}
@media (prefers-color-scheme: dark) {
  .infobox {
    background: hsl(212,15%,17%);
    border: 1px solid #aaa;
  }
}
}

Revision as of 23:24, 8 April 2022

.infobox {
    background: #eee;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 1em 1em;
    border-radius: 5px;
    padding: 1em;
    width: 400px;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox th {
    text-align: right;
    vertical-align: top;
    width: 120px;
}
.infobox td {
    vertical-align: top;
}

@media (prefers-color-scheme: dark) {
  .infobox {
    background: hsl(212,15%,17%);
    border: 1px solid #aaa;
  }
}