<?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>Eliseos.net &#187; CSS</title> <atom:link href="http://eliseos.net/tag/css/feed/" rel="self" type="application/rss+xml" /><link>http://eliseos.net</link> <description>Wordpress, Diseño, jQuery and Coffee</description> <lastBuildDate>Tue, 16 Mar 2010 00:51:54 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Crea una barra para compartir tus entradas al estilo Mashable</title><link>http://eliseos.net/destacadas/crea-barra-compartir-entradas-estilo-mashable/</link> <comments>http://eliseos.net/destacadas/crea-barra-compartir-entradas-estilo-mashable/#comments</comments> <pubDate>Mon, 15 Mar 2010 20:16:31 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Destacadas]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2761</guid> <description><![CDATA[Ayer me preguntaban si conocía algún plugin o al por estilo para poder emular el comportamiento de la barra horizontal que acompaña a los post en Mashable. Esta barra se "mueve" a lo largo de la entrada acompañando al scroll y en la que se encuentran botones para]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Ayer me preguntaban si conocía algún plugin o al por estilo para poder emular el comportamiento de la barra horizontal que acompaña a los post en <a
href="http://mashable.com/">Mashable</a>. Esta barra se &#8220;mueve&#8221; a lo largo de la entrada acompañando al scroll y en la que se encuentran botones para socializar contenido, como ser Tweetmeme, Facebook, etc.</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2010/03/mashable.jpg" alt="mashable Crea una barra para compartir tus entradas al estilo Mashable" title="mashable" width="500" height="250" class="alignnone size-full wp-image-2763" /></p><p><span
id="more-2761"></span></p><p
style="text-align: left;">Sinceramente nunca le había prestado demasiada atención a esa barra, por la que me puse a investigar un poco mas sobre su comportamiento y como funciona. Después de mirar un poco pude recrear el efecto sin demasiadas complicaciones con un poco de CSS y jQuery.</p><p
style="text-align: left;">Surgieron dos alternativas, la replica exacta (solo me tome el trabajo de explicar el código) de Mashable y otro un poco mas simple.</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2010/03/Social-bar-al-estilo-Mashable.png" alt="Social bar al estilo Mashable Crea una barra para compartir tus entradas al estilo Mashable" title="Social bar al estilo Mashable" width="500" height="250" class="alignnone size-full wp-image-2762" /></p><p
style="text-align: left;">Si entramos a cualquier post en Mashable, veremos que la barra se acompaña al Scroll sin animaciones. Al usar valores negativos en el <em><code>margin</code></em>, esta barra no es visible en resoluciones menores (1024), por lo cual mediante <strong>jQuery </strong>se transforma en otra barra horizontal para mostrar el contenido; lo mismo sucede si redimencionamos la ventana.</p><p
style="text-align: left;">La alternativa mas simple ofrece las mismas funcionalidades y un efecto en el <em>scroll</em>, pero si te excedes en el <strong>viewport</strong>, los visitantes que tengan una resolución de pantalla menor, no podrán apreciarla. A que me refiero con el exceso en el <strong>viewport</strong>? Simple, si tu <em><code>container</code> </em>es de <strong>960px</strong> de ancho y posicionamos la barra a unos <strong>-80px</strong>, <strong>nos excedimos en el viewport</strong> (960px + 80px = 1040) para resoluciones menores o iguales a 1024&#215;768; ya que el <strong>safe area</strong> para esta resolución es de <strong>975px</strong> de ancho.</p><p
style="text-align: left;">Cualquiera de las dos alternativas es válida y funcional, queda en vos utilizar la que creas que mejor se adapte.</p><h2>Replica de Mashable</h2><p
style="text-align: left;">Esta opción requiere un poco mas de código dada la complejidad. Al utilizar la posición <em><code>fixed</code></em>, esta opción no sera compatible con <strong>IE6 </strong>ya que este navegador desconoce esta propiedad.</p><h3><a
href="http://eliseos.net/test/easy/demo1.html">Demo Replica de Mashable</a></h3><p
style="text-align: left;">No te olvides de redimensionar la ventana para apreciar el efecto completo</p><h2>HTML</h2><p
style="text-align: left;">Como lo podemos apreciar en Mashable tenemos botones para sindicar contenido en Twitter, Google Buzz, Facebook y otras. Cada botón funciona por medio de un <em>script </em>para que les sea mas sencillo de integrar, podes usar e incluir los botones que necesitas por medio de algún plugin o simple código, eso queda en vos.</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;">			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_bar&quot;</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_grandes&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gbuzz s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tweetmeme s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">tweetmeme_source <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'baires'</span>; <span style="color: #66cc66;">//</span> Mi usuario en Twitter <span style="color: #66cc66;">//</span></span>
<span style="color: #009900;">tweetmeme_url <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'&lt;?php the_permalink(); ?&gt;</span></span>'; // URL a socializar en este caso para Wordpress //
//]]&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;faceboook s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://widgets.fbshare.me/files/fbshare.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_chicos&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small gbuzz_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">var njuice_buzz_size <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'small'</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small twwetmeme_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">tweetmeme_style <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'compact'</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small facebook_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">var fbShare <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;"><span style="color: #000066;">size</span>: <span style="color: #ff0000;">'small'</span>,</span>
<span style="color: #009900;"><span style="color: #66cc66;">&#125;</span></span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://widgets.fbshare.me/files/fbshare.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=Eliseos%20Net&amp;amp;linkurl=eliseos.net&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">a2a_linkname<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;My Sitio&quot;</span>;a2a_linkurl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mi-url.com&quot;</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=My%20Sitio&amp;amp;linkurl=mi-url.com&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">a2a_linkname<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;My Sitio&quot;</span>;a2a_linkurl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mi-url.com&quot;</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div><p
style="text-align: left;">Nuestro <strong>markup </strong>es de lo mas sencillo, como se puede hay dos clases de botones: grandes y chicos. Los botones grandes son los que se aprecian a simple vista, los chicos se encuentran escondidos para las resoluciones inferiores o en caso de redimensioanarse la pantalla. Es necesario que edites los datos de cada botón para que coincida con los tuyos, en URL, Nombre del Sitio, etc.</p><p
style="text-align: left;">Recomiendo introducir la barra justo después del titulo y antes del contendido para poder desplazarnos sin problemas. Para el caso de Wordpress dentro del archivo <em><code>single.php</code></em></p><h2>CSS</h2><p
style="text-align: left;">Esto es parte de la magia, otra vez es algo extremadamente simple de entender. Intente comentar lo mas posible el código para que sea de fácil entendimiento.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;">&nbsp;
<span style="color: #cc00cc;">#social_bar</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">none</span> </span>repeat <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#DDDDDD</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-80px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* // La distacia de la barra que queremos tener en relacion al post */</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones grandes */</span>
<span style="color: #6666ff;">.s_boton</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones chicos */</span>
.s_boton_small<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Ocultamos los botones chicos de momento */</span>
<span style="color: #6666ff;">.botones_chicos</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* //Iconos para los links de Share y Email */</span>
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-32px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">-14px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/social_sprites.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E8E8E8</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#989898</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span>/<span style="color: #cc66cc;">1.625</span> verdana<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">44px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">En caso que lo necesites <a
href="http://eliseos.net/wp-content/uploads/2010/03/social_sprites.png">esta es la imagen</a> que utilice en los links de <em>share </em>&amp; <em>e-mail</em>. Los iconos pertenecen al set <a
href="http://glyphish.com/">Glyphish</a>.</p><h2>jQuery</h2><p
style="text-align: left;">Y aquí viene la magia que hará que el comportamiento de la barra acompañe al <em>scroll </em>y diferencie las distintas resoluciones de pantalla.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>	
&nbsp;
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#social_bar'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">msie</span> <span style="color: #339933;">&amp;&amp;</span> parseInt<span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">version</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> descripY <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.main'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">offset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">top</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">20</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> $postShare <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#social_bar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> pullX <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'margin-left'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003366; font-weight: bold;">function</span> positionShareScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> scrollY <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> fixedShare <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'position'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'fixed'</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> scrollY <span style="color: #339933;">&gt;</span> descripY <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>fixedShare <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                $postShare.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                    position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'fixed'</span><span style="color: #339933;">,</span>
                    left<span style="color: #339933;">:</span> <span style="color: #3366CC;">'50%'</span><span style="color: #339933;">,</span>
                    top<span style="color: #339933;">:</span> <span style="color: #CC0000;">20</span><span style="color: #339933;">,</span>
                    marginLeft<span style="color: #339933;">:</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">540</span> <span style="color: #006600; font-style: italic;">// Este valor se debe ajustar ya que depende de cada diseño//</span>
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> scrollY <span style="color: #339933;">&lt;</span> descripY <span style="color: #339933;">&amp;&amp;</span> fixedShare <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                    position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'relative'</span><span style="color: #339933;">,</span>
                    left<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
                    top<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
                    marginLeft<span style="color: #339933;">:</span> pullX
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">resize</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> windowW <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> pulledOutside <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'margin-left'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> pullX<span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> windowW <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">1137</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>pulledOutside <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        $postShare.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginLeft<span style="color: #339933;">:</span> pullX <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #006600; font-style: italic;">//Crear barra Vertical</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_chicos'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_grandes'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border-width'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'1px'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'auto'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
							marginRight<span style="color: #339933;">:</span> <span style="color: #CC0000;">7</span><span style="color: #339933;">,</span>
							marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span>
						<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #009900;">&#125;</span>
                    $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scroll.positionShare'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                            positionShareScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
                        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
                    positionShareScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> pulledOutside <span style="color: #339933;">||</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    $postShare
                        .<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'relative'</span><span style="color: #339933;">,</span> left<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> top<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>marginLeft<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
					<span style="color: #006600; font-style: italic;">//Crear barra Horizontal</span>
					<span style="color: #006600; font-style: italic;">//$postShare.append(smallButtons);</span>
					<span style="color: #006600; font-style: italic;">//smallButtons = '';</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_grandes'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_chicos'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
						marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span><span style="color: #339933;">,</span>
						marginBottom<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span>
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border-width'</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
					<span style="color: #003366; font-weight: bold;">var</span> content_width <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.main'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>content_width <span style="color: #339933;">==</span> <span style="color: #3366CC;">'undefined'</span><span style="color: #009900;">&#41;</span> content_width <span style="color: #339933;">=</span> <span style="color: #CC0000;">600</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> $postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span>$postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #003366; font-weight: bold;">var</span> block_width <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
						$postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #339933;">,</span> $postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #003366; font-weight: bold;">var</span> block_width <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
					$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span>content_width<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #003366; font-weight: bold;">var</span> add_padding <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>content_width <span style="color: #339933;">-</span> block_width<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #009900;">&#40;</span>$postShare.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton_small'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">*</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">4</span><span style="color: #339933;">;</span>
