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

Introduce Space Style, similar to Space Script #790

Closed
zefhemel opened this issue Mar 5, 2024 · 3 comments
Closed

Introduce Space Style, similar to Space Script #790

zefhemel opened this issue Mar 5, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@zefhemel
Copy link
Collaborator

zefhemel commented Mar 5, 2024

Inspired by #786:

Perhaps we should have space-style in addition to space-script but containing CSS that is included on the page, similar to https://silverbullet.md/STYLES

For instance, as follows:

```space-style
#sb-root {
   --editor-font: "Courier" !important;
}

```

Rationale: It would be nice to be able to add custom SilverBullet CSS across multiple pages, not just one as supported right now with the customStyles setting. This would allow for https://silverbullet.md/Libraries that contain:

For the future: it would then also be nice to more easily attach custom styles to page elements. I'm open to ideas for how this could work, the most obvious candidate would be this: #702

@zefhemel zefhemel added the enhancement New feature or request label Mar 5, 2024
@zefhemel
Copy link
Collaborator Author

zefhemel commented Mar 5, 2024

Also related: #692

@NeilHanlon
Copy link

I am in support of this idea--specifically one of my use cases is that I often create diagrams using PlantUML and/or Mermaid syntax, and being able to display those full-screen (or side-by-side..) would be a great addition which I could implement in some way with this styling.

@zefhemel
Copy link
Collaborator Author

zefhemel commented Mar 9, 2024

This is now implemented by @onespaceman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants