Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom CSS? #159

Open
code-SL opened this issue Jun 15, 2021 · 1 comment
Open

Custom CSS? #159

code-SL opened this issue Jun 15, 2021 · 1 comment

Comments

@code-SL
Copy link

code-SL commented Jun 15, 2021

It's a bit difficult to follow the code on how roam-server implements the CSS for org-mode when previewing (hovering over a node). It does not seem to pull from orgcss via a link. Is the code in /assets/org.css just "copy and pasted" CSS from orgcss?

Seems like the only way to change the CSS for preview is to edit the /assets/org.css file directly? Is that the file holding the CSS for preview? Or is there another mechanism?

@Riyyi
Copy link

Riyyi commented Jul 27, 2021

You can change the CSS with the org-roam-server-style variable, see this snippet from my config:

(setq org-roam-server-style
	  (concat
	   "button#toggle-preview { margin: 4px; }"
	   "div#view-menu { margin: 4px; }"
	   "div#controls { right: 4px; left: 4px; bottom: 4px; }"
	   "button#toggle-list-type-button { margin: 0 4px; }"
	   "label#colormode { transform: translate(-25%, 0); }"
	   "label.toggle-off.btn-sm { padding-left: 0px; }"
	   ))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants