<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stéphane Richin, Auteur à Ice Development</title>
	<atom:link href="https://www.ice-dev.com/en/author/stephane-richin/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ice-dev.com/author/stephane-richin/</link>
	<description>agence web Lyon</description>
	<lastBuildDate>Fri, 20 Nov 2015 13:33:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>SASS &#8211; Lesson 5 : Conditions and Loops</title>
		<link>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-5-conditions-and-loops/</link>
					<comments>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-5-conditions-and-loops/#respond</comments>
		
		<dc:creator><![CDATA[Stéphane Richin]]></dc:creator>
		<pubDate>Fri, 20 Nov 2015 13:33:02 +0000</pubDate>
				<category><![CDATA[HTML/CSS/JS integration]]></category>
		<guid isPermaLink="false">https://www.ice-dev.com/non-classifiee/sass-lesson-5-conditions-and-loops/</guid>

					<description><![CDATA[<p>Use loops and conditions for generating your style sheets with SASS.</p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-5-conditions-and-loops/">SASS &#8211; Lesson 5 : Conditions and Loops</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Conditions</h2>
<p>With conditions, it&#8217;s possible to check certain information in our SCSS file. For example, if the color is equal to <b>orange</b>, then we define new parameters:</p>
<p><script src="https://gist.github.com/reficedev/e14756c0f125fd023731.js"></script></p>
<p>Generated CSS :</p>
<p><script src="https://gist.github.com/reficedev/da9ba1594c9c96b31516.js"></script></p>
<p>Thanks to this condition, it&#8217;s possible to change the value of <b>$shadow</b> by setting <b>$color</b>. In this example, we check the value of <b>$color</b>, however, several other comparisons are possible. Discover all the <a href="http://sass-lang.com/documentation/file.SASS_REFERENCE.html#control_directives" target="_blank" rel="noopener">control directives</a> of SASS.</p>
<h2>Loops</h2>
<p>Loops allow you to repeat an instruction as many times as you want.</p>
<h3>Loops @for</h3>
<p><script src="https://gist.github.com/reficedev/45fa0f2303eabe80de32.js"></script></p>
<p>Generated CSS :</p>
<p><script src="https://gist.github.com/reficedev/75c0cea313bcc134b3b1.js"></script></p>
<h3>Loops @while</h3>
<p><script src="https://gist.github.com/reficedev/a06bc62fcb4991362022.js"></script></p>
<p>Generated CSS :</p>
<p><script src="https://gist.github.com/reficedev/cd1435c6a191e392b2c0.js"></script></p>
<h3>Loops @each</h3>
<p><script src="https://gist.github.com/reficedev/11f84a9547d0db3cd69c.js"></script></p>
<p>Generated CSS :</p>
<p><script src="https://gist.github.com/reficedev/e82a7527f949257fefa5.js"></script></p>
<p>This list can be defined in a variable (<a href="http://php.net/manual/fr/function.array.php" target="_blank" rel="noopener">comparable to arrays in PHP</a>). Each value must be separated by a comma.<br />
Example: <strong>$var: puma, sea-slug, egret, salamander</strong>;</p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-5-conditions-and-loops/">SASS &#8211; Lesson 5 : Conditions and Loops</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-5-conditions-and-loops/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SASS &#8211; Lesson 4 : Mixins and Functions</title>
		<link>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-4-mixins-and-functions/</link>
					<comments>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-4-mixins-and-functions/#respond</comments>
		
		<dc:creator><![CDATA[Stéphane Richin]]></dc:creator>
		<pubDate>Fri, 20 Nov 2015 13:19:20 +0000</pubDate>
				<category><![CDATA[HTML/CSS/JS integration]]></category>
		<guid isPermaLink="false">https://www.ice-dev.com/non-classifiee/sass-lesson-4-mixins-and-functions/</guid>

					<description><![CDATA[<p>With the mixins and functions of SASS and Compass, discover a simple and fast way to generate your CSS styles. </p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-4-mixins-and-functions/">SASS &#8211; Lesson 4 : Mixins and Functions</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Mixins</h2>
<p>A mixin is a piece of customizable and reusable code anywhere in your SASS file. Like a function, a mixin can take parameters.</p>
<p><script src="https://gist.github.com/reficedev/7519be89c647dda57b04.js"></script></p>
<h3>Mixin with parameters</h3>
<p>Thanks to mixins, you will be able to generate several dozen lines of CSS with a single (configurable or not) line in SCSS !</p>
<p>Example :</p>
<p><script src="https://gist.github.com/reficedev/56a854fb9eb65a1b915b.js"></script></p>
<p>Compiled CSS file:</p>
<p><script src="https://gist.github.com/reficedev/fd82dc34fc49f2f89d77.js"></script></p>
<p>SASS does not integrate any predefined mixin. However, this is one of the strengths of Compass, which offers a hundred mixins ready to use: <a href="http://compass-style.org/index/mixins/" target="_blank" rel="noopener">Compass Mixins</a>.</p>
<h2>Functions</h2>
<p>The difference between a mixin and a function is the result returned once compiled. A mixin can generate several lines of CSS code while a function will only return a value.</p>
<p>Thanks to functions, you will be able to calculate the percentage of a block, convert a &#8220;px&#8221; unit to &#8220;em/rem,&#8221; or even lighten a color.</p>
<p><script src="https://gist.github.com/reficedev/5ad5390da7da3eb05039.js"></script></p>
<p>Find the complete list of <a href="http://compass-style.org/index/functions/" target="_blank" rel="noopener">SASS and Compass functions</a>.</p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-4-mixins-and-functions/">SASS &#8211; Lesson 4 : Mixins and Functions</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-4-mixins-and-functions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SASS &#8211; Lesson 3 : Variables</title>
		<link>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-3-variables/</link>
					<comments>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-3-variables/#respond</comments>
		
		<dc:creator><![CDATA[Stéphane Richin]]></dc:creator>
		<pubDate>Fri, 20 Nov 2015 13:01:37 +0000</pubDate>
				<category><![CDATA[HTML/CSS/JS integration]]></category>
		<guid isPermaLink="false">https://www.ice-dev.com/non-classifiee/sass-lesson-3-variables/</guid>

					<description><![CDATA[<p>One of the main advantages of SASS is the possibility of using variables. Discover some common and really practical uses ! </p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-3-variables/">SASS &#8211; Lesson 3 : Variables</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A variable can hold several types of information: a color code, a calculation, or even a true/false value (boolean).</p>
<p>To use a variable, you must declare it with the &#8220;$&#8221; sign followed by its name and value: <b>$background: rgba(black, .2)</b>;</p>
<p>Once declared, the variable can be called anywhere in the document, even if it is defined in a file imported using @import.</p>
<p><script src="https://gist.github.com/reficedev/915b06553153bedb7327.js"></script></p>
<p><script src="https://gist.github.com/reficedev/efb85df525b83105f36c.js"></script></p>
<p>Generated CSS code :</p>
<p><script src="https://gist.github.com/reficedev/f231fe6816db78fbbb36.js"></script></p>
<p>The use of a variable has no limit; you can call it as many times as you wish. It is also possible to use a variable in a mixin, a function, or loops.</p>
<p><script src="https://gist.github.com/reficedev/6ad80ea38055cf0d4372.js"></script></p>
<h2>Use case of a boolean variable in SASS</h2>
<p>In the <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-2-divide-and-conquer-refactoring/">SASS – Lesson 2</a> post, we explained that it&#8217;s possible to organize your CSS in a modular way.<br />
Thanks to <a href="https://fr.wikipedia.org/wiki/Bool%C3%A9en" target="_blank" rel="noopener">boolean variables</a>, you can activate or deactivate a partial or a portion of SASS code.</p>
<p><script src="https://gist.github.com/reficedev/ac80bee78cc3a54c1019.js"></script></p>
<p>With $use-slider set to &#8220;false&#8221;, the code inside the condition will not be compiled.</p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-3-variables/">SASS &#8211; Lesson 3 : Variables</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-3-variables/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SASS &#8211; Lesson 2 : Divide and conquer, refactoring</title>
		<link>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-2-divide-and-conquer-refactoring/</link>
					<comments>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-2-divide-and-conquer-refactoring/#respond</comments>
		
		<dc:creator><![CDATA[Stéphane Richin]]></dc:creator>
		<pubDate>Fri, 20 Nov 2015 12:56:05 +0000</pubDate>
				<category><![CDATA[HTML/CSS/JS integration]]></category>
		<guid isPermaLink="false">https://www.ice-dev.com/non-classifiee/sass-lesson-2-divide-and-conquer-refactoring/</guid>

					<description><![CDATA[<p>Organize your styles into multiple files, then merge them with SASS and its partials. </p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-2-divide-and-conquer-refactoring/">SASS &#8211; Lesson 2 : Divide and conquer, refactoring</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In CSS, dividing style sheets is a practice that is discouraged because it decreases site performance by multiplying the number of requests to the server.<br />
We often constrain ourselves to use a single file of several thousand lines, which is unreadable and difficult to maintain.</p>
<p>With SASS, it&#8217;s possible to organize your project into multiple files, which will be imported and compiled into <strong>a single</strong> minified CSS file.<br />
This is made possible thanks to <a href="http://sass-lang.com/documentation/file.SASS_REFERENCE.html#import" target="_blank" rel="noopener">partials</a>.</p>
<h2>SASS partials</h2>
<p>The name of a partial always begins with an underscore.<br />
Ex : _reset.scss</p>
<p>Without this underscore, SASS would generate an additional file reset.css.</p>
<p>SCSS code from the _reset.scss file :</p>
<p><script src="https://gist.github.com/reficedev/6976739de57e0a4fe27f.js"></script></p>
<p>SCSS code from the main file style.scss :</p>
<p><script src="https://gist.github.com/reficedev/66768adbfdabd9d8c5a3.js"></script></p>
<p>Compiled CSS :</p>
<p><script src="https://gist.github.com/reficedev/4af854863c0eb8a07425.js"></script></p>
<p>Thanks to the @import rule, you can opt for a modular organization, which will allow you to have a better-structured code that is easier to maintain (which is found in the <a href="http://www.nicoespeon.com/fr/2013/05/tombez-pour-smacss/" target="_blank" rel="noopener">SMACSS philosophy</a>).</p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-2-divide-and-conquer-refactoring/">SASS &#8211; Lesson 2 : Divide and conquer, refactoring</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-2-divide-and-conquer-refactoring/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SASS &#8211; Lesson 1 : Nesting Rules</title>
		<link>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-1-nesting-rules/</link>
					<comments>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-1-nesting-rules/#respond</comments>
		
		<dc:creator><![CDATA[Stéphane Richin]]></dc:creator>
		<pubDate>Fri, 20 Nov 2015 12:35:17 +0000</pubDate>
				<category><![CDATA[HTML/CSS/JS integration]]></category>
		<guid isPermaLink="false">https://www.ice-dev.com/non-classifiee/sass-lesson-1-nesting-rules/</guid>

					<description><![CDATA[<p>Discover the benefits of code nesting with SASS and simplify the writing of your CSS rules. </p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-1-nesting-rules/">SASS &#8211; Lesson 1 : Nesting Rules</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Nesting rules is the main feature of SASS. Thanks to it, writing your CSS code is much faster, simpler, and more understandable based on the <a href="https://fr.wikipedia.org/wiki/Ne_vous_r%C3%A9p%C3%A9tez_pas" target="_blank" rel="noopener">DRY</a> (Don’t Repeat Yourself) principle.</p>
<p>Rule nesting example with a link color and its hover and focus states :</p>
<p><script src="https://gist.github.com/reficedev/a6669d76ba8af579fcd2.js"></script></p>
<p>Compiled CSS :</p>
<p><script src="https://gist.github.com/reficedev/369a6dc7d81bc5097071.js"></script></p>
<p>Nesting will help you have a clean, logical, and well-organized code, which should be easier to maintain over time.</p>
<p>Of course, it&#8217;s possible to use nesting in any case. Example with media queries : Example with media queries :</p>
<p><script src="https://gist.github.com/reficedev/09b48983210f1746ea41.js"></script></p>
<p>Compiled CSS :</p>
<p><script src="https://gist.github.com/reficedev/ea3a4861d2ae1b47af0d.js"></script></p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-1-nesting-rules/">SASS &#8211; Lesson 1 : Nesting Rules</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ice-dev.com/en/html-css-js-integration/sass-lesson-1-nesting-rules/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Generate your style sheets more quickly with CSS Hat</title>
		<link>https://www.ice-dev.com/en/html-css-js-integration/generate-your-style-sheets-more-quickly-with-css-hat/</link>
					<comments>https://www.ice-dev.com/en/html-css-js-integration/generate-your-style-sheets-more-quickly-with-css-hat/#respond</comments>
		
		<dc:creator><![CDATA[Stéphane Richin]]></dc:creator>
		<pubDate>Fri, 20 Nov 2015 10:51:51 +0000</pubDate>
				<category><![CDATA[HTML/CSS/JS integration]]></category>
		<guid isPermaLink="false">https://www.ice-dev.com/non-classifiee/generate-your-style-sheets-more-quickly-with-css-hat/</guid>

					<description><![CDATA[<p>CSS Hat is a paid Photoshop plugin that allows for faster generation of CSS code.</p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/generate-your-style-sheets-more-quickly-with-css-hat/">Generate your style sheets more quickly with CSS Hat</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>What is CSS Hat ?</h2>
<p>CSS Hat is a paid extension ($34.99) that allows you to produce your CSS much faster !</p>
<p>Here&#8217;s an example of its use in the HTML slicing of the main menu in red below :</p>
<p><img decoding="async" src="https://www.ice-dev.com/wp-content/uploads/2015/11/screenshot-css-hat.jpg" alt="Screenshot CSS Hat"></p>
<ol>
<li>Select your layer (note, the layer must contain styles! If you use a merged layer, the plugin will not work)</li>
<li>Open the dedicated CSS Hat window</li>
<li>Click on the &#8220;Copy&#8221; button</li>
</ol>
<h2>CSS Hat allows</h2>
<ul>
<li>Generation in the following languages: classic CSS, LESS, SCSS (Compass), SASS, and Stylus</li>
<li>Browser prefix generation</li>
<li>Layer dimension generation</li>
<li>CSS class generation</li>
</ul>
<h2>Where to find it ?</h2>
<p>To buy CSS Hat, visit the official plugin website: <a href="http://csshat.com/" target="_blank" rel="noopener">csshat.com</a>.</p>
<p>CSS Hat will save you a lot of time during your slicing, especially for complex buttons or for gradient backgrounds, as in the example above.</p>
<p>L’article <a href="https://www.ice-dev.com/en/html-css-js-integration/generate-your-style-sheets-more-quickly-with-css-hat/">Generate your style sheets more quickly with CSS Hat</a> est apparu en premier sur <a href="https://www.ice-dev.com/en/">Ice Development</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ice-dev.com/en/html-css-js-integration/generate-your-style-sheets-more-quickly-with-css-hat/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