&nbsp;
					<span style="color: #006600; font-style: italic;">//var add_padding = (642 - (88 + 120 * (buttons_count - 2) )) / (buttons_count * 2);</span>
					<span style="color: #006600; font-style: italic;">//var add_padding = ( ( 642 - ( 88 * buttons_count ) ) / (buttons_count * 2) ) + 5;</span>
					$postShare.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton_small'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
						paddingLeft<span style="color: #339933;">:</span> add_padding<span style="color: #339933;">,</span>
						paddingRight<span style="color: #339933;">:</span> add_padding
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
                    $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">unbind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scroll.positionShare'</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">resize</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p
style="text-align: left;">Solamente dos cosas debemos tener presentes, la primera es definir en la linea 4 cual sera nuestro valor de referencia para el comportamiento de la barra, es decir el ancho; generalmente corresponde al <em><code>container</code> </em>en el que se encuentra el post. En mi caso he utilizado la clase <em><code>main</code></em>, que se vuelve a utilizar en la linea <strong>76 </strong>y en la <strong>77 </strong>con su ancho.</p><p
style="text-align: left;">Luego procederemos a adaptar la distancia a la que se posicionara la barra cuando nos desplacemos, al utilizar la posición <em><code>fixed</code></em>, el valor difiere de los 80px originales. Este ejemplo muestra la barra posicionada a unos -540px (linea 18). Este valor tenes que ajustarlo vos ya que depende de tu diseño. Una aproximación a este numero responde a: <strong>Ancho del container (en este ejemplo: main) &#8211;  80px</strong></p><p
style="text-align: left;">Una vez presentadas todas las partes solo tenemos que integrarlas en nuestro Site, dependiendo de la plataforma con lo que estemos trabajando pude variar algún detalle, pero este código sirve tanto para Wordpress como para cualquier otro <strong>CMS</strong>.</p><h2>Replica de Mashable Simple</h2><p
style="text-align: left;">A diferencia de la opción anterior esta barra es <strong>compatible </strong>con <strong>IE6</strong>, pero no podrá ser apreciada en resoluciones menores. El <em>scroll </em>para este caso es una animación del <em><code>padding</code> </em>que produce un simpático efecto final.</p><h3><a
href="http://eliseos.net/test/easy/demo2.html">Demo Replica de Mashable</a></h3><h2>HTML</h2><p
style="text-align: left;">Es casi el mismo <em>markup </em>de la primera opción pero sin incluir los botones pequeños ya que no son necesarios.</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;">	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_bar_wrapper&quot;</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_bar&quot;</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_contenedor&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gbuzz s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tweetmeme s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
tweetmeme_source = 'baires';
tweetmeme_url = '<span style="color: #009900;">&lt;?php the_permalink<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>';
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;faceboook s_boton&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://widgets.fbshare.me/files/fbshare.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=My%20Sitio&amp;amp;linkurl=mi-url.com&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
a2a_linkname=&quot;My Sitio&quot;;a2a_linkurl=&quot;mi-url.com&quot;;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
			<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div><p
