I find that, for markdown documents, if I specify an external CSS stylesheet in Preferences > Media > Style Sheet, it will override internal css written for the document (page backgrounds, font sizes, etc).
(Plus, editing or removing the external stylesheet requires a re-launch of the app to bring the documents to their internally styled appearance.)
Is that supposed to happen? It goes against the usual priority of css styling.
I suppose that itâs supposed to happen (what would be the point of having an external stylesheet if it couldnât override the internal one?).
Also, why would that go âagainst the usual priority of css stylingâ? Stylesheets referenced in HTML override the browser defaults, too.
@chrillek I think @avatarâs point is that what you describe isnât happening.
He is saying that the global css defined in preferences (the âbrowser defaultsâ) is overriding the css internal to the document. Which is the exact oposite of what you said, I think. (And you are, of course correct)
All that said, Iâm sorry to say @avatar, but I just tested it and my internal css does override the global css. As expected and as @chrillek explained. So you seem to have something else going on.
@arasmus - Yes, I meant, the external style sheet is incorrectly overriding the style written inside the document. Odd that yours isnât while mine is.
First off, Iâm sorry that I misunderstood your first post. I thought that you were talking about the internal stylesheet used by DT. Which of course is overriden by any style defined in your MD file or in the global CSS given in the settings of DT.
Now, to background vs. background-color.
The former is a short hand for several properties affecting the background of an element. Only one of them is the background color. So if you only want to specify the color, use background-color.
I understand the CSS syntax. Iâm just saying that something like body {background-color:#ccc;}is overridden by the external stylesheet, whereas body {background:#ccc;} (which I donât used anywhere else) isnât overridden.
And, as I say, this âoverridingâ seems only apparent when styling the background colour on the body tag. Nothing else (so far) seems affected.
It has something to do with DEVONthink, since this doesnât happen with regular CSS anywhere else.