mediawiki-skins-Citizen/skinStyles/extensions/RelatedArticles/ext.relatedArticles.cards.less
2021-01-11 11:45:52 -05:00

67 lines
1.3 KiB
Plaintext

/*
* Citizen - Related Articles Styles
* https://starcitizen.tools
*/
@import '../../../resources/variables.less';
@import '../../../resources/mixins.less';
.ext-related-articles-card-list {
overflow: visible; // Show shadow
padding-top: @content-margin-top; // Give room for shadows and translate
margin-top: 0;
.ext-related-articles-card {
border: 1px solid @base-80 !important;
border-radius: 0 !important;
transition: @transition-transform-quick;
.boxshadow(1);
&:hover {
.boxshadow(3);
transform: translateY( -2px );
}
> a:hover {
box-shadow: none;
}
}
}
.ext-related-articles-card-extract:after {
position: absolute;
right: 0;
bottom: 0;
width: 10%;
height: 1em;
background: linear-gradient( to right, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) 50% );
content: '';
}
.skin-citizen-dark {
.ext-related-articles-card-list {
.ext-related-articles-card {
border-color: @dark-bg-40 !important;
background-color: @dark-bg-30;
}
.ext-related-articles-card-thumb {
background-color: @dark-bg-10;
}
h3 {
&:after {
background: linear-gradient( to right, rgba( 255, 255, 255, 0 ), @dark-bg-30 50% );
}
a {
color: @dark-text-100;
}
}
}
.ext-related-articles-card-extract:after {
background: linear-gradient( to right, rgba( 255, 255, 255, 0 ), @dark-bg-30 50% );
}
}