mediawiki-skins-Citizen/skinStyles/extensions/RelatedArticles/ext.relatedArticles.cards.less

52 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-12-29 18:45:17 +00:00
/*
* 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;
2019-12-29 18:45:17 +00:00
2021-03-01 16:47:42 +00:00
h3:after {
background: linear-gradient( to right, rgba( 255, 255, 255, 0 ), var( --background-color-dp-04 ) 50% );
}
2019-12-29 18:45:17 +00:00
.ext-related-articles-card {
2021-03-01 16:47:42 +00:00
border-color: var( --border-color-base ) !important;
background-color: var( --background-color-dp-04 );
2019-12-29 18:45:17 +00:00
transition: @transition-transform-quick;
.boxshadow(1);
2019-12-29 18:45:17 +00:00
&:hover {
.boxshadow(3);
transform: translateY( -2px );
}
> a:hover {
box-shadow: none;
}
}
2021-03-01 16:47:42 +00:00
.ext-related-articles-card-thumb {
background-color: var( --background-color-framed );
}
.ext-related-articles-card-extract {
color: var( --color-base--subtle );
}
2019-12-29 18:45:17 +00:00
}
.ext-related-articles-card-extract:after {
position: absolute;
right: 0;
bottom: 0;
width: 10%;
height: 1em;
2021-03-01 16:47:42 +00:00
background: linear-gradient( to right, rgba( 255, 255, 255, 0 ), var( --background-color-dp-04 ) 50% );
content: '';
2019-12-29 18:45:17 +00:00
}