MediaWiki:Common.css: Difference between revisions

From Begonia Wiki

No edit summary
No edit summary
Line 114: Line 114:
/* Make every horizontal line on the wiki thicker */
/* Make every horizontal line on the wiki thicker */
hr {
hr {
     height: 4px !important;        /* Adjust thickness here */
     height: 10px !important;        /* Adjust thickness here */
     background-color: #3a5f0b !important; /* A nice botanical green */
     background-color: #3a5f0b !important; /* A nice botanical green */
     border: none;                  /* Removes default thin border */
     border: none;                  /* Removes default thin border */

Revision as of 08:32, 11 January 2026

/* Mobile-first approach or desktop-first with media queries?
   MediaWiki usually defaults to desktop, so we'll add responsive overrides. */

/* Base styles for the content area to ensure readability */
.mw-body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll on small screens */
    padding: 0 10px;
    /* Add some side padding on mobile */
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #2c4c3b;
    /* A nice botanical dark green */
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 0.3em;
}

/* Infobox styling - Matching user's provided inline styles but as classes */
/* We maintain specific overrides to ensure consistency even if inline styles are missing */
.infobox {
    border: 1px solid #2e5a27;
    background-color: #f9fff9;
    color: black;
    margin: 0.5em 0 0.5em 1em;
    padding: 0;
    /* User template handles padding inside */
    float: right;
    clear: right;
    width: 300px;
    /* Defaults */
    font-family: sans-serif;
    font-size: 0.9em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Header style from user template */
.infobox-header {
    background-color: #2e5a27;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    font-style: italic;
}

/* Image area style */
.infobox-image {
    text-align: center;
    background-color: white;
    border-bottom: 1px solid #ddd;
    padding: 5px;
}

/* Table styles */
.infobox table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.infobox th {
    text-align: left;
    padding: 8px;
    background: #eef7ee;
    /* User's light green */
    width: 40%;
    border-bottom: 1px solid #eee;
}

.infobox td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* Clearfix */
.mw-body::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile Responsiveness */
@media screen and (max-width: 720px) {
    .mw-body {
        padding: 0 15px;
    }

    /* Force mobile override even if inline styles exist */
    .infobox {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        /* Full width on mobile */
        margin: 0 0 1em 0 !important;
        /* Add bottom margin, remove left margin */
        box-shadow: none;
        /* Optional: simpler look on mobile */
    }
}
/* Make every horizontal line on the wiki thicker */
hr {
    height: 10px !important;         /* Adjust thickness here */
    background-color: #3a5f0b !important; /* A nice botanical green */
    border: none;                   /* Removes default thin border */
    margin: 1.5em 0;                /* Adds spacing above and below */
    border-radius: 2px;             /* Optional: softens the edges */
}