Interventi di David Scotson

I had a couple of theories as to what was causing this, but after looking at it (on qa.moodle.net), I can see it happening and it's not obvious where this style is coming from at all.

I'll continue to investigate.

edit: found it.

If you look at the bullet points in Chrome, then the chrome tools tell you that the circle bullet (i.e. the empty circle) is being provided by the browsers own style sheet from a rule that says:

ul ul, ol ul {
list-style-type: circle;
}

and it also provides:

ul, menu, dir {
list-style-type: disc;
}

On a Moodle course page the sections of the course are also build using ul tags so any lists within those are styled as if they were sub-lists, but when editing them seperately, they're top level lists.

That could be a bug in the browser I think. It should really be ul > ul, ol > ul (i.e. only immediate descendants act like sub-lists).

Now to look to see how other themes are dealing with this.

edit again:

looks like Bootstrapbase is missing these lines:

https://github.com/moodle/moodle/blob/master/theme/base/style/core.css#L917-L923

edit thrice:

though of course that has the opposite problem where if you indent a bullet point in the list it appears as a white circle in the editor and a black circle on the page.

The final answer might be to use the HTML5 "section" tag for the course sections.
Hi Danny,

I notice you say you've not started work, but your theme config.php seems to have already taken the unusual step of only having a "side-pre" and no "side-post".

I'm looking to do the same thing (though I've called it "side-post" as it's going to go after the content) and wondered if you'd hit any weird problems with this? Does Moodle expect/require both to be present? My initial testing suggests it works fine, but it would be good to hear from others who've tried the same thing.

I just checked Julian's github for his Elegance theme and he's doing the same (though "side-post") so is this a new trend?

https://github.com/moodleman/moodle-theme_elegance/blob/master/config.php