Jump to content

MediaWiki:Common.css: Difference between revisions

From VanuatuBook
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Set full-width for all sections */
/* Make everything take full width */
.main-container {
.main-container {
     width: 100%;
     width: 100%;
Line 8: Line 8:
}
}


/* Make header and footer full-width */
/* Header & Footer Section */
.header-section, .footer-section {
.header-section, .footer-section {
     width: 100%;
     width: 100%;
Line 18: Line 18:
}
}


/* Ensure middle section is full-width and centered */
/* Middle Section using CSS Grid */
.middle-section {
.middle-section {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 column */
    gap: 10px;
     width: 100%;
     width: 100%;
     padding: 10px;
     padding: 10px;
Line 29: Line 32:
     width: 100%;
     width: 100%;
     padding: 20px;
     padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
/* Icons before section title */
.section-title::before {
    content: "📝"; /* Default icon */
    margin-right: 8px;
}
/* Custom icons for each section */
.column:nth-child(1) .section-title::before { content: "📖"; } /* Journal */
.column:nth-child(2) .section-title::before { content: "🎯"; } /* Commitments */
.column:nth-child(3) .section-title::before { content: "🌟"; } /* Wishes */
/* Section title styling */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
     margin-bottom: 10px;
     margin-bottom: 10px;
     border: 1px solid #ddd;
     text-transform: uppercase;
     bac
}
 
/* Responsive Design: 3 columns on larger screens */
@media screen and (min-width: 768px) {
    .middle-section {
        grid-template-columns: repeat(3, 1fr);
     }
}

Revision as of 05:47, 20 March 2025

/* CSS placed here will be applied to all skins */

/* Make everything take full width */
.main-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Header & Footer Section */
.header-section, .footer-section {
    width: 100%;
    padding: 20px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
}

/* Middle Section using CSS Grid */
.middle-section {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 column */
    gap: 10px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Columns: default to full width */
.middle-section .column {
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* Icons before section title */
.section-title::before {
    content: "📝"; /* Default icon */
    margin-right: 8px;
}

/* Custom icons for each section */
.column:nth-child(1) .section-title::before { content: "📖"; } /* Journal */
.column:nth-child(2) .section-title::before { content: "🎯"; } /* Commitments */
.column:nth-child(3) .section-title::before { content: "🌟"; } /* Wishes */

/* Section title styling */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Responsive Design: 3 columns on larger screens */
@media screen and (min-width: 768px) {
    .middle-section {
        grid-template-columns: repeat(3, 1fr);
    }
}