Jump to content

MediaWiki:Common.css: Difference between revisions

From Adaris
No edit summary
No edit summary
Line 4: Line 4:
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax values as needed */
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax values as needed */
     grid-gap: 20px;
     grid-gap: 20px;
    background-color: #f9f9f9;
}
}


Line 9: Line 10:
     border: 1px solid #eee;
     border: 1px solid #eee;
     padding: 10px;
     padding: 10px;
    background-color: #fff;
}
}



Revision as of 20:18, 31 August 2024

/* Grid layout for main page sections */
.main-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax values as needed */
    grid-gap: 20px;
    background-color: #f9f9f9;
}

.section {
    border: 1px solid #eee;
    padding: 10px;
    background-color: #fff;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .main-page-grid {
        grid-template-columns: 1fr; /* Single column layout on small screens */
    }

    .section {
        margin-bottom: 15px; /* Add spacing between sections on small screens */
    }

    /* Adjust image gallery dimensions or other elements as needed */
    .gallery {
        width: 100%;
    }

    .gallery img {
        max-width: 100%;
        height: auto;
    }
}