style="text-align: left;">También se ha añadido un <em><code>wrapper</code></em>a la barra para poder controlar el <em><code>margin</code></em>.</p><h2>CSS</h2><p
style="text-align: left;">Es exactamente el mismo de la primera opción, con el adicional de <em><code>wrapper</code> </em> y sin los botones pequeños.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#social_bar_wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">none</span> </span>repeat <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#DDDDDD</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-80px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* // La distacia de la barra que queremos tener en relacion al post */</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones grandes */</span>
<span style="color: #6666ff;">.s_boton</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* //Iconos para los links de Share y Email */</span>
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-32px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">-14px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/social_sprites.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E8E8E8</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#989898</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span>/<span style="color: #cc66cc;">1.625</span> verdana<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">44px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">Quizás lo único que tengas que modificar es la distancia a la que se encuentra la barra con respecto del contenido, para este ejemplo es -80px (dentro de <em><code>#social_bar</code></em>). No te excedas en mas de <strong>-100px </strong>o no sera visible en varias resoluciones.</p><h2>jQuery</h2><p
style="text-align: left;">Como te lo adelante anteriormente solamente animamos el <em><code>padding</code> </em>(gracias <a
href="http://css-tricks.com/scrollfollow-sidebar/">CSS Tricks</a>), no es necesario modificar este código a no ser que sepas lo que estas haciendo.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">	$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #003366; font-weight: bold;">var</span> $sidebar   <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#social_bar&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        $window    <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        offset     <span style="color: #339933;">=</span> $sidebar.<span style="color: #660066;">offset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        topPadding <span style="color: #339933;">=</span> <span style="color: #CC0000;">15</span><span style="color: #339933;">;</span>
&nbsp;
    $window.<span style="color: #000066;">scroll</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$window.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> offset.<span style="color: #660066;">top</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $sidebar.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                marginTop<span style="color: #339933;">:</span> $window.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> offset.<span style="color: #660066;">top</span> <span style="color: #339933;">+</span> topPadding
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
            $sidebar.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p
