MediaWiki:Common.css

From Doc-Wiki
Revision as of 19:03, 17 January 2026 by Docmoates (talk | contribs) (Adding YouTube playlists gallery styles)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Infobox styles */
.infobox {
    border: 2px solid #a2a9b1 !important;
    border-spacing: 3px;
    background-color: #f8f9fa;
    color: #202122;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
    width: 22em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.infobox-above,
.infobox-title,
.infobox caption {
    font-size: 125%;
    font-weight: bold;
    text-align: center !important;
    padding: 0.2em;
    background-color: #eaecf0;
}

/* Center all content inside infobox-above */
.infobox-above *,
.infobox-above div,
.infobox-above .fn,
.infobox-above .honorific-prefix,
.infobox-above .honorific-suffix {
    text-align: center !important;
}

.infobox th.infobox-above {
    text-align: center !important;
}

.infobox-header {
    font-weight: bold;
    text-align: center !important;
    background-color: #eaecf0;
    padding: 0.2em;
}

.infobox-subheader {
    text-align: center !important;
    font-style: italic;
    padding: 0.2em;
}

.infobox-image {
    text-align: center !important;
    padding: 0.4em;
}

.infobox-image img {
    max-width: 100%;
    height: auto;
}

.infobox-label {
    vertical-align: top;
    text-align: left;
    padding: 0.2em 0.4em;
    white-space: nowrap;
    font-weight: bold;
}

.infobox-data {
    vertical-align: top;
    text-align: left;
    padding: 0.2em 0.4em;
}

.infobox-full-data {
    text-align: center;
    padding: 0.2em;
}

.infobox-below {
    text-align: center;
    padding: 0.2em;
    font-size: smaller;
}

/* Horizontal lists */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}

.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}

.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}

.hlist dd:last-child:after,
.hlist li:last-child:after {
    content: none;
}

/* Plainlist */
.plainlist ol,
.plainlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nowrap */
.nowrap {
    white-space: nowrap;
}

/* Message boxes */
.messagebox {
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 0.5em;
    margin: 1em 0;
}

/* Navboxes */
.navbox {
    border: 1px solid #a2a9b1;
    background-color: #fdfdfd;
    margin: 1em 0;
    padding: 0;
}

.navbox-title {
    background-color: #ccccff;
    padding: 0.25em;
    font-weight: bold;
    text-align: center;
}

.navbox-group {
    background-color: #ddf;
    padding: 0.25em;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
}

.navbox-list {
    padding: 0.25em;
    text-align: left;
}

/* Signature styles for infobox */
.infobox-signature {
    max-width: 150px;
    height: auto;
}

/* Biography vcard */
.biography.vcard .fn {
    font-weight: bold;
}

/* Citation styles */
.citation {
    word-wrap: break-word;
}
.citation .cs1-lock-free {
    background: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg) right 0.1em center/9px no-repeat;
}
.citation .cs1-lock-limited, .citation .cs1-lock-registration {
    background: url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg) right 0.1em center/9px no-repeat;
}
.citation .cs1-lock-subscription {
    background: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg) right 0.1em center/9px no-repeat;
}
.cs1-visible-error {
    color: #d33;
}
.cs1-maint {
    display: none;
    color: #3a3;
    margin-left: 0.3em;
}
.cs1-kern-left {
    padding-left: 0.2em;
}
.cs1-kern-right {
    padding-right: 0.2em;
}
cite.citation {
    font-style: inherit;
}
.reference {
    font-size: 90%;
}/* YouTube Playlists Gallery Styling */
.playlists-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.playlist-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.playlist-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.playlist-box-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #f0f0f0;
    overflow: hidden;
}

.playlist-box-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-box-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.playlist-box-info {
    padding: 12px 16px;
}

.playlist-box-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #0f0f0f;
}

.playlist-box-link {
    display: inline-block;
    font-size: 13px;
    color: #065fd4;
    text-decoration: none;
    font-weight: 500;
}

.playlist-box-link:hover {
    text-decoration: underline;
}