MediaWiki:Common.css — различия между версиями

Материал из SEWiki
Перейти к: навигация, поиск
 
Строка 11: Строка 11:
 
.mw-body a.external[href^='https://stepik.org']::after,
 
.mw-body a.external[href^='https://stepik.org']::after,
 
.mw-body a.external[href^='https://github.com']::after,
 
.mw-body a.external[href^='https://github.com']::after,
.mw-body a.external[href^='https://yadi.sk']::after
+
.mw-body a.external[href^='https://yadi.sk']::after,
 
.mw-body a.external[href^='https://t.me']::after {
 
.mw-body a.external[href^='https://t.me']::after {
 
   content: '';
 
   content: '';

Текущая версия на 13:27, 18 апреля 2018

/* Размещённый здесь CSS будет применяться ко всем темам оформления */

.mw-body a.external[href^='https://stepik.org'],
.mw-body a.external[href^='https://github.com'],
.mw-body a.external[href^='https://yadi.sk'],
.mw-body a.external[href^='https://t.me'] {
  background: 0;
  padding-right: 0;
}

.mw-body a.external[href^='https://stepik.org']::after,
.mw-body a.external[href^='https://github.com']::after,
.mw-body a.external[href^='https://yadi.sk']::after,
.mw-body a.external[href^='https://t.me']::after {
  content: '';
  padding-right: 1.4em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-x: right;  
}

.mw-body a.external[href^='https://stepik.org']::after {
  background-image: url(https://stepik.org/static/classic/ico/favicon_57.png);
}

.mw-body a.external[href^='https://github.com']::after {
  background-image: url(https://assets-cdn.github.com/favicon.ico);
  background-image: url(https://assets-cdn.github.com/pinned-octocat.svg);
}

.mw-body a.external[href^='https://yadi.sk']::after {
  background-image: url(https://yadi.sk/favicon.ico);
}

.mw-body a.external[href^='https://t.me']::after {
  background-image: url(http://mit.spbau.ru/sewiki/images/7/7d/Telegram-icon.png);
}