style="text-align: left;">Por ultimo solo resta presentar todo en nuestro diseño y tendremos otra alternativa a a barra de Mashable.</p><p
style="text-align: left;">Cualquier duda que tengas, hacémelo saber.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/destacadas/crea-barra-compartir-entradas-estilo-mashable/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Speech bubbles con CSS solamente</title><link>http://eliseos.net/css/speech-bubbles-css-solamente/</link> <comments>http://eliseos.net/css/speech-bubbles-css-solamente/#comments</comments> <pubDate>Wed, 10 Mar 2010 01:02:32 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[CSS3]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2747</guid> <description><![CDATA[Nicolas Gallagher ha creado una serie de Speech bubbles solamente con CSS2.1 y condimentados con CSS3, logrando asi algo que solo se podría obtener mediante javascript]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="Pure CSS speech bubbles" href="http://nicolasgallagher.com/progressive-enhancement-pure-css-speech-bubbles/">Nicolas Gallagher</a> ha creado una serie de Speech bubbles solamente con <strong>CSS2.1</strong> y condimentados con <strong>CSS3</strong>, logrando así algo que solo se podria obtener mediante <strong>javascript</strong>. Usando un HTML semántico y cero imágenes se pueden lograr resultados como el siguiente:</p><p><span
id="more-2747"></span></p><p
style="text-align: center;"><a
href="http://nicolasgallagher.com/progressive-enhancement-pure-css-speech-bubbles/"><img
class="alignnone size-full wp-image-2748" title="CSS Speech bubbles" src="http://eliseos.net/wp-content/uploads/2010/03/CSS-Speech-bubbles.jpg" alt="CSS Speech bubbles Speech bubbles con CSS solamente" width="500" height="250" /></a></p><p
style="text-align: left;">El HTML del que les hablaba es muy simple, solamente podemos escribir <em><code>&lt;div&gt;Content&lt;/div&gt;</code></em> o <em><code>&lt;p&gt;Content&lt;/p&gt;</code></em> y la magia de CSS se hará cargo de ahí en mas.</p><p
style="text-align: left;">La mención honorifica se la llevan los <strong>pseudo-elements</strong> <em><code>:before</code></em> y/o <em><code>:after</code></em> que crearan nuestras formas (Speech bubbles) y las propiedades <em><code>border-radius</code></em> y <em><code>transform</code></em> son los condimentos.</p><p
style="text-align: left;">Si nos ponemos a trabajar con los <strong>pseudo-elements</strong> y las propiedades arriba mencionadas podemos lograr resultado muy interesantes.</p><p
style="text-align: left;">Un ejemplo de esto, puede ser este CSS donde se creara un Speech Bubble con un triangulo isoceles en la parte inferior</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Bubble con triangulo isósceles
------------------------------------------ */</span>
&nbsp;
<span style="color: #6666ff;">.triangle-isosceles</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">1em</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f3961c</span><span style="color: #00AA00;">;</span>
&nbsp;
   <span style="color: #808080; font-style: italic;">/* css3 */</span>
   -moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   -webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9d835</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f3961c</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9d835</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f3961c</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* crear triangulo */</span>
