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

65 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-08-19 19:44:19 +00:00
/*
* Citizen - Gallery Styles
* https://starcitizen.tools
*/
@import '../resources/variables.less';
@import '../resources/mixins.less';
ul.gallery {
2019-08-19 20:04:56 +00:00
position: relative;
2019-10-08 01:40:21 +00:00
margin: @content-margin-top @negative-margin @content-margin-top * 2 !important;
2019-08-19 19:44:19 +00:00
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
li.gallerybox {
margin: 2px;
display: block;
}
li.gallerybox div.thumb {
margin: 0;
}
li.gallerybox,
li.gallerybox>div {
width: fit-content !important;
2019-08-21 19:57:17 +00:00
height: auto !important;
2019-08-19 19:44:19 +00:00
}
li.gallerybox,
li.gallerybox div,
li.gallerybox a.image,
li.gallerybox a.image img {
transition: @transition-width,
@transition-height;
}
div.gallerytext {
display: none;
}
2019-08-19 20:03:41 +00:00
@media only screen and (max-width: @screen2) {
2019-08-19 19:44:19 +00:00
ul.gallery {
2019-10-08 01:40:21 +00:00
margin: @content-margin-top 0 @content-margin-top * 2 !important;
2019-10-07 22:39:00 +00:00
overflow: hidden; // Hack to avoid viewpoint move
}
li.gallerybox,
li.gallerybox div,
li.gallerybox a.image,
li.gallerybox a.image img {
2019-10-07 22:43:01 +00:00
width: 100vw !important;
2019-10-07 22:53:12 +00:00
height: auto !important;
2019-10-07 22:39:00 +00:00
transition: none; // Performance tweaks
2019-08-19 19:44:19 +00:00
}
}
2019-08-19 20:03:41 +00:00
@media only screen and (max-width: @screen1) {
2019-08-19 19:44:19 +00:00
ul.gallery {
2019-10-08 01:40:21 +00:00
margin: @content-margin-top -@margin-side @content-margin-top * 2 !important;
2019-08-19 19:44:19 +00:00
}
}