Stylesheet and shadow DOM


#1

I don’t like themes with italicized comments, so I added this long ago to my stylesheet:

.comment { font-style: normal; }

This appears to no longer work – I assume it’s Shadow DOM related? How can I fix this line of CSS, and is there a tutorial about the recent changes?

Thanks,
Dave


How to set font weight to bold?
#2

There was a discussion recently about shadow DOM and styles, you can find a bit of explanation in my post here:

As for your specific problem, simply rewrite your rule like this:

atom-text-editor::shadow .comment { 
  font-style: normal; 
}

#3

Easy as pie. Thanks.