MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 45: Line 45:
   margin: 0 auto;
   margin: 0 auto;
}
}
/* Style for the overlay element */
#overlay {
#overlay {
    display: none;
     position: fixed;
     position: fixed;
     top: 0;
     top: 0;
Line 52: Line 52:
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
     background-color: rgba(255, 255, 255, 0); /* Transparent initially */
     background-color: rgba(255, 255, 255, 0.9); /* White background with opacity */
     z-index: 1000; /* Ensure it's above other elements */
     z-index: 1000; /* Adjust the z-index as needed */
    transition: background-color 0.5s ease; /* Smooth transition effect */
}
}


/* Add the fade-out class to change the background color and create the fade-out effect */
#overlay.fade-out {
#overlay.fade-out {
     background-color: rgba(255, 255, 255, 0.7); /* White background with opacity */
     animation: fadeOut 0.5s ease-in-out; /* Adjust the duration as needed */
}
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


.card {
.card {

Navigation menu