<span style="color: #6666ff;">.triangle-isosceles</span><span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\0</span>0a0&quot;</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* reduce the damage in FF3.0 */</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span>-<span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">-30px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f3961c</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">Dentro del demo podras observar el comportamiento y acceder a todo el CSS necesario para que puedas ver en detalle como funciona cada shape y así poder implementarlas o crear shapes propias.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/speech-bubbles-css-solamente/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>CSS personalizado para cada entrada en Wordpress</title><link>http://eliseos.net/wordpress/css-personalizado-entrada-wordpress/</link> <comments>http://eliseos.net/wordpress/css-personalizado-entrada-wordpress/#comments</comments> <pubDate>Mon, 08 Feb 2010 22:39:41 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2655</guid> <description><![CDATA[Como todos lo sabemos Wordpress es muy flexible y con él podemos hacer casi cualquier cosa, en esta ocasión en particular vamos a crear un Box para poder estilizar nuestras entradas por medio de ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Como todos lo sabemos Wordpress es muy flexible y con él podemos hacer casi cualquier cosa, en esta ocasión en particular vamos a crear un Box para poder estilizar nuestras entradas por medio de CSS.</p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2656" title="Custom CSS en Wordpess" src="http://eliseos.net/wp-content/uploads/2010/02/Custom-CSS.jpg" alt="Custom CSS CSS personalizado para cada entrada en Wordpress" width="500" height="250" /></p><p><span
id="more-2655"></span></p><p
style="text-align: left;">Como lo sabrás cada Theme tiene su propia hoja de estilos que es lo que le formato en definitiva. Si necesitáramos personalizar nuestras entradas, tendríamos que editar la hoja de estilos del Theme; cosa que puede ser algo molesto si solo necesitamos personalizar una entrada en concreto.</p><p
style="text-align: left;">Con esta pequeña función, estaremos añadiendo un Box para que la hora de crear un Post o Pagina podamos insertar un estilo para cada entrada/pagina en concreto.</p><p
style="text-align: left;">Por medio de filtros y acciones esta función insertar en el header de nuestro Theme, el estilo que le hayamos aplicados. Solo tenes que cerciorarte que Theme cuente con <em><code>wp_head();</code></em> dentro del Header.</p><h2>Uso</h2><p
style="text-align: left;">En tu archivo <em><code>functions.php</code></em> inserta lo siguiente:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">//Custom CSS </span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_menu'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_css_hooks'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'save_post'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_custom_css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'insert_custom_css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_css_hooks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'custom_css'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Custom CSS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_css_input'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'normal'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'high'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'custom_css'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Custom CSS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_css_input'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'normal'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'high'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_css_input<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;input type=&quot;hidden&quot; name=&quot;custom_css_noncename&quot; id=&quot;custom_css_noncename&quot; value=&quot;'</span><span style="color: #339933;">.</span>wp_create_nonce<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'custom-css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;textarea name=&quot;custom_css&quot; id=&quot;custom_css&quot; rows=&quot;5&quot; cols=&quot;30&quot; style=&quot;width:100%;&quot;&gt;'</span><span style="color: #339933;">.</span>get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'_custom_css'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/textarea&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> save_custom_css<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>wp_verify_nonce<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'custom_css_noncename'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom-css'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$post_id</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">defined</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DOING_AUTOSAVE'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> DOING_AUTOSAVE<span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$post_id</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$custom_css</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'custom_css'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	update_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_custom_css'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$custom_css</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> insert_custom_css<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;style type=&quot;text/css&quot;&gt;'</span><span style="color: #339933;">.</span>get_post_meta<span style="color: #009900;">&#40;</span>get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_custom_css'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/style&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
		rewind_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//End Custom CSS</span></pre></div></div><p
style="text-align: left;">Ahora cada vez que escribas una entrada/pagina encontraras este box para insertar tus estilos:</p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2657" title="Custom CSS Box en Wordpress" src="http://eliseos.net/wp-content/uploads/2010/02/Custom-CSS-Box.jpg" alt="Custom CSS Box CSS personalizado para cada entrada en Wordpress" width="500" height="250" /></p><p
style="text-align: left;">Como lo veras esta función es bastante flexible por lo sera posible adaptarla, para por ejemplo también poder incluir <em><code>scripts</code></em> en nuestro Header.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/css-personalizado-entrada-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Markercss: un potente Framework para maquetar CSS</title><link>http://eliseos.net/css/markercss-potente-framework-maquetar-css/</link> <comments>http://eliseos.net/css/markercss-potente-framework-maquetar-css/#comments</comments> <pubDate>Mon, 25 Jan 2010 22:58:54 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[framework]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2613</guid> <description><![CDATA[Markercss es una forma de maquetar Diseños ganando tiempo al usar este Framework. Cuando se maqueta un sitio tenemos que crear y recordar todos nuestros estilos]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="Markercss" href="http://www.markercss.com/">Markercss</a> es una forma de maquetar Diseños ganando tiempo al usar este Framework. Cuando se maqueta un sitio tenemos que crear y recordar todos nuestros estilos. Aquí es cuando Markercss entra en accion.</p><p
style="text-align: center;"><a
href="http://www.markercss.com/"><img
src="http://eliseos.net/wp-content/uploads/2010/01/Markercss.jpg" alt="Markercss Markercss: un potente Framework para maquetar CSS" title="Markercss" width="500" height="250" class="alignnone size-full wp-image-2614" /></a></p><p><span
id="more-2613"></span></p><p
style="text-align: left;">Este Framework utiliza referencias simples de recordar y lógicas, por ejemplo; si necesitáramos crear un <em><code>DIV</em></code> de un height de 700px y un width de 500px, solo haríamos referencia a esta clase:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;div class=”rl w500 h700”&gt;
    &lt;div class=”rl w50 h70”&gt;&lt;/div&gt;
