2019-08-19 19:44:19 +00:00
|
|
|
/*
|
|
|
|
* Citizen - Gallery Styles
|
|
|
|
* https://starcitizen.tools
|
|
|
|
*/
|
|
|
|
|
2019-12-29 09:47:56 +00:00
|
|
|
@import '../../resources/variables.less';
|
|
|
|
@import '../../resources/mixins.less';
|
2019-08-19 19:44:19 +00:00
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
@gallery-clutter: 2px;
|
2019-08-19 19:44:19 +00:00
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
.skin-citizen {
|
|
|
|
ul.gallery {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0;
|
|
|
|
margin: @content-margin-top -@gallery-clutter;
|
|
|
|
}
|
2019-08-19 19:44:19 +00:00
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
ul.mw-gallery {
|
|
|
|
&-packed,
|
|
|
|
&-packed-hover,
|
|
|
|
&-packed-overlay {
|
|
|
|
text-align: left;
|
2019-08-19 19:44:19 +00:00
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
div.thumb img {
|
|
|
|
width: 100% !important; // fill empty space
|
|
|
|
height: auto;
|
|
|
|
}
|
2019-08-19 19:44:19 +00:00
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
li.gallerybox {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin: @gallery-clutter;
|
2019-08-19 19:44:19 +00:00
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
div.gallerytextwrapper {
|
|
|
|
right: 0;
|
|
|
|
width: auto !important; // fill empty space
|
|
|
|
margin: 0;
|
2021-03-06 14:01:27 +00:00
|
|
|
background: transparent;
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-background;
|
2021-03-05 18:43:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-19 19:44:19 +00:00
|
|
|
|
2021-03-06 14:01:27 +00:00
|
|
|
&-packed-hover,
|
|
|
|
&-packed-overlay {
|
|
|
|
div.thumb {
|
|
|
|
/* Gallary text background */
|
|
|
|
&:after {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
height: 60%;
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: 0 0 var( --border-radius--small ) var( --border-radius--small );
|
2021-03-06 14:01:27 +00:00
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div.gallerytextwrapper {
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2021-03-06 14:01:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
div.gallerytext {
|
|
|
|
color: #a2a9b1; // color-base50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-packed-hover li.gallerybox:hover,
|
|
|
|
&-packed-overlay li.gallerybox {
|
|
|
|
div.thumb:after {
|
|
|
|
background: linear-gradient( to top, #000, transparent );
|
|
|
|
}
|
|
|
|
|
|
|
|
div.gallerytextwrapper:hover {
|
|
|
|
/* Prevent overflow with long caption */
|
|
|
|
overflow: hidden;
|
|
|
|
max-height: 90%;
|
|
|
|
background: #000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
&-traditional,
|
|
|
|
&-nolines {
|
|
|
|
margin-right: -@gallery-clutter * 2;
|
|
|
|
margin-left: -@gallery-clutter * 2;
|
|
|
|
|
|
|
|
li.gallerybox {
|
|
|
|
margin: @gallery-clutter * 2;
|
|
|
|
}
|
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
}
|
2019-10-07 22:39:00 +00:00
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
li.gallerybox {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
width: 100% !important; // fill empty space
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.thumb {
|
|
|
|
overflow: hidden; // for border radius
|
|
|
|
width: 100% !important; // fill empty space
|
|
|
|
height: auto;
|
|
|
|
border-color: var( --border-color-base );
|
|
|
|
margin: 0;
|
|
|
|
background-color: var( --background-color-framed );
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2021-03-05 18:43:11 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
}
|
2019-08-19 19:44:19 +00:00
|
|
|
|
2021-03-05 18:43:11 +00:00
|
|
|
div.gallerytext {
|
|
|
|
padding: @content-margin-top / 2 0;
|
2021-03-06 14:01:27 +00:00
|
|
|
color: var( --color-base--subtle );
|
2021-03-05 18:43:11 +00:00
|
|
|
font-size: @content-caption-size;
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.image {
|
|
|
|
display: inline;
|
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
}
|
|
|
|
}
|