Adding Additional CSS for All Themes
Hello,
Using Marked 2 Version 2.4.9 (876) I have added the Font Awesome CSS to the additional CSS for all themes. I changed the url path in the additional CSS but Marked 2 looks for the resources on the path /Users/~user/Desktop/
It works fine if I have the resources on the desktop. Anyway to change this so I don't have to have the fonts files lounging on my desktop?
Thanks
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 15 Feb, 2015 11:21 PM
How do you have the font imported in the CSS? Relative or absolute path?
2 Posted by sjg2001 on 16 Feb, 2015 01:31 AM
I tried the absolute path in the CSS but Marked 2 was looking for the files at /Users/~user/Desktop/Applications/Font-Awesome-master not /Applications/Font-Awesome-master
Support Staff 3 Posted by Brett on 16 Feb, 2015 01:37 AM
I'd recommend putting the font-family definitions in a css file and
using an @import statement in the Additional CSS field, e.g.:
@import '/Users/ttscoff/testoverride.css'
That should allow the paths to ignore the document base url and you
should be able to load them with relative paths from the imported css
file.
Let me know if that helps.
4 Posted by sjg2001 on 16 Feb, 2015 02:23 AM
That doesn't seem to work.
i get
<style>@import ‘/Users/sjg/Documents/Marked2/markd2addedCSS.css’</style>
in the html head but no stylesheet loaded in the resources and div classes are ignored in document.
Support Staff 5 Posted by Brett on 16 Feb, 2015 02:25 AM
Works fine for me here, what version of Marked are you on?
6 Posted by sjg2001 on 16 Feb, 2015 02:28 AM
Marked 2 Version 2.4.9 (876)
7 Posted by sjg2001 on 16 Feb, 2015 09:01 PM
Got it to work. Needed to use @import url(/User/user/added.css) and good to go
Thank you for your help.
Support Staff 8 Posted by Brett on 16 Feb, 2015 09:08 PM
You may have a better time with the 2.4.10 release (check for updates),
assuming I solved the errors it was having yesterday. It removes
sandboxing, which may be the issue here.
Support Staff 9 Posted by Brett on 16 Feb, 2015 09:08 PM
Ah! Glad to hear it. Not sure why it worked for me without url(), but ok
:).