-
Notifications
You must be signed in to change notification settings - Fork 6
No shared CSS #1
Comments
Thanks for the heads-up. First, you can delete Unfortunately, Kirby doesn't make it easy for plugin authors to add a CSS file to the panel, which is why I'm using |
I actually have already done a quick (and probably not the cleanest) fix. Might as well fork and create a pull request, if you wish. But you may do it yourself, here's everything you'll need: How to store plugin assets | Kirby. Especially this:
So you just create Any additional styles might be then added to a particular template using Also, thanks for the plugin. Great work you're doing there! Keep it up for sure :) |
Thanks @mciszczon! I'm implementing it as we speak. |
Amongst a bunch of other things, it's fixed now in 1.2.0! |
This is not a bug, but there's almost exactly the same CSS stored in three different places.
site/plugins/content-viewer/widget/template.php
site/plugins/content-viewer/templates/content-viewer.php
site/plugins/content-viewer/templates/content-viewer-source.php
Of them, only
site/plugins/content-viewer/templates/content-viewer.php
has few CSS rules which are not shared, but it would be easy to just overwrite them (as it's being done already).The main problem is that you have to edit all these 3 files in order to change styling in all of these 3 views. Of course, sometimes you'd want to have different styles for each one. But that's perfectly fine if you have a shared base-style and then can easily build upon it or just overwrite what you want.
The text was updated successfully, but these errors were encountered: