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

[Feature]: Custom CSS loading / documentation #176

Open
Kangie opened this issue Aug 18, 2023 · 2 comments
Open

[Feature]: Custom CSS loading / documentation #176

Kangie opened this issue Aug 18, 2023 · 2 comments

Comments

@Kangie
Copy link
Contributor

Kangie commented Aug 18, 2023

It would be fantastic if there was some documentation around customising the look-and-feel of the frontend.

For the most part I feel like this can be accomplished by overriding the provided CSS, but some documentation around this (or envvar support for something like CSS_LOCATION or THEME_LOCATION) would be lovely. :)

@mtlynch
Copy link
Owner

mtlynch commented Aug 18, 2023

Thanks for suggesting this!

Can you tell me more about the scenario you have in mind?

The only part that of the app that CSS influences is the homepage, which users don't actually see in my use of logpaste:

image

The log URLs themselves (like http://logpaste.com/JW6T8VOM) are just plaintext, so we wouldn't be able to style them with cSS.

@Kangie
Copy link
Contributor Author

Kangie commented Aug 22, 2023

Can you tell me more about the scenario you have in mind?

The only part that of the app that CSS influences is the homepage, which users don't actually see in my use of logpaste:

Yeah, basically just being able to easily apply some custom CSS to the homepage so that users that decide to visit can be greeted by a (very slightly) customised page. It'd be easy enough to do by injecting stuff into the container or building my own, but for small things like this mounting CSS overrides into a container and setting a variable (or just overwriting the default CSS with docs) seems like a reasonable way to accomplish that without sacrificing minimalism.

I'm really envisioning simple things like being able to control the display of some of the elements of the light and dark themes:

  • backgrounds
  • headings
  • body text
  • anchors
  • code boxes
  • etc.

Here's a (terrible!) example that I came up with messing with the browser inspector for a few minutes.

image

The log URLs themselves (like http://logpaste.com/JW6T8VOM) are just plaintext, so we wouldn't be able to style them with cSS.

Yeah, not much that can be done there!

@Kangie Kangie mentioned this issue Oct 7, 2023
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