MediaWiki:Common.css: Difference between revisions

From Doc-Wiki
Jump to navigation Jump to search
Add citation styles
Added video card gallery styles
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Infobox styles */
/* Infobox styles */
.infobox {
.infobox {
     border: 1px solid #a2a9b1;
     border: 2px solid #a2a9b1 !important;
     border-spacing: 3px;
     border-spacing: 3px;
     background-color: #f8f9fa;
     background-color: #f8f9fa;
Line 12: Line 12:
     line-height: 1.5em;
     line-height: 1.5em;
     width: 22em;
     width: 22em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
}


Line 19: Line 20:
     font-size: 125%;
     font-size: 125%;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center !important;
     padding: 0.2em;
     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 {
.infobox-header {
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center !important;
     background-color: #eaecf0;
     background-color: #eaecf0;
     padding: 0.2em;
     padding: 0.2em;
Line 31: Line 46:


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


.infobox-image {
.infobox-image {
     text-align: center;
     text-align: center !important;
     padding: 0.4em;
     padding: 0.4em;
}
}
Line 189: Line 204:
.reference {
.reference {
     font-size: 90%;
     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;
}
/* Level Up RN - Video Card Gallery Styles */
.video-cards-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.video-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.video-card-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}
.video-card-thumb a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-card-play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}
.video-card-info {
    padding: 12px;
}
.video-card-info a {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
    text-decoration: none;
    display: block;
}
.video-card-info a:hover {
    color: #065fd4;
}
/* Hide the table while JavaScript transforms it */
.playlist-videos-gallery .wikitable {
    display: none;
}
}

Latest revision as of 21:12, 17 January 2026

/* 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;
}
/* Level Up RN - Video Card Gallery Styles */
.video-cards-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.video-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-card-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}

.video-card-thumb a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card-play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.video-card-info {
    padding: 12px;
}

.video-card-info a {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
    text-decoration: none;
    display: block;
}

.video-card-info a:hover {
    color: #065fd4;
}

/* Hide the table while JavaScript transforms it */
.playlist-videos-gallery .wikitable {
    display: none;
}