<?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>Bruce van der Kooij &#187; css</title>
	<atom:link href="http://blog.parsed.nl/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.parsed.nl</link>
	<description>Unfinished business.</description>
	<lastBuildDate>Fri, 16 Dec 2011 07:50:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Customized the styling for WP-Syntax</title>
		<link>http://blog.parsed.nl/2009/06/10/customized-the-styling-for-wp-syntax/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customized-the-styling-for-wp-syntax</link>
		<comments>http://blog.parsed.nl/2009/06/10/customized-the-styling-for-wp-syntax/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 02:57:39 +0000</pubDate>
		<dc:creator>Bruce van der Kooij</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hybrid]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://parsed.nl/?p=135</guid>
		<description><![CDATA[I wanted to post a diff earlier today so I started by looking for a WordPress plugin that would integrate a syntax highlighter, I quickly found in the form of WP-Syntax which utilizes GeSHi (a server side syntax highlighter). However, turns out the default Hybrid theme applies an ugly background image to any pre tags. [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted  to post a diff earlier today so I started by looking for a WordPress plugin that would integrate a syntax highlighter, I quickly found in the form of <a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a> which utilizes <a href="http://qbnz.com/highlighter/">GeSHi</a> (a server side syntax highlighter). However, turns out the default Hybrid theme applies an ugly background image to any pre tags.</p>
<p>I didn&#8217;t stop to try and figure out what The One True Way (TM) was so I just edited the relevant CSS files directly. The files I changed were wp-content/themes/hybrid/library/css/screen.css (to remove background) and  wp-content/plugins/wp-syntax/wp-syntax.css (to change the wrapping to pre-wrap).</p>
<p>For a lot of WP-Syntax examples take a look at the <a href="http://www.emacsblog.org/">Emacs Blog</a>.</p>
<p><strong>TODO:</strong></p>
<ul>
<li>Turns out the <a href="http://wordpress.org/extend/plugins/wp-syntax/other_notes/">correct way to modify wp-syntax.css</a> was described in the notes section of the WP-Syntax plugin page:</li>
</ul>
<blockquote><p>To customize your styling, copy the default wp-content/plugins/wp-syntax/wp-syntax.css to your theme&#8217;s template directory and modify it. If a file named wp-syntax.css exists in your theme&#8217;s template directory, this stylesheet is used instead of the default.</p></blockquote>
<ul>
<li>Seems the border is a bit buggy.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.parsed.nl/2009/06/10/customized-the-styling-for-wp-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s the deal with custom backgrounds?</title>
		<link>http://blog.parsed.nl/2009/06/10/whats-the-deal-with-custom-backgrounds/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=whats-the-deal-with-custom-backgrounds</link>
		<comments>http://blog.parsed.nl/2009/06/10/whats-the-deal-with-custom-backgrounds/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 02:34:52 +0000</pubDate>
		<dc:creator>Bruce van der Kooij</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[microblogging]]></category>
		<category><![CDATA[please kill me now]]></category>
		<category><![CDATA[stylish]]></category>
		<category><![CDATA[take back the web]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://parsed.nl/?p=125</guid>
		<description><![CDATA[I&#8217;m quite content with using Identi.ca, a microblogging service that runs on top of the open source microblogging engine Laconica, where thankfully custom backgrounds are just not done (no patches please). On that other microblogging site however, you know the anti-freedom one, that&#8217;s most definitely not the case. Some folks have even build an entire [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m quite content with using <a href="http://identi.ca/brucevdk">Identi.ca</a>, a microblogging service that runs on top of the open source microblogging engine <a href="http://laconi.ca/trac/">Laconica</a>, where thankfully custom backgrounds are just not done (no patches please). On that other microblogging site however, you know the anti-freedom one, that&#8217;s most definitely not the case. Some folks have even build an entire business model around providing <a href="http://www.channelvmedia.com/blog/bid/17563/The-Twitter-Background-Conundrum">background design advice</a>.</p>
<p>So to stop the madness once and for all I decided to take the law into my own hands and user customize the user customizations using <a href="https://addons.mozilla.org/en-US/firefox/addon/2108">Stylish</a> (<a href="http://www.mozilla.org/unix/customizing.html#usercss">userContent.css</a> is too unwieldy as you have to restart Firefox). All you have to do after installing Stylish is add the following user style (note that the <a href="http://www.w3.org/TR/CSS2/cascade.html#important-rules">!important</a> bit is required to override the original author&#8217;s rules with those from the user stylesheet):</p>
<p><strong>UPDATE:</strong> turns out users can could customize colors too so I added the necessary declarations to put an end to that to.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@namespace url(http://www.w3.org/1999/xhtml);</span>
&nbsp;
<span style="color: #a1a100;">@-moz-document domain(&quot;twitter.com&quot;) {</span>
    <span style="color: #808080; font-style: italic;">/* Change the background image and color */</span>
    body <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333333</span> !important<span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#9AE4E8</span>  <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">http://assets2.twitter.com/images/bg.gif</span><span style="color: #00AA00;">&#41;</span>  <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">fixed</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #00AA00;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">/* Change the default font color */</span>
    body<span style="color: #00AA00;">,</span> ul<span style="color: #cc00cc;">#tabMenu</span> li a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> <span style="color: #6666ff;">.section</span> h1<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> <span style="color: #6666ff;">.stat</span> a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> <span style="color: #6666ff;">.stats</span> a span<span style="color: #6666ff;">.stats_count</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> div<span style="color: #6666ff;">.section-header</span> h1<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> div<span style="color: #6666ff;">.user_icon</span> a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> div<span style="color: #6666ff;">.user_icon</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> div<span style="color: #6666ff;">.section-header</span> h3<span style="color: #6666ff;">.faq-header</span><span style="color: #00AA00;">,</span> ul<span style="color: #6666ff;">.sidebar-menu</span> li<span style="color: #6666ff;">.active</span> a<span style="color: #00AA00;">,</span> li<span style="color: #6666ff;">.verified-profile</span> a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> <span style="color: #6666ff;">.promotion</span> a <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333333</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #00AA00;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">/* Change the font color for most links */</span>
    a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#content</span> tr<span style="color: #6666ff;">.hentry</span><span style="color: #3333ff;">:hover </span>a<span style="color: #00AA00;">,</span> body<span style="color: #cc00cc;">#profile</span> <span style="color: #cc00cc;">#content</span> div<span style="color: #6666ff;">.hentry</span><span style="color: #3333ff;">:hover </span>a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> <span style="color: #6666ff;">.stats</span> a<span style="color: #3333ff;">:hover </span>span<span style="color: #6666ff;">.stats_count</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> div<span style="color: #6666ff;">.user_icon</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> li<span style="color: #6666ff;">.verified-profile</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> <span style="color: #6666ff;">.promotion</span> <span style="color: #6666ff;">.definition</span> strong <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0084B4</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #00AA00;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">/* Change the font color of the line containing the time of the notice and some other bits  */</span>
    ol<span style="color: #6666ff;">.statuses</span> span<span style="color: #6666ff;">.meta</span> a<span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.hentry</span> <span style="color: #6666ff;">.meta</span> a <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#999999</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #00AA00;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">/* The rest is for for the menu on the right */</span>
    <span style="color: #cc00cc;">#side_base</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;">#DDFFCC</span> !important<span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#BDDCAD</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #00AA00;">&#125;</span>
&nbsp;
    <span style="color: #cc00cc;">#side</span> hr <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#BDDCAD</span> <span style="color: #993333;">none</span> <span style="color: #993333;">repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #00AA00;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">/* Headers in the side menu */</span>
    ul<span style="color: #6666ff;">.sidebar-menu</span> li<span style="color: #6666ff;">.active</span> a<span style="color: #00AA00;">,</span> ul<span style="color: #6666ff;">.sidebar-menu</span> li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> div<span style="color: #cc00cc;">#custom_search</span><span style="color: #6666ff;">.active</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#side</span> <span style="color: #6666ff;">.promotion</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.notify</span> div <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;">#EDFFE5</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And you&#8217;ll end up with just a pretty cloud and the default theme colors :-)</p>
<p><strong>UPDATE:</strong> turns out somebody else had already written <a href="http://userstyles.org/styles/9978">another user style</a> to achieve this. No problem though as it was fun to do this myself and I learned quite a bit in the process about using Stylish properly :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.parsed.nl/2009/06/10/whats-the-deal-with-custom-backgrounds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

