Toggle 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
Tag: Manual revert
No edit summary
Line 4: Line 4:
     gap: 1em;
     gap: 1em;
     justify-content: space-between;
     justify-content: space-between;
    margin: 0 auto;
    padding: 1em;
    max-width: 1200px; /* Center the grid on larger screens */
}
}


Line 9: Line 12:
     flex: 1 1 calc(33.333% - 1em); /* 3 columns with spacing */
     flex: 1 1 calc(33.333% - 1em); /* 3 columns with spacing */
     box-sizing: border-box;
     box-sizing: border-box;
    border: 2px solid #ddd; /* Light border */
    border-radius: 8px; /* Rounded corners */
    padding: 1em; /* Add padding inside the card */
    background-color: #fff; /* White background for cards */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
}
.card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    border-color: #aaa; /* Darker border on hover */
}
}



Revision as of 20:56, 16 December 2024

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: space-between;
    margin: 0 auto;
    padding: 1em;
    max-width: 1200px; /* Center the grid on larger screens */
}

.card {
    flex: 1 1 calc(33.333% - 1em); /* 3 columns with spacing */
    box-sizing: border-box;
    border: 2px solid #ddd; /* Light border */
    border-radius: 8px; /* Rounded corners */
    padding: 1em; /* Add padding inside the card */
    background-color: #fff; /* White background for cards */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
}

.card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    border-color: #aaa; /* Darker border on hover */
}

/* Adjust for tablets */
@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 1em); /* 2 columns */
    }
}

/* Adjust for mobile */
@media (max-width: 480px) {
    .card {
        flex: 1 1 100%; /* 1 column */
    }
}