Anonymous
×
Create a new article
Write your page title here:
We currently have 7 articles on wiki.jedimud.net. Type your article name above or click on one of the titles below and start writing!



wiki.jedimud.net

MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Basic gallery styling */
/* Override styles for galleries with mode="nolines" */
.mw-gallery-traditional, .mw-gallery-nolines, .mw-gallery-packed, .mw-gallery-packed-hover, .mw-gallery-packed-overlay {
.mw-gallery-nolines {
     background-color: transparent; /* Or your preferred background color */
     background-color: transparent; /* Or any color you prefer */
}
}


/* Override individual gallery items */
.mw-gallery-nolines .gallerybox {
.mw-gallery-traditional .gallerybox,
     border: none; /* Ensure no border for gallery items */
.mw-gallery-nolines .gallerybox,
     margin: 0; /* Adjust or remove margin */
.mw-gallery-packed .gallerybox,
     padding: 0; /* Adjust or remove padding */
.mw-gallery-packed-hover .gallerybox,
.mw-gallery-packed-overlay .gallerybox {
     border: none; /* Remove border */
     margin: 0; /* Adjust spacing */
     padding: 0; /* Adjust padding */
}
}


/* Specifically target the thumb container */
.mw-gallery-nolines .gallerybox .thumb {
.mw-gallery-traditional .gallerybox .thumb,
     background-color: inherit; /* Match parent's background or set a specific color */
.mw-gallery-nolines .gallerybox .thumb,
     border: none; /* No border around the thumb container */
.mw-gallery-packed .gallerybox .thumb,
.mw-gallery-packed-hover .gallerybox .thumb,
.mw-gallery-packed-overlay .gallerybox .thumb {
     background-color: inherit; /* Or specify a color */
     border: none; /* Remove border around thumb */
}
}


/* Image within thumb */
.mw-gallery-nolines .gallerybox .thumb img {
.mw-gallery-traditional .gallerybox .thumb img,
     border: none; /* Remove any border on the image itself */
.mw-gallery-nolines .gallerybox .thumb img,
     padding: 0; /* Remove padding around the image */
.mw-gallery-packed .gallerybox .thumb img,
.mw-gallery-packed-hover .gallerybox .thumb img,
.mw-gallery-packed-overlay .gallerybox .thumb img {
     border: none; /* Remove any image border */
     padding: 0; /* Remove any padding around the image */
}
}


/* Gallery text styling */
.mw-gallery-nolines .gallerytext {
.mw-gallery-traditional .gallerytext,
.mw-gallery-nolines .gallerytext,
.mw-gallery-packed .gallerytext,
.mw-gallery-packed-hover .gallerytext,
.mw-gallery-packed-overlay .gallerytext {
     text-align: center; /* Center text if desired */
     text-align: center; /* Center text if desired */
     color: inherit; /* Or set a specific color */
     color: inherit; /* Or set a specific color */
}
/* For mode="nolines" specifically */
.mw-gallery-nolines .gallerybox {
    border: none; /* Since nolines should have no border */
}
}

Revision as of 01:59, 20 January 2025

/* CSS placed here will be applied to all skins */
/* Override styles for galleries with mode="nolines" */
.mw-gallery-nolines {
    background-color: transparent; /* Or any color you prefer */
}

.mw-gallery-nolines .gallerybox {
    border: none; /* Ensure no border for gallery items */
    margin: 0; /* Adjust or remove margin */
    padding: 0; /* Adjust or remove padding */
}

.mw-gallery-nolines .gallerybox .thumb {
    background-color: inherit; /* Match parent's background or set a specific color */
    border: none; /* No border around the thumb container */
}

.mw-gallery-nolines .gallerybox .thumb img {
    border: none; /* Remove any border on the image itself */
    padding: 0; /* Remove padding around the image */
}

.mw-gallery-nolines .gallerytext {
    text-align: center; /* Center text if desired */
    color: inherit; /* Or set a specific color */
}