Active
Project:
CSS Watch
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
11 Feb 2011 at 03:19 UTC
Updated:
17 Feb 2011 at 12:49 UTC
Can you please make this work with CSS Injector http://drupal.org/project/css_injector
CSS Injector is the quickest/ easiest way to edit css files through an on-site UI. Having CSS Watch watch css injector would make for much quicker edits.
COOL MODULE! Thanks!
Comments
Comment #1
Dustin Currie commentedUh, wow. Yes! @eaton made me a co-maintainer of that project recently. I didn't think of integration between the two!
Comment #2
Dustin Currie commentedComment #3
TimelessDomain commentedGreat! Looking forward to it! I didn't know exactly where to put these following ideas, but it seems like you (Dustin) are at the cutting edge of css modules for drupal, so i just thought i would get them into your mind...
CSS Freeze & CSS Diff. CSS Freeze would take a snapshot of all current css files & would then be able to revert to & back from these "frozen" states/ past revisions. CSS Diff would show the difference between any 2+ CSS Freeze snapshots.
The CSS Freeze would be possible now thanks to CSS Watch monitoring a specific list of css files. This list would be passed to css freeze. Whenever a CSS Freeze snapshot needs to be taken - these monitored css files could just be copied/ duplicated into a sub-folder (which is named as whatever you label the particular snapshot as OR by date (default)). Then whenever you want to re-enable a past CSS Freeze Snapshot, these old css files would just be copied to overwrite the current ones. CSS Diff's features are relatively implied at this point (but having the ability to quickly toggle the theme back & forth in between diff revisions would be great)
Eventually css freeze could provide importable/exportable packages of css files. Then people would be able to build huge databases of css mods (CSS Freeze Snapshots) for each specific drupal theme ( http://drupal.org/project/themes ) -> which would be a very valuable resource to share!
Thanks
Comment #4
Dustin Currie commented@TimelessDomain
I'm not sure I understand where you are getting at.
Both of those seem to be jobs best handled by a VCS like git. I'd be wary of encouraging people to use this instead of, as opposed addition to, source control.
Am I missing how this is different than what a VCS gives you?
Comment #5
TimelessDomain commentedCSS Freeze may be better renamed CSS Version Control System (CSS VCS), or CSS Snapshot.
A general VCS (version control systems) solution would be ideal for people designing sites off-line or on their own server, but a lot of people use shared hosts & build websites live on the internet. I know that this is not good practice, but it can be very quick to copy/ paste websites & then mod them in this way. With a VCS, wouldn't the WHOLE site need to be reverted back & forth (between versions)?
What if the changes are being made to a live site & only the css should be reverted back & forth (as to avoid losing any new content created during modifications).?
Furthermore, it would take much longer to change a site version w/ VCS rather than using the method outlined (simple css file overwrite auto-updated w/ the css watcher & css freeze)
The best feature that this would provide is importable & exportable packages of css files -> that can then be shared among the drupal community to quickly mod popular themes. It would be hard to share css files w/ a general VCS, because there would be far too many other unneeded files & there is no established drupal system for sharing theme-specific add-on css files (yet).
Idea for implementation: you could have a fixed overlay link in the upper corner that would allow you to take a snapshot w/ a modal frame pop-up for renaming it & for viewing/ controlling a directory of past snapshots. The importing / exporting would be provided easily due to the fact that CSS Watch has a list of specific css files, & the CSS VCS would be the combination of these files identified (stored in folders) by the date or a custom name. The CSS Diff will have to wait until the CSS VCS is done.