&lt;/div&gt;</pre></div></div><p
style="text-align: left;">Otro punto fuerte es el hecho de que Markercss se encuentra sub-dividido en distintos temas para una mejor compresión y aplicación: bordes, fondos, links, etc.</p><p
style="text-align: left;">Como lo habrás notado los CSS Framework son cada vez mas comunes y potentes, hay opiniones encontradas a favor y en contra de ellos, pero en definitiva están aquí para quedarse.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/markercss-potente-framework-maquetar-css/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Crea una stylesheet de inicio rapidamente</title><link>http://eliseos.net/css/stylesheet-inicio-rapidamente/</link> <comments>http://eliseos.net/css/stylesheet-inicio-rapidamente/#comments</comments> <pubDate>Thu, 07 Jan 2010 22:16:44 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[online]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2551</guid> <description><![CDATA[PrimerCSS es un herramienta online que le sera de utilidad a aquellos diseñadores que tienen como costumbre primero maquetar el HTML y luego ponerse a trabajar en la hoja de estilo.Su funcion es muy simple cuando pegamos nuestro ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="PrimerCSS" href="http://primercss.com/index.php">PrimerCSS</a> es un herramienta online que le sera de utilidad a aquellos diseñadores que tienen como costumbre primero maquetar el <em><code>HTML</code></em> y luego ponerse a trabajar en la hoja de estilo.</p><p
style="text-align: center;"><a
href="http://primercss.com/index.php"><img
src="http://eliseos.net/wp-content/uploads/2010/01/PrimerCSS.jpg" alt="PrimerCSS Crea una stylesheet de inicio rapidamente" title="PrimerCSS" width="500" height="250" class="alignnone size-full wp-image-2552" /></a></p><p><span
id="more-2551"></span></p><p
style="text-align: left;">Su funcion es muy simple cuando pegamos nuestro HTML PrimerCSS nos devuelve una hoja de estilo con todos los <em><code>ids'</code></em> y <em><code>class's</code></em> involucrados, algo que te te hara ganar mucho tiempo.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/stylesheet-inicio-rapidamente/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Sistema de grilla basado en CSS y Javascript</title><link>http://eliseos.net/css/sistema-grilla-basado-css-javascript/</link> <comments>http://eliseos.net/css/sistema-grilla-basado-css-javascript/#comments</comments> <pubDate>Mon, 28 Dec 2009 23:07:13 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[framework]]></category> <category><![CDATA[grid]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2532</guid> <description><![CDATA[#grid es una pequeña herramienta potenciada por jQuery y CSS que nos inserta una grilla (grid) en nuestra pagina para lidiar y optimizar problemas conocidos con la alineación, margenes o Vertical Rhythm.#grid se a adapta a cualquier diseño, ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="A layout grid in JavaScript and CSS for web design and typography" href="http://hashgrid.com/">#grid</a> es una pequeña herramienta potenciada por jQuery y CSS que nos inserta una grilla (grid) en nuestra pagina para lidiar y optimizar problemas conocidos con la alineación, margenes o <em><code>Vertical Rhythm</code></em>.</p><p><span
id="more-2532"></span></p><p
style="text-align: center;"><a
href="http://hashgrid.com/"><img
class="alignnone size-full wp-image-2533" title="#grid  A layout grid in JavaScript and CSS for web design and typography" src="http://eliseos.net/wp-content/uploads/2009/12/grid.jpg" alt="grid Sistema de grilla basado en CSS y Javascript" width="500" height="250" /></a></p><p
style="text-align: left;">#grid se a adapta a cualquier diseño, pero por defecto esta herramienta asume que esta trabajando con un ancho de <em><code>980px</code></em> + <em><code>20px</code></em> para el glutter. Tambien, por defecto se asume que el <em><code>Vertical Rhythm</code></em> esta basado en un <em><code>lead</code></em> de <em><code>20px</code></em>. Pero todas estas opciones son configurables y adaptables a nuestro diseño.</p><p
style="text-align: left;">Y por ultimo #Grid cuenta con una serie de shortcuts para hacernos la vida mas fácil, como mostrar y esconder la grilla, o convertir la grilla en sticky.</p><p></code></em></p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/sistema-grilla-basado-css-javascript/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Genera tu propio @font-face kit</title><link>http://eliseos.net/diseno/genera-propio-font-face-kit/</link> <comments>http://eliseos.net/diseno/genera-propio-font-face-kit/#comments</comments> <pubDate>Fri, 11 Dec 2009 19:59:01 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Diseño]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[fonts]]></category> <category><![CDATA[fuentes]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2446</guid> <description><![CDATA[Hace un tiempo les hable de Font Squirrel un repositorio de fuentes gratuitas que tiene como punto fuerte ofrecer @font-face kits para aplicarlos a la web.El día de hoy Font Squirrel ha dado un paso mas y no ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Hace un tiempo les hable de <a
title="Fotn Squirrel" href="http://www.fontsquirrel.com/">Font Squirrel</a> un repositorio de fuentes gratuitas que tiene como punto fuerte ofrecer <em><code>@font-face kits</code></em> para aplicarlos a la web.</p><p
style="text-align: center;"><a
href="http://www.fontsquirrel.com/fontface/generator"><img
class="alignnone size-full wp-image-2447" title="font face kit generator" src="http://eliseos.net/wp-content/uploads/2009/12/font-face-kit-generator.jpg" alt="font face kit generator" width="500" height="250" /></a></p><p
style="text-align: left;">El día de hoy Font Squirrel ha dado un paso mas y no solo ofrece sus kits sino que también cuenta con un generador para subir nuestras fuentes y crear nuestros kits.</p><p
style="text-align: left;">Por defecto Font Squirrel nos generara un kit con los siguientes formatos:</p><ul><li>El archivo original, ya sea <em>.ttf</em> u <em><code>.otf</code></em> para Firefox 3.5 y Safari</li><li>Un formato <em><code>.eot</code></em> propio de Internet Explorer</li><li>Un formato <em><code>.svg</code></em> para Opera, Iphone y Chrome</li><li>Y por ultimo un formato <em><code>.woff</code></em> pensado a futuro a convertirse en un standard</li></ul><p
style="text-align: left;">Como te lo he mencionado, no todas las fuentes son elegibles para ser embebidas en la web. Es muy recomendable leer bien los legales de cada fuentes para no llevarnos sorpresas.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/diseno/genera-propio-font-face-kit/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Easy un CSS/HTML/JavaScript Framework</title><link>http://eliseos.net/css/easy-css-html-javascript-framework/</link> <comments>http://eliseos.net/css/easy-css-html-javascript-framework/#comments</comments> <pubDate>Mon, 07 Dec 2009 20:52:36 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[framework]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2391</guid> <description><![CDATA[Easy es un CSS/HTML/JavaScript Framework para todos aquellos que diseñan a modo front-end para poder reducir el tiempo de producción de un proyecto, reciclando elementos comunes]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><strong><a
title="Easy CSS/HTML/JavaScript framework" href="http://easyframework.com/">Easy</a></strong> es un CSS/HTML/JavaScript Framework para todos aquellos que diseñan a modo front-end para poder reducir el tiempo de producción de un proyecto, reciclando elementos comunes.</p><p
style="text-align: center;"><a
href="http://easyframework.com/"><img
class="alignnone size-full wp-image-2393" title="Easy CSS/HTML/JavaScript framework" src="http://eliseos.net/wp-content/uploads/2009/12/Easy-CSS-HTML-JavaScript-framework.jpg" alt="Easy CSS/HTML/JavaScript framework" width="500" height="250" /></a></p><p
style="text-align: left;">Easy incluye los siguientes archivos para que comiences a trabajar:</p><ul><li>Un documento html en blanco que incluye los links necesarios para que comiences con la produccion</li><li>Un documento HTML a modo de demo para observar como se comporta el Framework</li><li>Hojas de estilos, <em><code>screen.css</code></em> y <em><code>print.css</code></em></li><li><em><code>easy.js</code></em> donde de se incluyen todas las funciones mencionadas</li><li><em><code>main.js</code></em> para añadir o modificar nuevas funciones</li><li>Una versión comprimida de jQuery</li></ul><p
style="text-align: left;">La <strong><a
title="Easy Fremework documentation" href="http://easyframework.com/documentation.php">documentación</a></strong> de Easy es muy rica, por lo que no te toparas con problemas a  la hora de implementar este Framework.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/easy-css-html-javascript-framework/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Crea simples botones con CSS3</title><link>http://eliseos.net/css/crea-simples-botones-css3/</link> <comments>http://eliseos.net/css/crea-simples-botones-css3/#comments</comments> <pubDate>Thu, 03 Dec 2009 21:12:47 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[botones]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2375</guid> <description><![CDATA[Hace unos dias les hable de una técnica para estilizaren botones CSS. Hoy trabajando un  diseño necesita un botón con este estilo pero mas simple, entonces recordé una técnica que por medio de CSS3 y sin la necesidad de javascript ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Hace unos dias les hable de una técnica para estilizaren botones CSS. Hoy trabajando un  diseño, necesita un botón con ese estilo pero mas simple, entonces recordé una técnica que por medio de CSS3 y sin la necesidad de javascript podemos crear botones simples y minimalistas que se verán uniformemente en todos los navegadores (por lo menos en aquellos que soporten algunas reglas CSS3)</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2009/12/Botones-con-CSS3.png" alt="Simples botones con CSS3" title="Simples botones con CSS3" width="500" height="250" class="alignnone size-full wp-image-2377" /></p><p>A la técnica a la que hago referencia es tomada de <strong><a
title="Super Awesome Buttons with CSS3  and RGBa" href="http://www.zurb.com/playground/super-awesome-buttons/">Zurb</a></strong>, la cual funciona para los anchor <em><code>a</code></em> o <em><code>button</code></em>.</p><p>Basicamente se trata de combinar algunas de las nuevas reglas CSS3 como <em><code>text-shadow</code></em>, <em><code>box-shadow</code></em> y <em><code>border-radius</code></em> junto con el uso correcto de <em><code>RGBa</code></em></p><h2>Comencemos</h2><p>Nuestro markup</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;button class=&quot;large button blue&quot; type=&quot;submit&quot;&gt;Super Cool Button&lt;/button&gt;</pre></div></div><p>Como lo menciones anteriormente funciona tanto para los anchor <em><code>a</code></em> o <em><code>button</code></em></p><h2>CSS Básico</h2><p>Este seria el esqueleto de nuestro botón de esta <em><code>class</code></em> se van a apoyar luego otras para dar el efecto final.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.button</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#222</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/overlay-button.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Pequeño PNG que funciona a modo de gradient */</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.25</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Borde negro con transparencia en 25%*/</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Alinear corectamente el boton*/</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Borde para Firefox */</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.25</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Sombra negra en 25% para Firefox*/</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">visible</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* contedido sobrante visible*/</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">15px</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.25</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Sombra negra en 25% para el texto */</span>
	webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Borde para Webkit*/</span>
	webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.25</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Sombra negra en 25% para Webkit*/</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Importante para que el boton se ajuste a nuestro texto */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><h2>Estados del boton</h2><p>Para este caso solo vamos a personalizar el <em><code>hover</code></em> y el <em><code>active</code></em> para dar el efecto al presionar el botón y posicionar el cursor sobre él.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.button</span><span style="color: #3333ff;"><span style="color: #00AA00;">:</span>hover
