MediaWiki:Common.css 🔗


From VEDA Wiki
Revision as of 03:48, 20 October 2024 by Sphynkx (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.tocnumber { display: none; }  /* swithoff enumarating of heading in TOC: https://www.mediawiki.org/wiki/Manual:Table_of_contents#Auto-numbering */
/* http://mariusmateoc.com/blog/automatic-serial-number-row-in-html-table/ */
.css-serial {
  counter-reset: serial-number;  /* Set the serial number counter to 0 */
}
 
.css-serial td:first-child:before {
  counter-increment: serial-number;  /* Increment the serial number counter */
  content: counter(serial-number);  /* Display the counter */
}
.css-serial-sep {
  counter-reset: serial-number;  /* Set the serial number counter to 0 */
}
 
.css-serial-sep td:first-child:before {
  counter-increment: serial-number;  /* Increment the serial number counter */
  content: counter(serial-number)'. ';  /* Display the counter with finishing dot and space*/
}

/* Modification of code tag to set border */
code {
    padding: 2px 3px;
    font-family: monospace;
    background-color: #e0eeee;
    /* display: inline; */
    box-shadow: 1px 1px 3px #688;
}

/* Change color of links to redirect pages*/
.mw-body-content a.mw-redirect {color:#00CC00 !important;}
.mw-body-content a.mw-redirect:visited {color:#007700 !important;}

.sketchfab-embed-wrapper {
  display: inline-block !important;
  border: 0px dotted;
  white-space: break-spaces;
  vertical-align: top;
  width: 350px;
}


/* https://en.wikipedia.org/wiki/MediaWiki:Common.css Change the external link icon to a Y icon for all Youtube URLs */
.mw-parser-output a[href^="https://www.youtube"].external,
.mw-parser-output a[href^="https://youtu.be"].external {
	/*background: url("images/f/f0/YouTube_full-24px.png") no-repeat right;*/
    /*background: url("images/d/d5/YouTube_full-20px.png") no-repeat right;*/
    /*background: url("images/5/50/YouTube_full-15px.png") no-repeat right;*/
    background: url("images/8/81/YouTube_full-12px.png") no-repeat right;
	/* @noflip */
	padding: 8px 15px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href*="rutube"].external {
    background: url("images/d/d9/Rutube_logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href^="https://t.me"].external {
    background: url("images/d/d5/Tg_logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href^="https://vk.com"].external {
    background: url("images/4/4a/Vk_logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href*="facebook"].external {
    background: url("images/4/40/Facebook_Logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href*="wikipedia"].external {
    background: url("images/0/0c/Wikipedia_logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href*="livejournal"].external {
    background: url("images/5/5f/Lj_logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href*="instagram"].external {
    background: url("images/c/c7/Insta_logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href*="https://ok.ru/"].external {
    background: url("images/c/cf/OK_logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href*="https://dzen.ru/"].external {
    background: url("images/2/28/Yandex_Zen_logo_15px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}
.mw-parser-output a[href*="twitter.com"].external,
.mw-parser-output a[href*="https://x.com"].external {
    /*background: url("images/c/c1/Twitter-logo_15px.png") no-repeat right;*/
    background: url("images/5/53/Twitter-logo_13px.png") no-repeat right;
	/* @noflip */
	padding: 8px 17px 8px 0;
    /*background-size: 3%;*/
}


.mw-parser-output a[href^="https://maps.google.com/maps"].external {
    background: url("images/e/e1/Gmaps16dp.png") no-repeat right;
	/* @noflip */
	padding: 8px 15px 8px 0;
    /*background-size: 3%;*/
}

.mw-parser-output a[href^="https://lahwiki.sphynkx.org.ua/"].external, a[href*="veda.wiki"].external {
    background: url("images/8/82/Lahwiki_pyr_fav16_01.png") no-repeat right;
	/* @noflip */
	padding: 8px 15px 8px 0;
    /*background-size: 3%;*/
}



/*
.mw-body-content a.external {color: #008000 !important;}
.mw-body-content a.external:visited {color: #008000 !important;}

a.external { color: green !important; }

div#content a.external {
    color: pink;
}
*/