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 */ | ||
/* | /* Override styles for galleries with mode="nolines" */ | ||
.mw-gallery-nolines { | |||
background-color: transparent; /* Or | background-color: transparent; /* Or any color you prefer */ | ||
} | } | ||
.mw-gallery-nolines .gallerybox { | |||
border: none; /* Ensure no border for gallery items */ | |||
.mw-gallery-nolines | margin: 0; /* Adjust or remove margin */ | ||
padding: 0; /* Adjust or remove padding */ | |||
border: none; /* | |||
margin: 0; /* Adjust | |||
padding: 0; /* Adjust padding */ | |||
} | } | ||
.mw-gallery-nolines .gallerybox .thumb { | |||
background-color: inherit; /* Match parent's background or set a specific color */ | |||
.mw-gallery-nolines | border: none; /* No border around the thumb container */ | ||
background-color: inherit; /* | |||
border: none; /* | |||
} | } | ||
.mw-gallery-nolines .gallerybox .thumb img { | |||
border: none; /* Remove any border on the image itself */ | |||
.mw-gallery-nolines | padding: 0; /* Remove padding around the image */ | ||
border: none; /* Remove any image | |||
padding: 0; /* Remove | |||
} | } | ||
.mw-gallery-nolines .gallerytext { | |||
.mw-gallery-nolines | |||
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 */ | ||
} | } | ||
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 */
}
