{"id":18790,"date":"2012-06-26T17:09:02","date_gmt":"2012-06-26T17:09:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/rc-css\/"},"modified":"2012-06-27T05:25:27","modified_gmt":"2012-06-27T05:25:27","slug":"rc-css","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/rc-css\/","author":9719699,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.4.2","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"rc-CSS","header_author":"Richard Carlier","header_description":"","assets_banners_color":"f6f0ff","last_updated":"2012-06-27 05:25:27","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/afsep.fr\/faire-don","header_plugin_uri":"http:\/\/www.rcarlier.fr\/wordpress\/rc_css.php","header_author_uri":"http:\/\/www.richardcarlier.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1393,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>No upgrade yet.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"564474","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566901","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1566901","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566901","resolution":"1","location":"plugin"}},"screenshots":{"1":"header.php, before\/after using rc_css plugin","2":"example (excerpt) of <code>rc_css generated.css<\/code> stylesheet (no indentation, no comment, @media...)","3":"option screen..."}},"plugin_section":[],"plugin_tags":[356,11415,52566,52567,606],"plugin_category":[59],"plugin_contributors":[129761],"plugin_business_model":[],"class_list":["post-18790","plugin","type-plugin","status-closed","hentry","plugin_tags-css","plugin_tags-media-query","plugin_tags-merge-stylesheet","plugin_tags-optimize-stylesheet","plugin_tags-responsive","plugin_category-utilities-and-tools","plugin_contributors-richnou","plugin_committers-richnou"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/rc-css_f6f0ff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/rc-css\/trunk\/screenshot-1.png?rev=1566901","caption":"header.php, before\/after using rc_css plugin"},{"src":"https:\/\/ps.w.org\/rc-css\/trunk\/screenshot-2.png?rev=1566901","caption":"example (excerpt) of <code>rc_css generated.css<\/code> stylesheet (no indentation, no comment, @media...)"},{"src":"https:\/\/ps.w.org\/rc-css\/trunk\/screenshot-3.png?rev=1566901","caption":"option screen..."}],"raw_content":"<!--section=description-->\n<p>Rather than having several calls to several CSS, it is better for your visitors\nto have only one stylesheet. This speeds up load times, allows a more efficient cache management.<\/p>\n\n<p>But for developing the CSS, it is often preferable to manage multiple\nspecific files, specialized (one for reset, one for print version, another for small screens, etc..)<\/p>\n\n<p>The purpose of this plugin is to allow you to work with various files, but merge them into \none single file when the browser need it.<\/p>\n\n<p>It can be generate each time (during development) or use a cache-file when finished.<\/p>\n\n<p>It will optimize the CSS by removing all unnecessary characters that increase the \nCSS (tabs, spaces, line breaks ...).<\/p>\n\n<p>All comments will be deleted - but you can insert a few lines  at the top, to specify such a \ncopyright ...<\/p>\n\n<h4>Credits<\/h4>\n\n<p>Author: <a href=\"http:\/\/www.richardcarlier.com\/\">Richard Carlier<\/a><\/p>\n\n<p>Plugin URI: <a href=\"http:\/\/www.rcarlier.fr\/wordpress\/rc_css.php\">rc_CSS<\/a><\/p>\n\n<p>Thanks: Mathieu Bouillot (The idea of this plugin came after discussion with him ...)<\/p>\n\n<p>Donate: Not for me, but for <a href=\"http:\/\/afsep.fr\/faire-don\">French Multiple Sclerosis Society<\/a>, or equivalent...<\/p>\n\n<!--section=installation-->\n<p>Upload <code>rc_css\/<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/p>\n\n<p>Activate the plugin through the <code>Plugins<\/code> menu in WordPress<\/p>\n\n<p>Place all your CSS in your theme directory (as usual) including style.css with Wordpress comments.<\/p>\n\n<p>Generaly:\n    wp-content\/themes\/YOURTHEME\/style.css\n    wp-content\/themes\/YOURTHEME\/reset.css\n    wp-content\/themes\/YOURTHEME\/print.css\n    wp-content\/themes\/YOURTHEME\/mobile.css\n    wp-content\/themes\/YOURTHEME\/imgs\/background.png<\/p>\n\n<p>Create an empty file called rc_css_style.css in this directory (or copy the one included),\nand put 0666 permission (PHP need to rewrite this file).<\/p>\n\n<p>In your <code>header.php<\/code>, replace (for example):\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;\/reset.css\" type=\"text\/css\" \/&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;\/print.css\" type=\"text\/css\" media=\"print\" \/&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;\/mobile.css\" type=\"text\/css\" media=\"screen and (max-width: 400px)\" \/&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;\/style.css\" type=\"text\/css\" media=\"all\" \/&gt;<\/p>\n\n<p>by:\n    <\/p>\n\n<p>Order is important (for your CSS, as usual...). The function <code>rc_css_echo_style()<\/code> should be at the end.<\/p>\n\n<p>Optionnaly, you can go to \"Admin\" &gt; \"Appareance\" &gt; \"rc_CSS - Merge and optimize CSS\" \nto specify comments that will be added at the top of css.<\/p>\n\n<h4>Codex<\/h4>\n\n<pre><code>rc_css_enqueue_style( $css_filename , $css_media );\n    $css_filename(string) : css filename, located in wp-content\/themes\/YOURTHEME\/\n    $css_media(string)(optional) : media query ( see http:\/\/www.w3.org\/TR\/css3-mediaqueries\/ ) or all by default\n\nrc_css_echo_style( $generate );\n    $generate (boolean)(optional) : create file (1\/True) or use existing file (0\/False)\n        - during development =&gt; true\n        - for exploitation =&gt; false (or nothing)\n        - if true, it's create a file\n            wp-content\/themes\/YOURTHEME\/rc_css_style.css\n<\/code><\/pre>\n\n<!--section=faq-->\n<p>FATAL ERROR ?<\/p>\n\n<ul>\n<li>Verify than your rc_css_style.css is located in you theme directory.<\/li>\n<li>Verify the chmod of it (0666 - need to be writable).<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<p>1.0 - This is version 1...<\/p>","raw_excerpt":"Your several stylesheets will be merged into a single compressed file, to optimize loading times for your users.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18790"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/richnou"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18790"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18790"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18790"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18790"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18790"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}