mediawiki-skins-Citizen/skinStyles/extensions/RelatedArticles/ext.relatedArticles.readMore.less
alistair3149 0fdc7c4ad7
feat(core): convert some CSS variables into Codex equivalent part 2
Also fix various inconsistencies with quiet buttons
2024-06-30 20:41:31 -04:00

87 lines
1.9 KiB
Plaintext

/*
* Citizen
*
* SkinStyles for Extension:RelatedArticles
* Module: ext.relatedArticles.readMore
* Version: REL1_39 f513e5c
*
* Date: 2022-11-16
*/
@import '../../../resources/variables.less';
.ra-read-more {
max-width: var( --width-layout--extended );
padding: var( --space-md ) 0 0;
margin-right: auto;
margin-left: auto;
h2 {
padding-bottom: 0;
margin-top: 0;
font-size: var( --font-size-x-small );
font-weight: var( --font-weight-normal );
color: var( --color-subtle );
text-transform: none;
letter-spacing: 0.05em;
}
}
.ext-related-articles-card-list {
gap: var( --space-xs );
h3 {
font-weight: var( --font-weight-semibold );
line-height: var( --line-height-xs );
a {
color: var( --color-emphasized );
}
&::after {
background-image: linear-gradient( to right, rgba( 255, 255, 255, 0 ), var( --color-surface-2 ) 50% );
}
}
.ext-related-articles-card {
overflow: hidden; // Enforce rounded corner
background-color: var( --color-surface-2 );
border-color: var( --border-color-base ) !important;
border-radius: var( --border-radius--medium ) !important; // Same border-radius regardless
}
.ext-related-articles-card > a {
&:hover {
background-color: var( --background-color-button-quiet--hover );
box-shadow: var( --box-shadow-card ); // reset
}
&:active {
background-color: var( --background-color-button-quiet--active );
}
}
.ext-related-articles-card-extract {
margin-top: var( --space-xxs );
font-size: var( --font-size-x-small );
color: var( --color-subtle );
}
.ext-related-articles-card-thumb {
margin-right: var( --space-sm );
}
}
@media all and ( min-width: @min-width-breakpoint-tablet ) {
.ext-related-articles-card-list {
gap: var( --space-sm );
.ext-related-articles-card {
// Magic
width: ~'calc( 100% / 3 - var( --space-xs ) )';
margin-right: 0;
margin-bottom: 0;
}
}
}