hello,I think it would be a nice feature to overwrite all template.css files with an custom.css. So I have written a small plugin for the Joomla Core to do this.
So you can, with this file (custom.css), overwrite all template css files (e.g. the template.css) and this file will not be touched by an eventual update.
This feature works for all templates e.g. beez3/protostar/isis/hathor if the custom.css exists at /templates/"templatename"/css
The Plugins loads the file (custom.css) if it the file exists with the plugin event "OnBeforeCompileHead()"
If you want to test this feature I have add an zip file at the JoomlaCode Tracker.
I hope you can test and comment my first Joomla! feature.
JoomlaCode Tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31135
Github PR:
https://github.com/joomla/joomla-cms/pull/1259
Github diff:
https://github.com/joomla/joomla-cms/pull/1259.diffRegards,
Tobias
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cm...@googlegroups.com.
To post to this group, send an email to joomla-...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
We launched our new template club nuevvo.com on June 7 and the use of a custom.css file is one of the features of our templates - so we can make updating easier. It doesn't even require a Joomla! core change, just make template designers adopt this as a simple pattern.
I believe the thought behind this is by adding it to core the custom.css overrides not only survive template upgrades by also survive switching templates altogether, right?
On Monday, June 10, 2013, Matt Thomas wrote:
Agreed. This is the approach that I've used with Construct for years now and it's simple, easy to use and understand. Best of all, it survives upgrades.
Best,
Matt ThomasFounder betweenbrain™Lead Developer Construct Template Development FrameworkPhone: 203.632.9322
Twitter: @betweenbrainGithub: https://github.com/betweenbrain
On Mon, Jun 10, 2013 at 8:51 AM, Fotis Evangelou <fevan...@gmail.com> wrote:
We launched our new template club nuevvo.com on June 7 and the use of a custom.css file is one of the features of our templates - so we can make updating easier. It doesn't even require a Joomla! core change, just make template designers adopt this as a simple pattern.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cms+unsubscribe@googlegroups.com.
To post to this group, send an email to joomla-dev-cms@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cms+unsubscribe@googlegroups.com.
To post to this group, send an email to joomla-dev-cms@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
--
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3345 / Virus Database: 3199/6401 - Release Date: 06/11/13
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cm...@googlegroups.com.
To post to this group, send an email to joomla-...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-cms.
For more options, visit https://groups.google.com/groups/opt_out.
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3345 / Virus Database: 3199/6413 - Release Date: 06/15/13
--
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3345 / Virus Database: 3199/6413 - Release Date: 06/15/13
--
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3345 / Virus Database: 3199/6413 - Release Date: 06/15/13
--
I tend to agree with Hannes. We need to ask ourselves if we need yet another features in core. It's nothing against this feature, but the #1 complaint I hear from clients is that the sheer number of configuration options in core is overwhelming.
In my opinion, we need to gather accurate data on what is being used, and if it doesn't meet the 80% rule, we need to get it out of core. Of course, that's just my opinion.
If it does get included, it should be implemented as a plugin, disabled by default.
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain
Composed and delivered courtesy of Nexus 7.
I would rather prefer if we were to invest into an SCSS compiler and encourage template devs to use that instead of introducing yet another css file... correctly used, that would solve the issue that you are describing.
I'm sorry, but I doubt that people will use this feature properly. Either they are experienced enough and add their custom.css file anyway by hand, or (the vast majority) they don't have a real clue about the cascading part of css and are only able to see the property in firebug, read the line number and edit it in that file then and there.
Hannes
--
I would rather prefer if we were to invest into an SCSS compiler and encourage template devs to use that instead of introducing yet another css file... correctly used, that would solve the issue that you are describing.
I'm sorry, but I doubt that people will use this feature properly. Either they are experienced enough and add their custom.css file anyway by hand, or (the vast majority) they don't have a real clue about the cascading part of css and are only able to see the property in firebug, read the line number and edit it in that file then and there.
Hi,thanks piotr_cz for pointing to the plugin and your client-side debugging feature.@hackwarAs piotr_cz already said there is no need to compile the .css on the client side as lessphp precompiles it (with caching, so only when .less files change). This plugin can be used during development and I recommend disabling it on production site until you change your .less files again (no need to waste ressources).
@allI already started a thread on platform list last year regarding a LESS compiler library for Joomla! - but unfortunately got no response. My main question is where to put the external lessphp library - I would assume that we can use the JMail package as boilerplate but I'm not sure if this is the correct way.Why a library for J!?As J! sticks with bootstrap and LESS files it would be great to let Joomla! compile .less files on demand. So e.g. we have an sitewide option on templates toa) automatically compile templates .less files (works similar as the plugin)b) a api where template devs can embed a "compile LESS files now" buttonDuring development this is really helpful to have the .less files compiled. What do you guys think - can we get it started?
Regarding custom.css:I think if we really use the power of LESS there is maybe no need for a custom.css. IMHO a custom.css is against the idea of the whole CSS evolution LESS introduced. A little bit more sense makes maybe a custom.less which is included in the main template.less -> so that it gets parsed by the less compiler and optimized and minified.
Exactly, some things are needed for interoperability not to mention that people should be empowered to control their own websites, currently quite difficult since you have to go to the file system even to add a precompiled package you download from the bootstrap site or bootswatch.One thing I'd point out is that we have for quite some time had an actual copy function for templates which means that never should you modify a core template, you should only modify a copy. Then you don't have to worry about having your work ruined by an update That means you do have to watch for security issues in the core templates that you've copied but those are few and far between.Elin
I've been working on this very thing for quite some time now, yes I'm horrendously slow, and its allowing me to create quite a unique piece rather simply. As Elin encouraged me to do, I'm going to try to rework my .css into LESS but while I'm developing I'm not smart enough to do so on the fly and the plugin doesn't allow me to continue using the custom.css while I do so. I'm not very bright so I probably won't succeed in COMPLETELY putting everything into LESS so i'll definitely need my custom.css to make everything function. infact, for me peronsally I due things probably dumb as the first few lines in my custom.css are
I don't know which one FoF uses. Andreas and I use the one which is also used by Joomla to build the Protostar and Isis template.css. So I'd think the RAD layer should use this one as well, if there is one to be included.
There was a thought of one day building out that JLess class properly (what else it would need, I don't know) and distributing the CMS with it and lessphp included, I just have no idea what happened to that thought.
--
Just saying: We already have a built-in editor for CSS files and for the index.php. Why not for LESS files? :)
--
You received this message because you are subscribed to a topic in the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/joomla-dev-cms/jo5pFTx4gpE/unsubscribe.
To unsubscribe from this group and all of its topics, send an email to joomla-dev-cm...@googlegroups.com.
I'm not against LESS (though I much prefer Sass), I'm against adding a compiler to Joomla's core. I don't think it should be possible to edit LESS files within Joomla, so I don't think we should include any compiler.
I don't think anyone would consider implementing a basic IDE *within joomla* to allow people to edit .php files from within the CMS (for the same reason I don't want to see a LESS compiler), so why do that for LESS? We're not recommending people edit files via FTP on a live server now are we?
When you want to work on a live site you should have to copy your local changes there, this is a good thing. There is no ctrl+z on a live server. When working locally you can simply have your compiler watch the LESS folder in your localhost environment and output the .css to the templates css folder, no copy/paste required. Crucially though, the compiler isn't using the resources of the local server and there's an undo option available.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cm...@googlegroups.com.