4 ms·
Org mode by default just uses your user agent stylesheet. Adding some CSS is trivial, so just write your own damn styles instead of adding a sandyuraz.com depen
by oefrha 7y ago
Org mode by default just uses your user agent stylesheet. Adding some CSS is trivial, so just write your own damn styles instead of adding a sandyuraz.com dependency for no reason.
Adding interactivity on the other hand is more involved. I recommend org-info-js which is what I use with my journals. https://orgmode.org/manual/JavaScript-support.html https://orgmode.org/manual/JavaScript-support.html
- cosmicexplorer 7y agoThe sandyuraz.com dependency might be a good starting point for people who don't know how to make CSS styles, though, or want an example to go off of!
- cosmicexplorer 7y agoAlso, I added back/forward support to org-info-js (along with a GPL license) here: https://github.com/cosmicexplorer/org-info-js https://github.com/cosmicexplorer/org-info-js. I haven't used it in a bit, but feel free to take the code e.g. from https://github.com/cosmicexplorer/org-info-js/commit/d72b310f04a1be01f365a696a5b78edf1e990480 https://github.com/cosmicexplorer/org-info-js/commit/d72b310... if you're looking to improve the default org-info-js situation.
- oefrha 7y agoBack/forward with b/B is built in, but I guess additional integration with history doesn’t hurt.
- switz 7y agoYou seem offended someone provided some styles that help along with an easy way to integrate them. One could easily copy those styles, extend them or host it themselves. Why the vitriol?
- oefrha 7y agoI would be supportive if the advice is “copy those styles, extend them or host it themselves”, not adding a dependency that’s bound to be broken sooner or later. There are way too many bloated, slow, or broken websites due to linking to random blurbs from the internet.
- iakh 7y agoNot sure if this was added later, but it says exactly that... or just use the bare CSS as a starting point to make your own (everyone has their own style)
- thecsw 7y agoAuthor here! I’m not the biggest fan of having thousands and thousands of external dependencies. I’m not too big on frontend but I have been using org mode for couple of years now. Just wanted to share some small adjustments one can make to make results prettier! If I made one for myself, literally anyone can copy it or make their own to their style