Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 15: Line 15:
.nav-item {
.nav-item {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column; /* Ensures the image and text are stacked vertically */
     align-items: center;
     align-items: center;
     text-align: center;
     text-align: center;
     width: 150px; /* Adjust width of each item */
     width: 150px; /* Sets a fixed width for the grid item */
     padding: 10px;
     padding: 10px;
     border-radius: 8px;
     border-radius: 8px;
Line 32: Line 32:


.nav-icon {
.nav-icon {
     width: 100px; /* Adjust size of the icons */
     width: 100%; /* Ensure the image takes full width of the parent container */
     height: auto; /* Maintain aspect ratio */
     height: auto; /* Maintain aspect ratio */
     margin-bottom: 8px; /* Add space below the icon */
     margin-bottom: 8px; /* Add spacing below the icon */
}
}


Line 40: Line 40:
     font-size: 14px;
     font-size: 14px;
     font-weight: bold;
     font-weight: bold;
     color: #333;
     color: #333; /* Text color */
}
}



Revision as of 05:02, 25 November 2024

/* Main page background */
body.page-Main_Page {
    background: url('https://predictive-pulse.com/images/5ean444_winter_cabin_forest_snow_night_sky_stars_peaceful_reali_fc7e7992-0c1e-4564-bf78-2930ff9dc2f9.png') no-repeat center center fixed;
    background-size: cover;
}

.mainpage-navigation {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    gap: 20px; /* Adds spacing between grid items */
    justify-content: center; /* Centers the items horizontally */
    padding: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column; /* Ensures the image and text are stacked vertically */
    align-items: center;
    text-align: center;
    width: 150px; /* Sets a fixed width for the grid item */
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9; /* Optional background for better visibility */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow effect */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
}

.nav-item:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.nav-icon {
    width: 100%; /* Ensure the image takes full width of the parent container */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 8px; /* Add spacing below the icon */
}

.nav-item span {
    font-size: 14px;
    font-weight: bold;
    color: #333; /* Text color */
}

/* Footer style */
.main-footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 12px;
}