Help talk:Reference display customization: Difference between revisions

Content deleted Content added
{{Help Project}}
 
Customization: dark mode compatibility
 
(6 intermediate revisions by 5 users not shown)
Line 1:
{{WikiProject banner shell|
{{Help Project}}
{{Wikipedia Help Project|class=NA|importance=mid}}
}}
== Customization ==
 
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:
 
<syntaxhighlight lang="css">
sup.reference a span {
display: none;
}
</syntaxhighlight>
 
-[[User:Yoosef Pooranvary|Yoosef]] ([[User talk:Yoosef Pooranvary|talk]]) 19:46, 20 July 2021 (UTC)
: [[User:Yoosef Pooranvary|Yoosef Pooranvary]], this is super dumb, will probably break something, but it seems to work, relatively speaking: <syntaxhighlight lang="css">
.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;
}
</syntaxhighlight>
: The <code>content</code> are two of the [[Box-drawing characters]]. —⁠[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 00:29, 23 July 2024 (UTC)