MediaWiki:Common.css: Difference between revisions

From Questlandia Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 45: Line 45:
}
}


/* Tight 2- and 4-column box grids */
/* Section block wrapper */
.box-grid-2, .box-grid-4 {
.vs-section {
    display: grid;
     margin: 40px 0;
    gap: 2px; /* Small spacing between cells */
     margin-bottom: 20px;
}
}


/* Column counts */
/* Title at the top */
.box-grid-2 {
.vs-section-title {
     grid-template-columns: repeat(2, 1fr);
     font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #aaa;
}
}


.box-grid-4 {
/* Grid container */
     grid-template-columns: repeat(4, 1fr);
.vs-grid {
    display: grid;
     grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1px; /* minimal spacing to simulate table borders */
    background-color: #ccc; /* acts as the "grid line" */
}
}


/* Cell/Box Style */
/* Individual cell */
.box {
.vs-cell {
     background-color: #fff;
     background-color: #fdfdfd;
    padding: 8px;
    text-align: center;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
    padding: 14px;
     box-sizing: border-box;
     box-sizing: border-box;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
     font-size: 0.95em;
     font-size: 0.95em;
    min-height: 150px;
}
}


/* Optional box titles */
/* Image inside each cell */
.box .box-title {
.vs-cell img {
    max-width: 48px;
    max-height: 48px;
    margin-bottom: 6px;
}
 
/* Link title inside each cell */
.vs-cell a {
    display: block;
     font-weight: bold;
     font-weight: bold;
     font-size: 1.05em;
     color: #333;
     margin-bottom: 8px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
     margin-top: 4px;
     padding-bottom: 4px;
}
 
.vs-cell a:hover {
     text-decoration: underline;
}
}

Revision as of 06:41, 19 April 2025

/* CSS placed here will be applied to all skins */
body {
    background: url("/images/wiki_background.png") no-repeat center center fixed;
    background-size: cover;
}

/* Wrap the sidebar (all portlets) in a white box */
#mw-panel {
    background-color: #ffffff;   /* White background */
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);  /* Optional soft shadow */
    border: 1px solid #ccc;
}

/* Higher-contrast footer text */
#footer, #footer a, #footer li {
    color: #eee !important;  /* Medium gray – readable on light/gray backgrounds */
    font-size: 0.9em;
    text-decoration: none;
}

/* Subtle light-gray hover */
#footer a:hover {
    color: #ccc !important;
    text-decoration: underline;
}

/* Generic content box with optional title */
.box {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Optional heading inside the box */
.box .box-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

/* Section block wrapper */
.vs-section {
    margin: 40px 0;
}

/* Title at the top */
.vs-section-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #aaa;
}

/* Grid container */
.vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1px; /* minimal spacing to simulate table borders */
    background-color: #ccc; /* acts as the "grid line" */
}

/* Individual cell */
.vs-cell {
    background-color: #fdfdfd;
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 0.95em;
    min-height: 150px;
}

/* Image inside each cell */
.vs-cell img {
    max-width: 48px;
    max-height: 48px;
    margin-bottom: 6px;
}

/* Link title inside each cell */
.vs-cell a {
    display: block;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-top: 4px;
}

.vs-cell a:hover {
    text-decoration: underline;
}