<?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>css &#8211; Kodono</title>
	<atom:link href="https://blog.kodono.info/wordpress/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.kodono.info/wordpress</link>
	<description>Pour tous les technophiles</description>
	<lastBuildDate>Thu, 15 Jun 2017 09:55:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>How to cache the CSS Fonts with Sharepoint</title>
		<link>https://blog.kodono.info/wordpress/2017/06/15/how-to-cache-the-css-fonts-with-sharepoint/</link>
					<comments>https://blog.kodono.info/wordpress/2017/06/15/how-to-cache-the-css-fonts-with-sharepoint/#respond</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Thu, 15 Jun 2017 09:36:20 +0000</pubDate>
				<category><![CDATA[Astuce]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Niveau débutant]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[sharepoint]]></category>
		<guid isPermaLink="false">https://blog.kodono.info/wordpress/?p=1807</guid>

					<description><![CDATA[If you use your own CSS file with your own CSS fonts, then we&#8217;ll notice that Sharepoint doesn&#8217;t send cache headers if you use the below CSS code: @font-face { font-family: 'Roboto'; src: url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.woff2') format('woff2'), url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.woff') format('woff'), url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; } To have this resource sent back from the Sharepoint server with [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you use your own CSS file with your own CSS fonts, then we&#8217;ll notice that Sharepoint doesn&#8217;t send cache headers if you use the below CSS code:</p>
<pre class="brush:css">
@font-face {
  font-family: 'Roboto';
  src: url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.woff2') format('woff2'),
       url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.woff') format('woff'),
       url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
</pre>
<p>To have this resource sent back from the Sharepoint server with cache headers, you just need to add <code>?ctag=0</code> at the end:</p>
<pre class="brush:css">
@font-face {
  font-family: 'Roboto';
  src: url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.woff2?ctag=0') format('woff2'),
       url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.woff?ctag=0') format('woff'),
       url('/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.ttf?ctag=0') format('truetype');
  font-weight: 400;
  font-style: normal;
}
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2017/06/15/how-to-cache-the-css-fonts-with-sharepoint/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Autosize a text to fit into a div in pure/native JavaScript</title>
		<link>https://blog.kodono.info/wordpress/2015/03/12/autosize-a-text-to-fit-into-a-div-in-purenative-javascript/</link>
					<comments>https://blog.kodono.info/wordpress/2015/03/12/autosize-a-text-to-fit-into-a-div-in-purenative-javascript/#comments</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Thu, 12 Mar 2015 08:44:38 +0000</pubDate>
				<category><![CDATA[Astuce]]></category>
		<category><![CDATA[Niveau intermédiaire]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=1470</guid>

					<description><![CDATA[I was looking for a very tiny and light solution to fit a text inside a box. The box&#8217; height and width are fixed. I only found some great solutions like BigText but I didn&#8217;t want to have jQuery loaded. Finally I found some code on StackOverflow and also at Coderwall. I created my own [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I was looking for a very tiny and light solution to fit a text inside a box. The box&#8217; height and width are fixed. I only found some great solutions like <a href="https://github.com/zachleat/BigText">BigText</a> but I didn&#8217;t want to have jQuery loaded.</p>
<p>Finally I found some code on StackOverflow and also at <a href="https://coderwall.com/p/_8jxgw/autoresize-text-to-fit-into-a-div-width-height">Coderwall</a>. I created my own solution that could only work with my own HTML code&#8230; but I share it here, maybe that could help someone else.</p>
<p>The HTML code:</p>
<pre class="brush:html">
  <div class="ribbon-front">
    <span>This is my text !</span>
  </div>
</pre>
<p>The related CSS code:</p>
<pre class="brush:css">
.ribbon-front { overflow:hidden }
</pre>
<p>And the JavaScript code:</p>
<pre class="brush:javascript">
var autoSizeText = function(selector) {
  "use strict";
  var el, elements, i, len, style, fontSize, IEoffsetHeight;
  elements = document.querySelectorAll(selector);
  if (elements.length &lt;= 0) return;
  
  for (i=0, len = elements.length; i &lt; len; i++) {
    el = elements[i];

    // we start from 0px and we grow by 0.5 until the content is too large
    fontSize=0;
    el.style.fontSize = "0px";
    // fix for all IE : I cache the offsetHeight, and if it becomes really bigger than the previous value, then we stop!
    IEoffsetHeight = el.offsetHeight;
    // check if our content is out its box
    while (el.scrollHeight===0 || el.scrollHeight >= el.offsetHeight) {
      fontSize += 0.5;
      el.style.fontSize = fontSize + 'px';

      if (el.offsetHeight - IEoffsetHeight > 10) break;
      IEoffsetHeight = el.offsetHeight;
    }
    el.style.fontSize = (fontSize - 0.5) + 'px';
  }
};
autoSizeText('.ribbon-front > span');
</pre>
<p>It works for IE8-IE10 and with all modern browsers.</p>
<p>You can see a demo at <a href="http://codepen.io/Aymkdn/pen/jEeaPV">codepen</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2015/03/12/autosize-a-text-to-fit-into-a-div-in-purenative-javascript/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Breadcrumb / steps in CSS that works from IE8 [CSS]</title>
		<link>https://blog.kodono.info/wordpress/2014/11/26/breadcrumb-steps-in-css-that-works-from-ie8-css/</link>
					<comments>https://blog.kodono.info/wordpress/2014/11/26/breadcrumb-steps-in-css-that-works-from-ie8-css/#respond</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Wed, 26 Nov 2014 10:14:06 +0000</pubDate>
				<category><![CDATA[Niveau débutant]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Web Design]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=1432</guid>

					<description><![CDATA[I was looking for a simple code for a step by step process indicator. I found a few things, but everyone seems to have forgotten about IE8&#8230; I need to support this old browser at work. So I did my own that I&#8217;m sharing here: File Uploaded &#8594; File Reviewed &#8594; File Approved And the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I was looking for a simple code for a step by step process indicator. I found a few things, but everyone seems to have forgotten about IE8&#8230; I need to support this old browser at work. So I did my own that I&#8217;m sharing here:</p>
<ul class="steps">
<li class="step complete">File Uploaded</li>
<li class="arrow">&rarr;</li>
<li class="step current">File Reviewed</li>
<li class="arrow">&rarr;</li>
<li class="step">File Approved</li>
</ul>
<style>
body {
  counter-reset:steps
}
ul.steps {
  margin:0;
  padding:0;
}
ul.steps li.step {
  background: none repeat scroll 0 0 lightgray;
  border-radius: 1em;
  color: white;
  display: inline-block;
  font-size: 14px;
  height: 4em;
  line-height: 4em;
  margin: 0 1em;
  position: relative;
  text-align: center;
  width: 9em;
}
ul.steps li.step:before {
  content: counter(steps, decimal) ". ";
  counter-increment: steps;
}
ul.steps li.step.complete:before {
  content: "&#x2714; ";
}
ul.steps li.step.complete {
  background-color: green;
}
ul.steps li.step.current {
  background-color:dodgerblue
}
ul.steps li.arrow {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
  color: black;
  display: inline-block;
  font-size: 28px;
  height: 46px;
  line-height: normal;
  margin: 0;
  width: auto;
}
</style>
<p>And the code:</p>
<pre class="brush:html">
&lt;ul class="steps">
  &lt;li class="step complete">File Uploaded&lt;/li>
  &lt;li class="arrow">&rarr;&lt;/li>
  &lt;li class="step current">File Reviewed&lt;/li>
  &lt;li class="arrow">&rarr;&lt;/li>
  &lt;li class="step">File Approved&lt;/li>
&lt;/ul>
</pre>
<pre class="brush:css">
&lt;style>
body {
  counter-reset:steps
}
ul.steps {
  margin:0;
  padding:0;
}
ul.steps li.step {
  background: none repeat scroll 0 0 lightgray;
  border-radius: 1em;
  color: white;
  display: inline-block;
  font-size: 14px;
  height: 4em;
  line-height: 4em;
  margin: 0 1em;
  position: relative;
  text-align: center;
  width: 9em;
}
ul.steps li.step:before {
  content: counter(steps, decimal) ". ";
  counter-increment: steps;
}
ul.steps li.step.complete:before {
  content: "<img src="https://s.w.org/images/core/emoji/15.0.3/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /> ";
}
ul.steps li.step.complete {
  background-color: green;
}
ul.steps li.step.current {
  background-color:dodgerblue
}
ul.steps li.arrow {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
  color: black;
  display: inline-block;
  font-size: 28px;
  height: 46px;
  line-height: normal;
  margin: 0;
  width: auto;
}
&lt;/style>
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2014/11/26/breadcrumb-steps-in-css-that-works-from-ie8-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Dynamically inject a CSS code into the page [JavaScript]</title>
		<link>https://blog.kodono.info/wordpress/2014/05/28/dynamically-inject-a-css-code-into-the-page-javascript/</link>
					<comments>https://blog.kodono.info/wordpress/2014/05/28/dynamically-inject-a-css-code-into-the-page-javascript/#respond</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Wed, 28 May 2014 13:28:09 +0000</pubDate>
				<category><![CDATA[Astuce]]></category>
		<category><![CDATA[Niveau intermédiaire]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=1381</guid>

					<description><![CDATA[Mozilla created a function that permits to inject some CSS into the document: addStylesheetRules() But if you use jQuery you may want to use this function: function injectCSS(rule) { $("head").append('&#60;style>' + rule + '&#60;/style>') } // example injectCSS("div { padding:5px }")]]></description>
										<content:encoded><![CDATA[<p>Mozilla created a function that permits to inject some CSS into the document: <a href="https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.insertRule">addStylesheetRules()</a></p>
<p>But if you use jQuery you may want to use this function:</p>
<pre class="brush:javascript">
function injectCSS(rule) {
  $("head").append('&lt;style>' + rule + '&lt;/style>')
}

// example
injectCSS("div { padding:5px }")
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2014/05/28/dynamically-inject-a-css-code-into-the-page-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Obtenir une couleur plus sombre ou plus claire pour CSS [javascript]</title>
		<link>https://blog.kodono.info/wordpress/2012/05/22/obtenir-une-couleur-plus-sombre-ou-plus-claire-pour-css-javascript/</link>
					<comments>https://blog.kodono.info/wordpress/2012/05/22/obtenir-une-couleur-plus-sombre-ou-plus-claire-pour-css-javascript/#respond</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Tue, 22 May 2012 12:40:18 +0000</pubDate>
				<category><![CDATA[Niveau intermédiaire]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=948</guid>

					<description><![CDATA[EDIT du 22/05/2012 : il existe un site qui permet de trouver plusieurs dégradés à partir d'une couleur, et ça se passe sur http://0to255.com/ EDIT du 20/09/2012 : et voilà encore un autre site un peu plus intéressant que le précédent http://sassme.arc90.com/ EDIT du 25/09/2012 : une autre fonction/méthode plus légère est disponible tout en [&#8230;]]]></description>
										<content:encoded><![CDATA[
<script type="text/javascript">
var pad = function(num, totalChars) {
    var pad = '0';
    num = num + '';
    while (num.length < totalChars) {
        num = pad + num;
    }
    return num;
};

// Ratio is between 0 and 1
var changeColor = function(color, ratio, darker) {
    // Trim trailing/leading whitespace
    color = color.replace(/^\s*|\s*$/, '');

    // Expand three-digit hex
    color = color.replace(
        /^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i,
        '#$1$1$2$2$3$3'
    );

    // Calculate ratio
    var difference = Math.round(ratio * 256) * (darker ? -1 : 1),
        // Determine if input is RGB(A)
        rgb = color.match(new RegExp('^rgba?\\(\\s*' +
            '(\\d|[1-9]\\d|1\\d{2}|2[0-4][0-9]|25[0-5])' +
            '\\s*,\\s*' +
            '(\\d|[1-9]\\d|1\\d{2}|2[0-4][0-9]|25[0-5])' +
            '\\s*,\\s*' +
            '(\\d|[1-9]\\d|1\\d{2}|2[0-4][0-9]|25[0-5])' +
            '(?:\\s*,\\s*' +
            '(0|1|0?\\.\\d+))?' +
            '\\s*\\)$'
        , 'i')),
        alpha = !!rgb && rgb[4] != null ? rgb[4] : null,

        // Convert hex to decimal
        decimal = !!rgb? [rgb[1], rgb[2], rgb[3]] : color.replace(
            /^#?([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])/i,
            function() {
                return parseInt(arguments[1], 16) + ',' +
                    parseInt(arguments[2], 16) + ',' +
                    parseInt(arguments[3], 16);
            }
        ).split(/,/),
        returnValue;

    // Return RGB(A)
    return !!rgb ?
        'rgb' + (alpha !== null ? 'a' : '') + '(' +
            Math[darker ? 'max' : 'min'](
                parseInt(decimal[0], 10) + difference, darker ? 0 : 255
            ) + ', ' +
            Math[darker ? 'max' : 'min'](
                parseInt(decimal[1], 10) + difference, darker ? 0 : 255
            ) + ', ' +
            Math[darker ? 'max' : 'min'](
                parseInt(decimal[2], 10) + difference, darker ? 0 : 255
            ) +
            (alpha !== null ? ', ' + alpha : '') +
            ')' :
        // Return hex
        [
            '#',
            pad(Math[darker ? 'max' : 'min'](
                parseInt(decimal[0], 10) + difference, darker ? 0 : 255
            ).toString(16), 2),
            pad(Math[darker ? 'max' : 'min'](
                parseInt(decimal[1], 10) + difference, darker ? 0 : 255
            ).toString(16), 2),
            pad(Math[darker ? 'max' : 'min'](
                parseInt(decimal[2], 10) + difference, darker ? 0 : 255
            ).toString(16), 2)
        ].join('');
};
var lighterColor = function(color, ratio) {
    return changeColor(color, ratio, false);
};
var darkerColor = function(color, ratio) {
    return changeColor(color, ratio, true);
};

var plus = function(sens) {
  var val = (!document.getElementById('result').innerHTML ? document.getElementById('color-css').value : document.getElementById('result').innerHTML);
  document.getElementById('color-css').value = val;
  var res=(sens=="sombre"?darkerColor(val,document.getElementById('perc').value):lighterColor(val,document.getElementById('perc').value));
  document.getElementById('result').innerHTML=res;
  document.getElementById('result-en-couleur').style.backgroundColor=res;
};
</script>

<b>EDIT du 22/05/2012</b> : il existe un site qui permet de trouver plusieurs dégradés à partir d'une couleur, et ça se passe sur <a href="http://0to255.com/" title="Lien vers un site de dégradés de couleurs">http://0to255.com/</a><br>
<b>EDIT du 20/09/2012</b> : et voilà encore un autre site un peu plus intéressant que le précédent <a href="http://sassme.arc90.com/">http://sassme.arc90.com/</a><br>
<b>EDIT du 25/09/2012</b> : une autre fonction/méthode plus légère est disponible tout en bas du billet

<p>Voici un petit outil en ligne qui permet d'avoir une couleur plus claire ou plus sombre en se basant sur une couleur CSS et en demandant un pourcentage (exprimé entre 0 et 1) à appliquer :</p>
<fieldset>
<label for="color-css">Couleur CSS: <input id="color-css" type="text" placeholder="ex: #F4F4F4" /></label><br />
<label for="perc">Pourcentage à appliquer: <input id="perc" type="text" placeholder="ex: .2 pour 20%" /></label><br />
<button onclick="plus('sombre'); return false">plus sombre</button><button onclick="plus('clair'); return false">plus claire</button>
<div>Résultat: <span id="result"></span></div>
<div id="result-en-couleur" style="width:50px; height:50px"></div>
</fieldset>
<p>Cette fonction vient directement de <a href="http://stackoverflow.com/questions/1507931/generate-lighter-darker-color-in-css-using-javascript" title="Lien vers le code d'origine">stackoverflow.com</a> :</p>
<pre class="brush:javascript">
var pad = function(num, totalChars) {
    var pad = '0';
    num = num + '';
    while (num.length &lt; totalChars) {
        num = pad + num;
    }
    return num;
};

// Ratio is between 0 and 1
var changeColor = function(color, ratio, darker) {
    // Trim trailing/leading whitespace
    color = color.replace(/^\s*|\s*$/, '');

    // Expand three-digit hex
    color = color.replace(
        /^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i,
        '#$1$1$2$2$3$3'
    );

    // Calculate ratio
    var difference = Math.round(ratio * 256) * (darker ? -1 : 1),
        // Determine if input is RGB(A)
        rgb = color.match(new RegExp('^rgba?\\(\\s*' +
            '(\\d|[1-9]\\d|1\\d{2}|2[0-4][0-9]|25[0-5])' +
            '\\s*,\\s*' +
            '(\\d|[1-9]\\d|1\\d{2}|2[0-4][0-9]|25[0-5])' +
            '\\s*,\\s*' +
            '(\\d|[1-9]\\d|1\\d{2}|2[0-4][0-9]|25[0-5])' +
            '(?:\\s*,\\s*' +
            '(0|1|0?\\.\\d+))?' +
            '\\s*\\)$'
        , 'i')),
        alpha = !!rgb &#038;& rgb[4] != null ? rgb[4] : null,

        // Convert hex to decimal
        decimal = !!rgb? [rgb[1], rgb[2], rgb[3]] : color.replace(
            /^#?([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])/i,
            function() {
                return parseInt(arguments[1], 16) + ',' +
                    parseInt(arguments[2], 16) + ',' +
                    parseInt(arguments[3], 16);
            }
        ).split(/,/),
        returnValue;

    // Return RGB(A)
    return !!rgb ?
        'rgb' + (alpha !== null ? 'a' : '') + '(' +
            Math[darker ? 'max' : 'min'](
                parseInt(decimal[0], 10) + difference, darker ? 0 : 255
            ) + ', ' +
            Math[darker ? 'max' : 'min'](
                parseInt(decimal[1], 10) + difference, darker ? 0 : 255
            ) + ', ' +
            Math[darker ? 'max' : 'min'](
                parseInt(decimal[2], 10) + difference, darker ? 0 : 255
            ) +
            (alpha !== null ? ', ' + alpha : '') +
            ')' :
        // Return hex
        [
            '#',
            pad(Math[darker ? 'max' : 'min'](
                parseInt(decimal[0], 10) + difference, darker ? 0 : 255
            ).toString(16), 2),
            pad(Math[darker ? 'max' : 'min'](
                parseInt(decimal[1], 10) + difference, darker ? 0 : 255
            ).toString(16), 2),
            pad(Math[darker ? 'max' : 'min'](
                parseInt(decimal[2], 10) + difference, darker ? 0 : 255
            ).toString(16), 2)
        ].join('');
};
var lighterColor = function(color, ratio) {
    return changeColor(color, ratio, false);
};
var darkerColor = function(color, ratio) {
    return changeColor(color, ratio, true);
};

// Use
var darker = darkerColor('rgba(80, 75, 52, .5)', .2);
var lighter = lighterColor('rgba(80, 75, 52, .5)', .2);
</pre>
<p>Une autre méthode, plus légère, inspirée par <a href="http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color">stackoverflow</a>:</p>
<pre class="brush:javascript">
function LightenDarkenColor(col,amt,usePound,num,f,h,r,b,g) {
  if (col[0]=="#") {
    col = col.slice(1);
    usePound = (usePound==undefined?true:usePound)
  }

  num = parseInt(col,16);
  f=function(n) { return n>255?255:(n&lt;0?0:n) }
  h=function(n) { return n.length&lt;2?"0"+n:n }
  
  r = h(f((num >> 16) + amt).toString(16));
  b = h(f(((num >> 8) &#038; 0x00FF) + amt).toString(16));
  g = h(f((num &#038; 0x0000FF) + amt).toString(16));

  return (usePound?"#":"") + r + b + g;
}

LightenDarkenColor("#FAB787",10);
LightenDarkenColor("#FAB787",-15);
LightenDarkenColor("FAB787",5,true);
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2012/05/22/obtenir-une-couleur-plus-sombre-ou-plus-claire-pour-css-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Datepicker pour Bootstrap [Javascript]</title>
		<link>https://blog.kodono.info/wordpress/2012/04/02/datepicker-pour-bootstrap-javascript/</link>
					<comments>https://blog.kodono.info/wordpress/2012/04/02/datepicker-pour-bootstrap-javascript/#comments</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Mon, 02 Apr 2012 15:29:29 +0000</pubDate>
				<category><![CDATA[Niveau débutant]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=1002</guid>

					<description><![CDATA[Edit 5/04/2012 : d&#8217;autres personnes ont fait comme moi, et vous pouvez trouver leur repository sur https://github.com/eternicode/bootstrap-datepicker &#8212; ils ont corrigé les mêmes bugs visiblement et ont ajouté quelques petites choses comme le support i18n (internationalisation du format de la date) J&#8217;ai découvert un datepicker qui utilise l&#8217;excellent Bootstrap de Twitter (vous savez c&#8217;est un [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><b>Edit 5/04/2012</b> : d&#8217;autres personnes ont fait comme moi, et vous pouvez trouver leur repository sur <a href="https://github.com/eternicode/bootstrap-datepicker" title="Lien vers le repository GitHub du Datepicker fait par Eternicode">https://github.com/eternicode/bootstrap-datepicker</a> &#8212; ils ont corrigé les mêmes bugs visiblement et ont ajouté quelques petites choses comme le support i18n (internationalisation du format de la date)</p>
<p>J&#8217;ai découvert un <a href="http://www.eyecon.ro/bootstrap-datepicker/" title="Lien vers le site d'origine du code">datepicker</a> qui utilise l&#8217;excellent <a href="http://twitter.github.com/bootstrap/index.html" title="Lien vers la documentation de Bootstrap">Bootstrap de Twitter</a> (vous savez c&#8217;est un ensemble de CSS qu&#8217;on peut utiliser pour des effets très réussis), et qui rend comme ça :<br />
<img fetchpriority="high" decoding="async" src="http://blog.kodono.info/wordpress/wp-content/uploads/2012/04/Datepicker-for-Bootstrap.png" alt="" title="Screenshot for Datepicker-for-Bootstrap" width="268" height="273" class="aligncenter size-full wp-image-1003" /></p>
<p>Je me suis empressé de l&#8217;utiliser dans un projet, jusqu&#8217;à ce que je me rende compte qu&#8217;il ne fonctionne pas avec <b>Bootstrap v2.0.2</b>, et ni avec IE7+ &#8230;. Du coup j&#8217;ai modifié le code d&#8217;origine pour outrepasser ces divers problèmes (plus d&#8217;autres petites choses). J&#8217;aurais proposé mon patch au créateur s&#8217;il utilisait GitHub, mais ce n&#8217;est pas le cas, donc j&#8217;ai créé un repository pour ce projet là : <a href="https://github.com/Aymkdn/Datepicker-for-Bootstrap" title="Lien vers le repository GitHub du Datepicker">https://github.com/Aymkdn/Datepicker-for-Bootstrap</a></p>
<p>Il ressemble en tout point à la version d&#8217;origine, sauf qu&#8217;il fonctionne maintenant pour IE et pour la dernière version de Bootstrap. Il permet aussi d&#8217;avoir la date du jour comme date par défaut (au lieu du 1/1/1970 &#8230;.), et évite d&#8217;avoir une date sélectionnée automatiquement lorsqu&#8217;on ne fait que passer par le champ en utilisant la touche TAB.</p>
<p>Et bien sûr il y a la <a href="http://aymkdn.github.com/Datepicker-for-Bootstrap/" title="Lien vers la démonstration de l'utilisation du Datepicker">démo</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2012/04/02/datepicker-pour-bootstrap-javascript/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>CSS3 PIE pour créer un border-radius sur IE [webdesign]</title>
		<link>https://blog.kodono.info/wordpress/2012/02/09/css3-pie-pour-creer-un-border-radius-sur-ie-webdesign/</link>
					<comments>https://blog.kodono.info/wordpress/2012/02/09/css3-pie-pour-creer-un-border-radius-sur-ie-webdesign/#respond</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Thu, 09 Feb 2012 10:52:47 +0000</pubDate>
				<category><![CDATA[Navigateur]]></category>
		<category><![CDATA[Niveau débutant]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[IE]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=932</guid>

					<description><![CDATA[Si vous cherchez à faire un border-radius sur un vieux IE vous avez dû vous rendre compte que cela ne fonctionne pas&#8230; mais heureusement il existe CSS3 PIE qui est un &#8220;petit&#8221; fichier qui va permettre de créer l&#8217;effet désiré ! A noter cependant que je rencontre un problème : lorsque j&#8217;applique le fichier htc [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Si vous cherchez à faire un <code>border-radius</code> sur un vieux IE vous avez dû vous rendre compte que cela ne fonctionne pas&#8230; mais heureusement il existe <a href="http://css3pie.com" title="Lien vers CSS3PIE">CSS3 PIE</a> qui est un &#8220;petit&#8221; fichier qui va permettre de créer l&#8217;effet désiré !</p>
<p>A noter cependant que je rencontre un problème : lorsque j&#8217;applique le fichier <em>htc</em> avec <code>behavior</code> alors j&#8217;ai ma couleur de fond (<code>background-color</code>) qui devient invisible / disparait. Ce problème peut-être résolu en appliquant la règle CSS suivante (<a href="http://css3pie.com/forum/viewtopic.php?f=3&#038;t=1474" title="Lien vers le forum CSS3 PIE">solution trouvée sur leur forum</a>):</p>
<pre class="brush:css">* { position:relative }</pre>
<p>Grâce à ça tout fonctionne sous IE <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2012/02/09/css3-pie-pour-creer-un-border-radius-sur-ie-webdesign/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Quelles polices de caractères utilisées sur le web ? [Web Design]</title>
		<link>https://blog.kodono.info/wordpress/2009/05/12/quelles-polices-de-caracteres-utilisees-sur-le-web-web-design/</link>
					<comments>https://blog.kodono.info/wordpress/2009/05/12/quelles-polices-de-caracteres-utilisees-sur-le-web-web-design/#respond</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Tue, 12 May 2009 10:34:04 +0000</pubDate>
				<category><![CDATA[Niveau intermédiaire]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=149</guid>

					<description><![CDATA[[niveau: intermédiaire] Si vous n&#8217;êtes pas un webdesigner professionnel, vous vous demandez sans doute quelles polices de caractères sont utilisables sur le Web. Peut-on utiliser une fonte personnalisée? Quelles sont les principales familles de fontes génériques? C&#8217;est ainsi qu&#8217;est introduit le billet d&#8217;Alsacreation qui vous explique parfaitement les polices disponibles pour la plupart des navigateurs. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[niveau: intermédiaire]</p>
<blockquote><p>Si vous n&#8217;êtes pas un webdesigner professionnel, vous vous demandez sans doute quelles polices de caractères sont utilisables sur le Web. Peut-on utiliser une fonte personnalisée? Quelles sont les principales familles de fontes génériques?</p></blockquote>
<p>C&#8217;est ainsi qu&#8217;est introduit le <a href="http://www.alsacreations.com/article/lire/631-quelles-polices-pour-un-site-web.html">billet d&#8217;Alsacreation</a> qui vous explique parfaitement les polices disponibles pour la plupart des navigateurs.</p>
<p>Dans cet excellent billet, l&#8217;auteur nous propose plusieurs polices de caractères:</p>
<div class="code">
<pre class="css">/* Polices à empattements (serif) */
font-family: Times, "Times New Roman", "Liberation Serif", FreeSerif, serif;
font-family: Georgia, "DejaVu Serif", Norasi, serif;

/* Polices sans empattements (sans-serif) */
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-family: "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", "Luxi Sans", sans-serif;
font-family: Tahoma, Geneva, Kalimati, sans-serif;
font-family: Verdana, "DejaVu Sans", "Bitstream Vera Sans", Geneva, sans-serif;
font-family: Impact, "Arial Black", sans-serif;

/* Polices à chasse fixe (monospace) */
font-family: Courier, "Courier New", FreeMono, "Liberation Mono", monospace;
font-family: Monaco, "DejaVu Sans Mono", "Lucida Console", "Andale Mono", monospace;</pre>
</div>
<p></code></p>
<p>Enfin vous pouvez retrouver un tableau très bien fait chez Dustin sur <a href="http://dustinbrewer.com/fonts-on-the-web-and-a-list-of-web-safe-fonts/">« Web safe and common fonts »</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2009/05/12/quelles-polices-de-caracteres-utilisees-sur-le-web-web-design/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Adapter la taille des polices de caractères selon les navigateurs [Web Design]</title>
		<link>https://blog.kodono.info/wordpress/2009/05/03/adapter-la-taille-des-polices-de-caracteres-selon-les-navigateurs-web-design/</link>
					<comments>https://blog.kodono.info/wordpress/2009/05/03/adapter-la-taille-des-polices-de-caracteres-selon-les-navigateurs-web-design/#comments</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Sun, 03 May 2009 10:43:01 +0000</pubDate>
				<category><![CDATA[Niveau expert]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=103</guid>

					<description><![CDATA[[niveau: expert] OpenWeb propose un excellent article nommé « Compatibilité multi-navigateurs des polices de caractères » où ils y expliquent les unités et les valeurs à utiliser pour dimensionner la taille des caractères de façon homogène sur le plus grand nombre possible de navigateurs Web. Pour résumer, il est conseillé de ne pas utiliser une [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[niveau: expert]</p>
<p>OpenWeb propose un excellent article nommé <a href="http://openweb.eu.org/articles/compatibilite_taille_polices/">« Compatibilité multi-navigateurs des polices de caractères »</a> où ils y expliquent les unités et les valeurs à utiliser pour dimensionner la taille des caractères de façon homogène sur le plus grand nombre possible de navigateurs Web.</p>
<p>Pour résumer, il est conseillé de ne pas utiliser une unité absolue (comme le &#8216;px&#8217;, le &#8216;pt&#8217;, le &#8216;cm&#8217;, etc). <strong>Evitez</strong> donc de noter dans votre style CSS quelque chose comme:</p>
<div class="code">
<pre class="css">body { font-size: 15px; } /* défini la taille par défaut de tout le texte */</code></div>
<p>A cela, <strong>préférez</strong> des unités relatives, et en l'occurrence l'utilisation de 'em' et de '%'.<br />
Il suffit de définir la taille du texte par défaut en '%' au niveau du body, et d'utiliser 'em' au niveau du reste de vos conteneurs.</p>
<p>Mais comment savoir l'équivalent entre le % et le 'px' ? Pour cela <a href="http://openweb.eu.org/articles/compatibilite_taille_polices/">OpenWeb</a> nous propose un tableau d'équivalence :</p>
<table id="valeurs">
<thead>
<tr>
<th>Valeurs en %</th>
<th>Valeurs équivalentes en 'px'</th>
</tr>
</thead>
<tbody>
<tr>
<td>57</td>
<td>9</td>
</tr>
<tr>
<td>65</td>
<td>10</td>
</tr>
<tr>
<td>71</td>
<td>11</td>
</tr>
<tr>
<td>77</td>
<td>12</td>
</tr>
<tr>
<td>82</td>
<td>13</td>
</tr>
<tr>
<td>88</td>
<td>14</td>
</tr>
<tr>
<td>96</td>
<td>15</td>
</tr>
<tr>
<td>103</td>
<td>16</td>
</tr>
<tr>
<td>109</td>
<td>17</td>
</tr>
<tr>
<td>115</td>
<td>18</td>
</tr>
<tr>
<td>121</td>
<td>19</td>
</tr>
</tbody>
</table>
<style type="text/css">
#valeurs, #valeurs td, #valeurs th { border: 1px solid black; border-collapse:collapse; text-align: center; }
#valeurs th { background-color:lightgray; padding:5px; }
</style>
<p>Ainsi, notre CSS donnera :</p>
<div class="code">
<pre class="css">body { font-size: 96%; } /* équivaut à 15px */</code></div>
<p>Grâce à cette méthode, votre texte s'adaptera très bien quelque soit le navigateur et la taille de l'écran de vos lecteurs.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2009/05/03/adapter-la-taille-des-polices-de-caracteres-selon-les-navigateurs-web-design/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
