<?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>Luminescente &#187; CSS</title>
	<atom:link href="http://luminescente.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://luminescente.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 24 Apr 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CSS animations</title>
		<link>http://luminescente.com/2010/03/css-animations/</link>
		<comments>http://luminescente.com/2010/03/css-animations/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 21:54:43 +0000</pubDate>
		<dc:creator>Pedro Cardoso</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[animations]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://luminescente.com/?p=524</guid>
		<description><![CDATA[Some days ago I decided to play with the animations using CSS3. Seemed a little weird at first, but is actually very easy. No time for long (or short) explanations, please RTFM for that, but here is a little example: the devious &#60;blink&#62; tag. Old is new again, I guess&#8230; For webkit only, replace those -webkits [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago I decided to play with the animations using CSS3. Seemed a little weird at first, but is actually very easy.</p>
<p>No time for long (or short) explanations, please <a href="http://www.w3.org/TR/css3-animations/">RTFM</a> for that, but here is a little example: the devious &lt;blink&gt; tag. Old is new again, I guess&#8230;</p>
<p>For webkit only, replace those -webkits with -moz to see with a recent Firefox.</p>
<pre>&lt;style type="text/css"&gt;</pre>
<pre>.blink {
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-name: blink;
    -webkit-animation-duration: .5s;
    -webkit-animation-direction: alternate;
}</pre>
<pre>@-webkit-keyframes blink {
    0% { opacity: 1; }
    100% { opacity: .2; }
}</pre>
<pre>&lt;/style&gt;</pre>
<pre>&lt;p class="blink"&gt;Hello blinking world.&lt;/p&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://luminescente.com/2010/03/css-animations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A web</title>
		<link>http://luminescente.com/2008/03/a-web/</link>
		<comments>http://luminescente.com/2008/03/a-web/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 01:10:39 +0000</pubDate>
		<dc:creator>Pedro Cardoso</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://luminescente.com/2008/03/30/a-web/</guid>
		<description><![CDATA[Aqui vão algumas notas soltas sobre a web a um nível técnico. Coisas que vejo no dia a dia no trabalho ou vou vendo nos sites que visito (claro que vou cuscar o source). Alguns problemas fundamentais, outros detalhes menores, mas que se podem encontrar sem ser preciso procurar muito. Sem pretender ofender o trabalho [...]]]></description>
			<content:encoded><![CDATA[<p>Aqui vão algumas notas soltas sobre a web a um nível técnico.</p>
<p>Coisas que vejo no dia a dia no trabalho ou vou vendo nos sites que visito (claro que vou cuscar o source). Alguns problemas fundamentais, outros detalhes menores, mas que se podem encontrar sem ser preciso procurar muito.</p>
<p>Sem pretender ofender o trabalho de ninguém que também tenho a minha quota de azelhices (podem começar neste blog) e uma pessoa vai aprendendo com o tempo, não é verdade?</p>
<p>Inicialmente este texto era focado naquilo que se faz em Portugal, mas cedo abandonei a ideia. Há por aí HTML+CSS com muita qualidade a ser debitado por portugueses e também muita asneira feita por estrangeiros. Nem todos os bifes são o [http://en.wikipedia.org/wiki/Zeldman](Jeffrey_Zeldman) assim como nem todos os portugueses são o Chico que vende sites feitos no Frontpage.</p>
<p>#### HTML</p>
<p>- As tabelas continuam vivas e de saúde, infelizmente. Os velhos hábitos custam a morrer mesmo com soluções melhores. Há efeitos que é complicado fazer sem tabelas (alinhamentos verticais, por exemplo), mas não há desculpa para ainda se usar tabelas.<br />
- Atributos das tags não delimitados, estruturas inválidas (elementos block dentro de elementos inline).<br />
- Divitis: Quando o DIV é a resposta para todos os problemas, a pergunta não foi compreendida.</p>
<p>#### CSS</p>
<p>- Usa-se CSS, mas mal. Muitas vezes apenas para FAC (Fonts And Colors), ou corre-se tudo a DIVs com classes de nome &#8220;bold&#8221;, &#8220;titulo&#8221;, &#8220;link&#8221;.<br />
- Não é necessário definir para todas as tags o font-family/font-size. Define-se uma vez para o body e basta para a maior parte das situações. Pelo menos façam uma regra &#8220;p, div, span, a, table, td, th&#8221; para aplicar num único sítio a fonte predominante em vez de repetir as propriedades da fonte para cada tag/id/classe.<br />
- Selectores de contexto. Em vez de definir que os links dentro de um determinado elemento têm uma determinada formatação, corre-se tudo com classes e IDs compostos (a.sidebarContentGroupLink {}). O IE é muito mau, mas pelo menos compreende selectores de contexto simples (para o exemplo anterior, algo como #sidebar .group a {} ).<br />
- IDs repetidos (hint: é para isso que as classes existem).</p>
<p>#### Flash</p>
<p>- Recurso a Flash e Javascript para coisas simples como menus e links de navegação, quando não mesmo para sites inteiros.<br />
- Scrolling do conteúdo feito em Flash, cada qual com a sua implementação, usualmente avariada, em que as coisas não funcionam como se esperam normalmente.</p>
<p>#### Javascript</p>
<p>- Javascript da idade da pedra. window.layers, document.nomedoform.field, doc.write() em XHTML. O Google é vosso amigo, mas neste tema afastem-se dos primeiros resultados da pesquisa, a não ser que sejam um link para o [http://www.jquery.com](jQuery). <img src='http://luminescente.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
- Tal como indicado para Flash, as inúmeras macaquices que se vêem com o scrolling do conteúdo em Javascript, que não funciona, ou não funciona de forma intuitiva ou com lacunas (não suportar scrolling com a roda do rato, por exemplo).</p>
<p>#### Vários</p>
<p>- Frames! Argh!!!<br />
- Confusão com o encoding dos caracteres. Envia-se latin1 quando o o header ou a metatag indicam UTF-8. Strings que são processadas por funções que não compreendem as sequências UTF-8 e e mutilam caracteres (hint: em php usar as funções mb_* em vez das simples como o substr, strlen, etc).<br />
- site.com deve ir ter ao mesmo sítio que www.site.com. Acontece mais vezes do que julgam.<br />
- Usar XHTML por tudo e por nada, sem se perceber o que se ganha em relação ao HTML4.<br />
- Há várias tags que não são muito utilizadas mas são importantes. Label, optgroup, fieldset+legend, até mesmo os h1..h6.<br />
- Não se usam [sprites](http://www.alistapart.com/articles/sprites). Continua-a a recorer ao velho script de pre-load de imagens (copiado do *I feel lucky* do Google&#8230;), ou deixa-se o utilizador esperar o carregamento da imagem do menu quando passa o rato por cima.<br />
- UPDATE:  em páginas com mais do que um formulário, carregar em Enter após se preencher os dados faz o submit do formulário errado, normalmente o primeiro da página.</p>
]]></content:encoded>
			<wfw:commentRss>http://luminescente.com/2008/03/a-web/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Impressões</title>
		<link>http://luminescente.com/2007/06/impressoes/</link>
		<comments>http://luminescente.com/2007/06/impressoes/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 21:32:26 +0000</pubDate>
		<dc:creator>Pedro Cardoso</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://luminescente.com/afterdark/2007/06/15/impressoes/</guid>
		<description><![CDATA[Três coisas relacionadas com impressão, vagamente relacionadas: - Segundo o post aqui do colega no Planeta, a Epson meteu em tribunal fabricantes de tinteiros compatíveis. Por acaso até tenho Epson (uma C62 com uns aninhos), e sempre usei tinteiros de marca branca. São baratos, funcionam, e não há chip para chatear. Que raio de coisas [...]]]></description>
			<content:encoded><![CDATA[<p>Três coisas relacionadas com impressão, vagamente relacionadas:</p>
<p>- Segundo o <a href="http://encontrei.wordpress.com/2007/06/15/epson-e-a-guerra-ao-fabricantes-de-tinteiros-compativeis/">post</a> aqui do colega no Planeta, a Epson meteu em tribunal fabricantes de tinteiros compatíveis. Por acaso até tenho Epson (uma C62 com uns aninhos), e sempre usei tinteiros de marca branca. São baratos, funcionam, e não há chip para chatear. Que raio de coisas inventam. Afinal de contas, é tinta, não é Chanel nº5 . Nem se vê gasolina da BMW ou da Ferrari&#8230;<br />
- Spam postal do Carrefour tinha um multifunções Lexmark (com leitor de cartões) por 25 euros. Não, obrigado. Lexmark nem para esquartejar para peças.<br />
- Pessoal, estamos em 2007. Para imprimir conteúdo de páginas HTML também se pode usar CSS. Leiam como no sempre actual <a href="http://alistapart.com/articles/goingtoprint/">A List Apart</a>. Apenas com CSS (e a função normal de imprimir do browser) desliga-se o que não interessa aparecer na versão impresa (menus, navegação), além de redimensionar containers, aplicar um tipo de letra melhor para o papel, &#8220;ligar&#8221; secções escondidas na versão normal do site. E se o browser for decente (ie: não-IE), até se fazem malabarismos como meter o URL de um link a seguir ao próprio link e coisas ainda mais catitas. Poupa-se o servidor, cliente e o utilizador que tem menos um popup para gerir.</p>
]]></content:encoded>
			<wfw:commentRss>http://luminescente.com/2007/06/impressoes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ARGHHHHH!</title>
		<link>http://luminescente.com/2007/04/arghhhhh/</link>
		<comments>http://luminescente.com/2007/04/arghhhhh/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 13:18:42 +0000</pubDate>
		<dc:creator>Pedro Cardoso</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luminescente.com/afterdark/2007/04/18/arghhhhh/</guid>
		<description><![CDATA[Arghhhh!!!! Why do designers insist on writing their CSS rules on the same line like .someRandomClass { width: 320px; height: 200px; background-color: red; color: white; } It drives me nuts!]]></description>
			<content:encoded><![CDATA[<p>Arghhhh!!!!</p>
<p>Why do designers insist on writing their CSS rules on the same line like</p>
<blockquote><p>.someRandomClass { width: 320px; height: 200px; background-color: red; color: white; }</p></blockquote>
<p>It drives me nuts!</p>
]]></content:encoded>
			<wfw:commentRss>http://luminescente.com/2007/04/arghhhhh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript/CSS Image Reflection</title>
		<link>http://luminescente.com/2006/04/javascriptcss-image-reflection/</link>
		<comments>http://luminescente.com/2006/04/javascriptcss-image-reflection/#comments</comments>
		<pubDate>Mon, 24 Apr 2006 22:07:37 +0000</pubDate>
		<dc:creator>Pedro Cardoso</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Javacript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://luminescente.com/afterdark/index.php/2006/04/24/javascriptcss-image-reflection/</guid>
		<description><![CDATA[Here is a new CSS/Javascript hack of mine: transparent image reflection, like it can be seen on the image on the left. Been toying with this for the last few days and after some testing here it is. It&#8217;s slow, not fully tested, and probably not good enough to be used, but this can be [...]]]></description>
			<content:encoded><![CDATA[<p><img align="left" style="padding: 0pt 5px 5px 0pt" alt="reflex demo" id="image86" title="reflex demo" src="http://luminescente.com/afterdark/wp-content/uploads/2006/04/reflexdemo.png" />Here is a new CSS/Javascript hack of mine: transparent image reflection, like it can be seen on the image on the left.<br />
Been toying with this for the last few days and after some testing here it is. It&#8217;s slow, not fully tested, and probably not good enough to be used, but this can be something to improve and build on.</p>
<p>The idea itself is not original, as it can be seen in lots of places, from websites to software, but this implementation is as far as I know unique, in the sense it does not require browser support for the Canvas tag, like <a href="http://cow.neondragon.net/index.php/383-Reflectionjs-Demo">this implementation.</a></p>
<p>It&#8217;s working with Safari, IE and Firefox. IE and Firefox support animated gifs as background, so if the source image is a animated GIF so is the reflection.</p>
<p><a href="http://luminescente.com/files/imageReflection/imageReflection.html">Here it is</a>, play with it, check the source and let me know if you liked! <img src='http://luminescente.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://luminescente.com/2006/04/javascriptcss-image-reflection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

