mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-04 18:59:03 +00:00
87 lines
1.9 KiB
Plaintext
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-base--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-base--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-quiet--hover );
|
|
box-shadow: var( --box-shadow-card ); // reset
|
|
}
|
|
|
|
&:active {
|
|
background-color: var( --background-color-quiet--active );
|
|
}
|
|
}
|
|
|
|
.ext-related-articles-card-extract {
|
|
margin-top: var( --space-xxs );
|
|
font-size: var( --font-size-x-small );
|
|
color: var( --color-base--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;
|
|
}
|
|
}
|
|
}
|