-
-
Notifications
You must be signed in to change notification settings - Fork 788
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
✨ Allow custom styles system wide #4151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can’t we just have a custom.css always in the repo but empty AND in the .gitignore to avoid noise?
This will avoid having to define some extra config to use it.
@j0k3r If you think it’s better, I’m okay with that. I’ll change that tonight. |
Unfortunately, once you have commit a file, I can try to create a (twig extension to check if the file exists](https://stackoverflow.com/questions/16898628/symfony2-and-twig-check-if-an-asset-exists) though, but it will take me some time. |
You just have to do git add -f web/custom.css |
But then, when people add rules in it, git will say that the file has changed, it won’t be ignored. |
Try it it’ll be ignored |
I tried. It’s not ignored. luc@vm: ~/wallabag test± git log --name-status HEAD^..HEAD
commit a03bb905f2391728a03623a03582ec28bf7023e4 (HEAD -> test, origin/test)
Author: Luc Didry <luc@didry.org>
Date: Thu Oct 10 23:36:50 2019 +0200
Test with empty custom.css
M app/config/config.yml
M app/config/parameters.yml.dist
M src/Wallabag/CoreBundle/Resources/views/base.html.twig
A web/custom.css
luc@vm: ~/wallabag test± git status
Sur la branche test
Votre branche est à jour avec 'origin/test'.
rien à valider, la copie de travail est propre
luc@vm: ~/wallabag test± tail -n 1 .gitignore
web/custom.css
luc@vm: ~/wallabag test± echo ".side-nav{color:green;}" > web/custom.css
luc@vm: ~/wallabag test(+1/-0)± git status
Sur la branche test
Votre branche est à jour avec 'origin/test'.
Modifications qui ne seront pas validées :
(utilisez "git add <fichier>..." pour mettre à jour ce qui sera validé)
(utilisez "git checkout -- <fichier>..." pour annuler les modifications dans la copie de travail)
modifié : web/custom.css
aucune modification n'a été ajoutée à la validation (utilisez "git add" ou "git commit -a")
luc@vm: ~/wallabag test(+1/-0)± |
Wow I was sure it works. 😞 But then is it acceptable to always load the |
I think not: power user will ask them-self why they have a 404 call on each page. But I thought about another way: what about |
That might do the trick. |
Should I put that in |
I’ll put it in GNUmakefile as a new target: we need that for |
Done |
Should fix #4060
custom_css
inapp/config/parameters.yml
, available for twigcustom.css
inweb/
directory: it will be used by Wallabag.The green sidebar of the screenshot is created by
custom.css
.