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:
/* Fix for LinkCards Icons */
/* Slider Container */
.link-card img,
.jule-slider {
.card-img-top {
    position: relative;
    object-fit: contain !important; /* Prevents stretching */
    overflow: hidden;
     padding: 20px !important;       /* Adds white space around the icon */
    background: var(--color-surface-1); /* Fallback bg */
     height: 140px !important;       /* Sets a fixed height for consistency */
     border-radius: 8px;
     width: 100% !important;         /* Ensures it centers in the container */
    margin: 0 auto;
     background-color: #f8f9fa;       /* Optional: Light gray background for the image area */
}
 
/* Individual Slides */
.jule-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
     height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade duration */
     display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
 
/* The Active Slide */
.jule-slide.active {
    opacity: 1;
     z-index: 1;
}
 
/* Force images to cover the area (Object-Fit) */
.jule-slide .slide-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}
}

Revision as of 04:08, 27 January 2026

/* Slider Container */
.jule-slider {
    position: relative;
    overflow: hidden;
    background: var(--color-surface-1); /* Fallback bg */
    border-radius: 8px;
    margin: 0 auto;
}

/* Individual Slides */
.jule-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade duration */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* The Active Slide */
.jule-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Force images to cover the area (Object-Fit) */
.jule-slide .slide-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}