Jump to content

MediaWiki:Common.css: Difference between revisions

From Noumenapedia
No edit summary
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Wikipedia-style biography infobox */
a:link {
.infobox {
     color: #6495ED;
     border: 1px solid #a2a9b1;
    border-spacing: 3px;
    background-color: #f8f9fa;
    color: #202122;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    width: 22em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
}
}


.infobox caption,
a:visited {
.infobox-above {
     color: #A9A9A9;
     font-size: 125%;
    font-weight: bold;
    text-align: center;
}
}


.infobox th {
#ca-talk {
     text-align: left;
     display: none;
    vertical-align: top;
    white-space: normal;
}
}


.infobox td {
#ca-watch,
     vertical-align: top;
#ca-unwatch {
     display: none;
}
}


.infobox-above,
#ca-nstab-main {
.infobox-header {
     display: none;
     text-align: center;
    font-weight: bold;
}
}


.infobox-above {
@import url('https://cdn.jsdelivr.net/npm/typeface-tex-gyre-pagella@1.1.13/index.css');
    background-color: #b0c4de;
    padding: 0.25em;
}
 
.infobox-native_name {
    text-align: center;
    font-size: 105%;
}
 
.infobox-image {
    text-align: center;
}
 
.infobox-image img {
    max-width: 100%;
    height: auto;
}


.infobox-caption {
.mw-parser-output {
    text-align: center;
     font-family: 'TeX Gyre Pagella', 'Palatino Linotype', Palatino, serif;
     font-size: 90%;
    line-height: 1.25em;
    padding: 0.2em 0.3em;
}
}


.infobox-header {
.mw-parser-output p {
     background-color: #b0c4de;
     text-align: justify;
     padding: 0.2em;
     hyphens: auto;
}
}


.infobox th[scope="row"] {
.banner {
    background-color: transparent;
  position: relative;
    font-weight: bold;
}
}


.infobox td {
.banner h1 {
    padding: 0.15em 0.3em;
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  margin: 0;
}
}


/* Prevent long titles or links from forcing the box too wide */
/* Slightly tighter article text */
.infobox a {
.mw-body-content {
     overflow-wrap: anywhere;
     line-height: 1.45;
}
}


/* Small screens */
#catlinks, .catlinks, .category-links {
@media screen and (max-width: 720px) {
     display: none !important;
     .infobox {
        width: 100%;
        max-width: 100%;
        margin: 0.5em 0;
        float: none;
        clear: both;
        box-sizing: border-box;
    }
}
}

Latest revision as of 01:44, 16 October 2026

a:link {
    color: #6495ED;
}

a:visited {
    color: #A9A9A9;
}

#ca-talk {
    display: none;
}

#ca-watch,
#ca-unwatch {
    display: none;
}

#ca-nstab-main {
    display: none;
}

@import url('https://cdn.jsdelivr.net/npm/typeface-tex-gyre-pagella@1.1.13/index.css');

.mw-parser-output {
    font-family: 'TeX Gyre Pagella', 'Palatino Linotype', Palatino, serif;
}

.mw-parser-output p {
    text-align: justify;
    hyphens: auto;
}

.banner {
  position: relative;
}

.banner h1 {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  margin: 0;
}

/* Slightly tighter article text */
.mw-body-content {
    line-height: 1.45;
}

#catlinks, .catlinks, .category-links {
    display: none !important;
}