mediawiki-skins-Citizen/skinStyles/mediawiki/mediawiki.page.gallery.styles.less

65 lines
1.4 KiB
Plaintext
Raw Normal View History

2019-08-19 19:44:19 +00:00
/*
* Citizen - Gallery Styles
* https://starcitizen.tools
*/
// T326017
ul.gallery.gallery.gallery {
padding: 0;
margin: var( --space-xxs ) 0;
}
// Sync with caption styles
div.gallerytext {
2022-11-25 02:11:38 +00:00
padding: 0;
padding-right: var( --border-radius--small );
padding-left: var( --border-radius--small );
color: var( --color-base--subtle );
font-size: 0.8125rem;
2022-11-25 02:11:38 +00:00
letter-spacing: 0.025em;
p {
2022-11-25 02:11:38 +00:00
margin: var( --space-xs ) 0; // reset default style
2021-03-05 18:43:11 +00:00
}
}
2019-08-19 19:44:19 +00:00
ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper,
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper,
ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper {
background: var( --background-color-overlay );
2022-11-25 02:11:38 +00:00
font-weight: var( --font-weight-normal ); // should use the same weight as caption
}
2021-03-05 18:43:11 +00:00
/* Slideshow */
ul.gallery.mw-gallery-slideshow {
.gallerybox {
&.slideshow-current {
background: var( --color-surface-2 );
2021-03-05 18:43:11 +00:00
}
2019-12-26 10:21:50 +00:00
}
2022-11-25 02:11:38 +00:00
.mw-gallery-slideshow {
&-buttons {
padding-top: var( --space-md );
padding-bottom: var( --space-sm );
}
&-img-container {
border-radius: var( --border-radius--large );
}
&-caption {
margin: 0;
}
}
}
2019-08-19 19:44:19 +00:00
@media screen {
li.gallerybox div.thumb {
overflow: hidden; // quick hack for rounded corner
border-color: transparent;
border-radius: var( --border-radius--small );
background-color: var( --color-surface-2 );
2019-12-26 10:21:50 +00:00
}
}