MediaWiki:Common.css: Difference between revisions

From Hotline Wiki
Jump to navigationJump to search
(Created page with "→‎CSS placed here will be applied to all skins: →‎Styling for client version tags: .client-version-tag { display: inline-block; padding: 3px 8px; margin: 2px; border: 1px solid #ccc; background-color: #f8f9fa; border-radius: 4px; font-size: 90%; } .client-version-tag a { text-decoration: none; } .client-version-tag:hover { border-color: #3498db; background-color: #eaf5fc; } →‎Ensure icons are aligned with text: .client-...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
     font-size: 90%;
     font-size: 90%;
}
}
 
/* Styling for OS Support Template */
.os-support-item {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap; /* Prevents the icon and text from splitting to a new line */
}
.os-support-item img {
    vertical-align: middle; /* Aligns icon with text better */
    margin-right: 4px;
}
.client-version-tag a {
.client-version-tag a {
     text-decoration: none;
     text-decoration: none;
Line 23: Line 32:
.client-version-tag img {
.client-version-tag img {
     vertical-align: middle;
     vertical-align: middle;
}
/* --- Infobox Styling --- */
/* This is the main container for the infobox */
.infobox {
    float: right;
    margin-left: 1em;
    margin-bottom: 0.5em;
    width: 22em; /* Standard infobox width */
    border: 1px solid #aaaaaa;
    background-color: #f9f9f9;
    color: black;
    font-size: 90%;
    padding: 0.4em;
    clear: right;
}
/* Styles the main title header */
.infobox th {
    text-align: center;
    font-size: 125%;
    font-weight: bold;
    background-color: #e6e6e6; /* A light grey header */
    padding: 0.25em 0.5em;
}
/* Styles the "label" cells */
.infobox ! {
    font-weight: bold;
    padding: 0.25em 0.5em;
    vertical-align: top;
}
/* Styles the "data" cells */
.infobox td {
    padding: 0.25em 0.5em;
    vertical-align: top;
}
}

Latest revision as of 18:16, 21 October 2025

/* CSS placed here will be applied to all skins */
/* Styling for client version tags */
.client-version-tag {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 90%;
}
/* Styling for OS Support Template */
.os-support-item {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap; /* Prevents the icon and text from splitting to a new line */
}
.os-support-item img {
    vertical-align: middle; /* Aligns icon with text better */
    margin-right: 4px;
}
.client-version-tag a {
    text-decoration: none;
}

.client-version-tag:hover {
    border-color: #3498db;
    background-color: #eaf5fc;
}

/* Ensure icons are aligned with text */
.client-version-tag img {
    vertical-align: middle;
}
/* --- Infobox Styling --- */
/* This is the main container for the infobox */
.infobox {
    float: right;
    margin-left: 1em;
    margin-bottom: 0.5em;
    width: 22em; /* Standard infobox width */
    border: 1px solid #aaaaaa;
    background-color: #f9f9f9;
    color: black;
    font-size: 90%;
    padding: 0.4em;
    clear: right;
}

/* Styles the main title header */
.infobox th {
    text-align: center;
    font-size: 125%;
    font-weight: bold;
    background-color: #e6e6e6; /* A light grey header */
    padding: 0.25em 0.5em;
}

/* Styles the "label" cells */
.infobox ! {
    font-weight: bold;
    padding: 0.25em 0.5em;
    vertical-align: top;
}

/* Styles the "data" cells */
.infobox td {
    padding: 0.25em 0.5em;
    vertical-align: top;
}