1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00
mediawiki_ynh/sources/mediawiki/skins/vector/externalLinks.less

75 lines
2.7 KiB
Text

// FIXME: This size of this CSS is ridiculous. Please refactor (see bug 54604)
@import "mediawiki.mixins.less";
div#content a.external {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/external-link-ltr-icon.png');
padding-right: 13px;
}
div#content a.external[href ^="https://"],
.link-https {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/lock-icon.png');
padding-right: 13px;
}
div#content a.external[href ^="mailto:"],
.link-mailto {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/mail-icon.png');
padding-right: 13px;
}
div#content a.external[href ^="news:"] {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/news-icon.png');
padding-right: 13px;
}
div#content a.external[href ^="ftp://"],
.link-ftp {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/file-icon.png');
padding-right: 13px;
}
div#content a.external[href ^="irc://"],
div#content a.external[href ^="ircs://"],
.link-irc {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/talk-icon.png');
padding-right: 13px;
}
div#content a.external[href $=".ogg"], div#content a.external[href $=".OGG"],
div#content a.external[href $=".mid"], div#content a.external[href $=".MID"],
div#content a.external[href $=".midi"], div#content a.external[href $=".MIDI"],
div#content a.external[href $=".mp3"], div#content a.external[href $=".MP3"],
div#content a.external[href $=".wav"], div#content a.external[href $=".WAV"],
div#content a.external[href $=".wma"], div#content a.external[href $=".WMA"],
.link-audio {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/audio-icon.png');
padding-right: 13px;
}
div#content a.external[href $=".ogm"], div#content a.external[href $=".OGM"],
div#content a.external[href $=".avi"], div#content a.external[href $=".AVI"],
div#content a.external[href $=".mpeg"], div#content a.external[href $=".MPEG"],
div#content a.external[href $=".mpg"], div#content a.external[href $=".MPG"],
.link-video {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/video-icon.png');
padding-right: 13px;
}
div#content a.external[href $=".pdf"], div#content a.external[href $=".PDF"],
div#content a.external[href *=".pdf#"], div#content a.external[href *=".PDF#"],
div#content a.external[href *=".pdf?"], div#content a.external[href *=".PDF?"],
.link-document {
background-position: center right;
background-repeat: no-repeat;
.background-image('images/document-icon.png');
padding-right: 13px;
}