Problem on FandomDesktop, hlist class not horizontal in TOC's.
Problem on FandomDesktop, hlist class not horizontal in TOC's.
The bullets will go away if you remove the bolded part of the following code on MediaWiki:Common.css:
.hlist dl:before,
.hlist ol:before,
.hlist ul:before,
.hlist li:before {
content: " · ";
font-weight: bold;
}
(don't forget to remove the comma on the second line)
At this link: https://gma-network.fandom.com/wiki/User:TheRafaMarc15/sandbox, there is no bullet between the first heading content and the opening parentheses. I wanted it to be like this way:
1. Individual titles • (1.1. A • 1.2. B • 1.3. C • ... • 1.26. Z) • 2. Group and collective titles
And is there any CSS class to hide the numbers using the class .nonum?
For the bullet, take this on MediaWiki:Common.css:
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist .toc li li:first-child:before {
content: " (" counters(tocitem, ".") " ";
font-weight: normal;
}
and split it like that:
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before {
content: " (" counters(tocitem, ".") " ";
font-weight: normal;
}
.hlist .toc li li:first-child:before {
content: " · (" counters(tocitem, ".") " ";
font-weight: normal;
}
For hiding the numbers
.nonum .tocnumber {
display: none;
}
Still no bullets between "Individual titles" and the opening parentheses "(", Is there any CSS to fix that problem and to add bullets?
We are talking about CSS all over this conversation :)
I think I already mentioned that you have too many overlapping CSS rules. The following part on MediaWiki:Fandomdesktop.css is what prevents the bullet from showing up:
.hlist .toc li li:first-child:before {
content: "(";
}
.hlist .toc li li:last-child:after {
content: ")";
}
Anyway, I was able to fix the problem on my own.
Glad to hear
https://gma-network.fandom.com/wiki/Template:Horizontal_TOC/example/noparens has a problem.
I fixed the CSS on my own by individually styling the hlist in Oasis via MediaWiki:Wikia.css and in FandomDesktop via MediaWiki:Fandomdesktop.css, but I don't know how to hide the closing parentheses problem when {{Horizontal TOC|noparens=yes}} in Fandomdesktop.
I will try to get that on Sunday, when I have the computer.
Pls notify me if you have your computer, you can now answer to my question.
What do you think?