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
✨ Add option for custom CSS to Customization Settings #364
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Very interesting! Can you give me an example of a custom css that could be used ? |
Here's my quick and dirty CSS for displaying the modules on mobile devices:
|
Interesting. Before I merge could you make a small markdown formatted text about how to set up the custom CSS field and where to find the class names to override ? I'll publish it in the docs |
I'm not quite sure if I understand what you mean by setting up the custom CSS. It's just a textarea where one can write CSS code. As for class names, I personally don't think something like that would be relevant for the docs, especially considering the names are not very expressive. E.g. the calendar module would be accessed by |
You're right. I'll review and merge |
PR Will need to be reworked to use i18n correctly btw. Also not a bad idea to display the css in mono type |
@wieli99 Can you implement translations, so we can review and merge this? |
Not sure if I did that right - would that work for you? |
No, I think there shouldn't be any changes besides yours. Maybe a rebase wasn't needed? - Sorry, my bad. Do we have to revert @ajnart ? Edit: Maybe I'm just bad at re-basing? I'm still unsure whether a rebase was needed here. I thought that since this was opened before changes were made on |
I think you made your original branch out of master so the rebase messed the order. You can:
|
(cherry picked from commit 0c62be8fedfd2b8015d0d1bb5b9acc5dd1ba22ac)
(cherry picked from commit 20e1cc3a1bae59ee401539e9de07f500a37fc7b4)
Hope that did the trick :) |
it did :) I still don't understand how you get the classes names tho, i wanted to try out the feature but couldn't get any significant changes |
Perfect :) I just 'Inspect Element' the page and choose whatever class / element I want to change. For example I sadly couldn't find any documentation on the classnames that mantine assigns, so there's probably no easier way unless you want to manually assign more expressive classnames / ids in the code. |
Alright thank you for this. Would you mind writing a small markdown guide on how to use the Custom CSS field ? So that I can add it to the docs. It will also be used in the future for tooltips |
✨ Add option for custom CSS to Customization Settings
Category
Overview
Issue Number
Screenshot