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:
}
}


.box-grid {
/* Shared: Grid structure for 2 or 4 columns */
     display: flex;
.box-grid-2, .box-grid-4 {
     flex-wrap: wrap;
     display: grid;
     gap: 20px;
     gap: 12px;
}
     margin-bottom: 40px;
 
.box-grid .box {
    flex: 1 1 calc(50% - 20px); /* 2-column layout */
}
}


/* Section title above the grid */
/* Specific column count */
.section-title {
.box-grid-2 {
     font-size: 1.6em;
     grid-template-columns: repeat(2, 1fr);
    font-weight: bold;
    margin: 30px 0 15px;
    text-align: center;
    color: #333;
}
}


/* Grid container for 4-column layout */
.box-grid-4 {
.box-grid-4 {
     display: flex;
     grid-template-columns: repeat(4, 1fr);
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 40px;
}
}


/* Each individual box */
/* Shared box style */
.box-grid-4 .box {
.box {
    flex: 1 1 calc(25% - 20px); /* 4 columns */
     background-color: #fff;
     background-color: #fff;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
    border-radius: 8px;
     padding: 16px;
     padding: 15px 20px;
     border-radius: 4px;
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
     box-sizing: border-box;
     box-sizing: border-box;
     min-width: 200px;
     min-height: 140px;
     text-align: left;
     display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
}


/* Optional heading inside each box */
/* Optional title inside a box */
.box-grid-4 .box .box-title {
.box .box-title {
     font-weight: bold;
     font-weight: bold;
     font-size: 1.1em;
     font-size: 1.05em;
     margin-bottom: 8px;
     margin-bottom: 8px;
     border-bottom: 1px solid #eee;
     border-bottom: 1px solid #eee;
     padding-bottom: 4px;
     padding-bottom: 4px;
}
/* Optional: make box text smaller and uniform */
.box p {
    font-size: 0.95em;
    line-height: 1.4em;
    margin: 0;
}
}

Revision as of 06:36, 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;
}

/* Shared: Grid structure for 2 or 4 columns */
.box-grid-2, .box-grid-4 {
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
}

/* Specific column count */
.box-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.box-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Shared box style */
.box {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 16px;
    border-radius: 4px;
    box-sizing: border-box;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Optional title inside a box */
.box .box-title {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

/* Optional: make box text smaller and uniform */
.box p {
    font-size: 0.95em;
    line-height: 1.4em;
    margin: 0;
}