Help talk:Reference display customization

This is the current revision of this page, as edited by Andrybak (talk | contribs) at 00:32, 23 July 2024 (Customization: dark mode compatibility). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Latest comment: 1 year ago by Andrybak in topic Customization

Customization

edit

Can someone help me? I want to use the below code to remove brackets from references but it doesn't work at all. Every other change in the style of the references works well except this one:

sup.reference a span {
  display: none;
}

-Yoosef (talk) 19:46, 20 July 2021 (UTC)Reply

Yoosef Pooranvary, this is super dumb, will probably break something, but it seems to work, relatively speaking:
.reference > a {
	position: relative;
}
.reference > a::after,
.reference > a::before {
	color: var(--background-color-base,#fff);
	position: absolute;
}
.reference > a::before {
	content: "▍";
	left: 0;
	top: 0.3em;
}
.reference > a::after {
	content: "▐";
	right: -0.20em;
	top: 0.3em;
}
The content are two of the Box-drawing characters. —⁠andrybak (talk) 00:29, 23 July 2024 (UTC)Reply