Jump to content

MediaWiki:Common.css: Difference between revisions

From Adaris
No edit summary
No edit summary
Line 1: Line 1:
/* Style for section headings within the tables */
/* Grid layout for main page sections */
.wikitable h3 {
.main-page-grid {
     font-size: 1.2em;
     display: grid;
     margin-bottom: 5px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax values as needed */
     grid-gap: 20px;
}
}


/* Style for the "Explore More" links */
.section {
.explore-more {
    border: 1px solid #eee;
     font-style: italic;
    padding: 10px;
     margin-top: 10px;
}
 
/* 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;
    }
}
}

Revision as of 20:16, 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;
}

.section {
    border: 1px solid #eee;
    padding: 10px;
}

/* 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;
    }
}