mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 06:24:22 +00:00
86 lines
1.9 KiB
Plaintext
86 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-inline: 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-semi-bold );
|
|
line-height: var( --line-height-xxx-small );
|
|
|
|
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-drop-medium ); // 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;
|
|
}
|
|
}
|
|
}
|