alan-if / alan-docs

Alan IF Documentation Project
https://git.io/alan-docs
Other
4 stars 0 forks source link

Sass Themes: Fix Operators Colouring #134

Open tajmone opened 2 years ago

tajmone commented 2 years ago

If you look at ALAN Manual » Creating Classes and Instances, you can see that the code template examples don't look good:

The <instance identifier> IsA <class identifier> ...

The < and > are render in a very light Cyan colour that strides with the light background. I need to check and fix all the CSS themes (default and others) to ensure they are rendered properly.

tajmone commented 2 years ago

Nested CSS!

It looks like the problem is due to added italic, which causes the Rouge CSS Theme classes to end up nested in a <em> tag:

<em><span class="o">&lt;</span><span class="n">instance</span>

This might be easy to fix in the Sass sources by adding an * before the span classes, to ensure they match any level of nesting.