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 1: Line 1:
/* Container for the card */
/* Container for the main cards */
.card-container {
.card-container {
     display: flex;
     display: flex;
     justify-content: space-between; /* Ensure space between cards */
     justify-content: space-between;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 20px; /* Space between cards */
     gap: 20px;
     margin: 20px;
     margin: 20px;
    align-items: flex-start; /* Align items at the top */
}
}


/* The main card */
/* Main card */
.card {
.card {
     width: 450px; /* Fixed width for each card */
     width: 400px;
     height: 200px; /* Fixed height for the card */
     height: 200px;
     position: relative;
     position: relative;
     background-color: #fff;
     background-color: #fff;
Line 20: Line 19:
     overflow: hidden;
     overflow: hidden;
     transform-style: preserve-3d;
     transform-style: preserve-3d;
     cursor: pointer; /* Indicating it's clickable */
     cursor: pointer;
}
}


Line 29: Line 28:
     height: 100%;
     height: 100%;
     transform-style: preserve-3d;
     transform-style: preserve-3d;
     transition: transform 0.6s ease-in-out; /* Smooth flip effect */
     transition: transform 0.6s ease-in-out;
}
}


/* Front side of the card */
/* Front side of the main card */
.card-front, .card-back {
.card-front, .card-back {
     position: absolute;
     position: absolute;
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
     backface-visibility: hidden; /* Hide the back side when flipped */
     backface-visibility: hidden;
     display: flex;
     display: flex;
     justify-content: center;
     justify-content: center;
Line 45: Line 44:
}
}


/* The back side of the card */
/* The back side of the main card */
.card-back {
.card-back {
     transform: rotateY(180deg); /* Flip the back side to hide it initially */
     transform: rotateY(180deg);
}
 
/* Sub-card container in the back */
.sub-card-container {
     display: flex;
     display: flex;
     flex-direction: row;
     flex-wrap: wrap;
     justify-content: space-around;
    gap: 10px;
     justify-content: space-between;
    width: 100%;
}
}


/* Sub-panels for the back of the card */
/* Sub-card */
.sub-panel {
.sub-card {
     width: 45%;
     width: 48%;
     height: 80%;
     height: 90%;
     background-color: #f0f0f0;
     background-color: #f0f0f0;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
Line 63: Line 68:
     align-items: center;
     align-items: center;
     box-sizing: border-box;
     box-sizing: border-box;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}
}


/* Front content of the card */
.sub-card-inner {
.card-content {
     position: absolute;
     padding: 15px;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}
}


.card-content h3 {
/* Sub-card front and back */
     margin: 0;
.sub-card-front, .sub-card-back {
     font-size: 1.25em;
     position: absolute;
     color: #333;
    width: 100%;
    height: 100%;
     backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
     box-sizing: border-box;
}
}


/* Background image for the card */
.sub-card-back {
.card-background {
     transform: rotateY(180deg);
     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 */
/* Sub-card flip effect */
.card.hovered .card-inner {
.sub-card:hover .sub-card-inner {
     transform: rotateY(180deg); /* Flip the whole card */
     transform: rotateY(180deg);
}
}


/* Front and back transition */
/* Main card flip effect */
.card-inner {
.card.hovered .card-inner {
     transition: transform 0.6s ease-in-out;
     transform: rotateY(180deg);
}
}

Revision as of 19:34, 22 December 2024

/* Container for the main cards */
.card-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

/* Main card */
.card {
    width: 400px;
    height: 200px;
    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;
}

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

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

/* The back side of the main card */
.card-back {
    transform: rotateY(180deg);
}

/* Sub-card container in the back */
.sub-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

/* Sub-card */
.sub-card {
    width: 48%;
    height: 90%;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.sub-card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

/* Sub-card front and back */
.sub-card-front, .sub-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.sub-card-back {
    transform: rotateY(180deg);
}

/* Sub-card flip effect */
.sub-card:hover .sub-card-inner {
    transform: rotateY(180deg);
}

/* Main card flip effect */
.card.hovered .card-inner {
    transform: rotateY(180deg);
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.