I would like to humbly suggest a small feature that would be a huge help to everyone who style with style-article.css.
Right now, styling a tag (e.g. "span class='dsl_ex'") changes the display of all the dictionaries using this tag - even if they use it in a different way (eg. dsl_ex used as a definition). The only way to prevent this and allow specific formatting for specific dictionaries, is to be able to identify each dictionary (like with the current 'gdfrom' id), but in a permanent way.
GoldenDict already retrieves the name of the current dictionary (e.g. 'The Great Dictionary'), which it writes inside the "div class='gddictname'". So here is my question-suggestion:
Would it be possible to add to the topmost "span" container an attribute "title", which would also contain the name of the dictionary (e.g. "span class='gdarticle' title='The Great Dictionary'")?
This way it would be possible (and a lot easier) to create nice layouts and formatting for every dictionary!
E.G.
- Code: Select all
.dsl_ex { /* For All dictionaries */
font-style: italic;
font-weight: normal;
}
span[title="The Great Dictionary"] .dsl_ex { /* For a specific dictionary */
font-style: normal;
font-weight: bold;
}
And even long or problematic names could still be accesed by a part of their name:
- Code: Select all
span[title*="Great"]
Well, it's just a suggestion, but I think it would be a terrific tool for styling!

Anyway, thanks for reading me, and kudos again!!!
Flux