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 12: Line 12:
.card {
.card {
     width: 400px; /* Fixed width for each card */
     width: 400px; /* Fixed width for each card */
     height: 310px; /* Fixed height for the card */
     height: 300px; /* Fixed height for the card */
     position: relative;
     position: relative;
     background-color: #fff;
     background-color: #fff;

Revision as of 19:30, 22 December 2024

/* Container for the card */
.card-container {
    display: flex;
    justify-content: space-between; /* Ensure space between cards */
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    margin: 20px;
    align-items: flex-start; /* Align items at the top */
}

/* The main card */
.card {
    width: 400px; /* Fixed width for each card */
    height: 300px; /* Fixed height for the card */
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer; /* Indicating it's clickable */
}

/* Wrapper for the front and back sides */
.card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out; /* Smooth flip effect */
}

/* Front side of the card */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back side when flipped */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

/* The back side of the card */
.card-back {
    transform: rotateY(180deg); /* Flip the back side to hide it initially */
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* Sub-panels for the back of the card */
.sub-panel {
    width: 45%;
    height: 80%;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Front content of the card */
.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0;
    font-size: 1.25em;
    color: #333;
}

/* Background image for the card */
.card-background {
    background-image: url("https://www.chromengine.com/images/a/ac/ChromeEngine.png");
    background-size: cover;
    background-position: center;
}

/* Add flip effect when the hovered class is active */
.card.hovered .card-inner {
    transform: rotateY(180deg); /* Flip the whole card */
}

/* Front and back transition */
.card-inner {
    transition: transform 0.6s ease-in-out;
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.