refactor(core): ♻️ move external link styles to skinning folder

This commit is contained in:
alistair3149 2022-11-14 16:34:37 -05:00
parent e8f30ec883
commit be11883f3d
No known key found for this signature in database
6 changed files with 55 additions and 32 deletions

View file

@ -136,36 +136,6 @@ figcaption,
}
}
// External links
.mw-parser-output {
a.external:after {
display: inline-block;
width: 0.75em;
height: 0.75em;
margin-left: 0.25em;
background-color: currentcolor;
content: '';
/* @embed */
-webkit-mask: url( images/linkExternal.svg ) no-repeat 50% 50%;
/* @embed */
mask: url( images/linkExternal.svg ) no-repeat 50% 50%;
-webkit-mask-size: contain;
mask-size: contain;
}
.plainlinks a.external:after {
content: none;
}
}
.mw-content-rtl {
.mw-parser-output {
a.external:after {
transform: scaleX( -1 );
}
}
}
@media ( max-width: @width-breakpoint-tablet ) {
#mw-content-text {
figcaption,

View file

@ -35,6 +35,7 @@
// This get loaded anyways
@import 'skinning/content.body.less';
@import 'skinning/content.links.less';
@import 'skinning/content.externallinks.less';
}
@media print {

View file

@ -1,4 +1,11 @@
// Mediawiki.skinning.content.body
/*
* Citizen
*
* Module: mediawiki.skinning.content.body
* Version: REL1_39
*
* Date: 2022-11-14
*/
// Needed the specificity
.skin-citizen {

View file

@ -0,0 +1,37 @@
/*
* Citizen
*
* Module: mediawiki.skinning.content.externallinks
* Version: REL1_39
*
* Date: 2022-11-14
*/
.mw-parser-output {
a.external:after {
display: inline-block;
width: 0.75em;
height: 0.75em;
margin-left: 0.25em;
background-color: currentcolor;
content: '';
/* @embed */
-webkit-mask: url( images/linkExternal.svg ) no-repeat 50% 50%;
/* @embed */
mask: url( images/linkExternal.svg ) no-repeat 50% 50%;
-webkit-mask-size: contain;
mask-size: contain;
}
.plainlinks a.external:after {
content: none;
}
}
.mw-content-rtl {
.mw-parser-output {
a.external:after {
transform: scaleX( -1 );
}
}
}

View file

@ -1,4 +1,11 @@
// Mediawiki.skinning.content.body
/*
* Citizen
*
* Module: mediawiki.skinning.content.links
* Version: REL1_39
*
* Date: 2022-11-14
*/
// Needed the specificity
.skin-citizen {

View file

@ -92,6 +92,7 @@
"features": {
"normalize": true,
"content-links": true,
"content-links-external": false,
"toc": false
},
"styles": [