Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Wikipedia/styles.css: Difference between revisions

Template page
Create Wikipedia link template
 
m Empirically align the Wikipedia icon with the link text
Line 3: Line 3:
}
}


/* Placeholder pending live empirical measurement (same method as the
/* Empirically measured against the live rendered text/icon (same method
  YouTube/Twitch/Loka/Challonge-bracket icons) -- this is a different SVG
  as the YouTube/Twitch/Loka/Challonge-bracket icons) -- vertical-align:
   with different intrinsic proportions, so an existing icon's value can't
  middle left it 1.4px high; this is the exact value that lines up the
  just be assumed to transfer. */
   icon's centre with the text's centre. */
.loka-wikipedia-icon img {
.loka-wikipedia-icon img {
vertical-align: middle;
vertical-align: -1.5px;
}
}

Revision as of 21:02, 19 August 2026

.loka-wikipedia-link {
	display: inline;
}

/* Empirically measured against the live rendered text/icon (same method
   as the YouTube/Twitch/Loka/Challonge-bracket icons) -- vertical-align:
   middle left it 1.4px high; this is the exact value that lines up the
   icon's centre with the text's centre. */
.loka-wikipedia-icon img {
	vertical-align: -1.5px;
}