</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#111</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.button</span><span style="color: #3333ff;"><span style="color: #00AA00;">:</span>active
</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><h2>Tamaños del boton</h2><p>Tenemos tres tamaños para &#8220;jugar&#8221; con nuestro botón. El medium, que seria el aplicado por defecto, el small un poco mas reducido en su tamaño; y el large un poco mas grande, obviamente gracias al <em><code>padding</code></em> que le aplicamos.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.small</span><span style="color: #6666ff;">.button</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.large</span><span style="color: #6666ff;">.button</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">19px</span> <span style="color: #933;">9px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><h2>Estilo del boton</h2><p>Dejo como ejemplo un botón de color azul-claro. Podes ajustar aquí el color del botón a tus necesidades</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.blue</span><span style="color: #6666ff;">.button</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#2daebf</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.blue</span><span style="color: #6666ff;">.button</span><span style="color: #3333ff;"><span style="color: #00AA00;">:</span>hover
</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#007d9a</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><h2>Nuestro boton final</h2><p>Hemos terminado con nuestra hoja de estilo por lo cual procedemos al markup en <em><code>HTML</code></em>:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;button class=&quot;large button blue&quot; type=&quot;submit&quot;&gt;Super Cool Button&lt;/button&gt;</pre></div></div><p>Y se vería de la siguiente forma:</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2009/12/boton-final.png" alt="boton final" title="boton final" width="500" height="79" class="alignnone size-full wp-image-2379" /></p><h2>Conclusiones</h2><p>Como lo podes observar el botón es muy simple de implementar, y lograras un resultado casi uniforme en todos los navegadores. Una de las contras que tiene esta técnica es que ciertas propiedades de CSS3 no son 100% soportadas por todos los navegadores, pero el resultado sera ligeramente similar. También te recomiendo que leas en <strong><a
title="Super Awesome Buttons with CSS3  and RGBa" href="http://www.zurb.com/playground/super-awesome-buttons/">Zurb</a></strong> un poco mas sobre esta técnica y experimentes para poder lograr un botón que adapte a tus exigencias.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/crea-simples-botones-css3/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Observa como un fuente se vera en la web</title><link>http://eliseos.net/css/observa-fuente-vera-web/</link> <comments>http://eliseos.net/css/observa-fuente-vera-web/#comments</comments> <pubDate>Tue, 17 Nov 2009 19:47:23 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[fuentes]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2332</guid> <description><![CDATA[WebFont Specimen es un proyecto con el objetivo de mostrarnos como se comporta y luce una fuente en web mediante la regla @font-face]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><strong><a
title="Web Font Specimen" href="http://webfontspecimen.com/">WebFont Specimen</a></strong> es un proyecto con el objetivo de mostrarnos como se comporta y luce una fuente en web mediante la regla <em><code>@font-face</code></em>.</p><p
style="text-align: center;"><a
href="http://webfontspecimen.com/"><img
class="alignnone size-full wp-image-2333" title="Web Font Specimen" src="http://eliseos.net/wp-content/uploads/2009/11/Web-Font-Specimen1.jpg" alt="Web Font Specimen" width="500" height="250" /></a></p><p
style="text-align: left;"><span
id="more-2332"></span>Muchas veces no estamos seguro si la fuente que estamos visualizando en nuestro sistema se comportara de la misma forma, o si el renderizado según cada navegador sera el mismo  (seguramente no). Por eso con Web Font Specimen podemos hacer un test rápido para ver como se ajusta dicha fuente a la web mediante un <em><code>HTML</code></em> que el proyecto nos facilita.</p><p
style="text-align: left;">Solo debemos hacernos con una copia de Web Font Specimen, cargar nuestra fuente y modificar unas lineas para hacer el llamado a dicha fuente mediante <em><code>@font-face</code></em></p><p
style="text-align: left;">Este proyecto nos mostrara como se comporta la fuente teniendo en cuneta los encabezados, listas, texto en cursiva y negrita, diferente tamaños en el body, etc.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/observa-fuente-vera-web/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: eliseos.net @ 2010-03-16 08:21:41 by W3 Total Cache -->