<?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>miahz &#187; CSS</title>
	<atom:link href="http://miahz.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://miahz.com</link>
	<description></description>
	<lastBuildDate>Sat, 07 Apr 2012 20:29:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2-RC2</generator>
		<item>
		<title>Updated MySpace Stuff</title>
		<link>http://miahz.com/2007/05/updated-myspace-stuff/</link>
		<comments>http://miahz.com/2007/05/updated-myspace-stuff/#comments</comments>
		<pubDate>Mon, 28 May 2007 06:49:31 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2007/05/28/updated-myspace-stuff/</guid>
		<description><![CDATA[I gave my MySpace styles a new home here: miahzÃ¢â‚¬â„¢s MySpace Profile Stylesheet and here: miahz&#8217;s MySpace Blog Stylesheet. I also added a few new rules for the Calendar section on the profile stylesheet. I had never had any calendar events, so didn&#8217;t know it needed some extra help. MySpace code is disgusting&#8212;endless nested tables, ]]></description>
			<content:encoded><![CDATA[<p>I gave my MySpace styles a new home here:<br />
<a href="http://miahz.com/projects/myspace/">miahzÃ¢â‚¬â„¢s MySpace Profile Stylesheet</a><br />
and here:<br />
<a href="http://miahz.com/projects/myspace-blog/">miahz&#8217;s MySpace Blog Stylesheet</a>.</p>
<p>I also added a few new rules for the Calendar section on the <a href="http://miahz.com/projects/myspace/">profile stylesheet</a>.  I had never had any calendar events, so didn&#8217;t know it needed some extra help.  MySpace code is disgusting&#8212;endless nested tables, nearly impossible to style.</p>
<p>On the <a href="http://miahz.com/projects/myspace-blog/">blog styles page</a>, i have the actual custom CSS code as well as the settings i used on the Customize My Blog page.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2007/05/updated-myspace-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>miahz&#8217;s Custom MySpace Profile &amp; Blog Stylesheets</title>
		<link>http://miahz.com/2007/04/miahzs-myspace-profile-blog-stylesheets/</link>
		<comments>http://miahz.com/2007/04/miahzs-myspace-profile-blog-stylesheets/#comments</comments>
		<pubDate>Mon, 23 Apr 2007 05:44:47 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2007/04/23/miahzs-myspace-profile-blog-stylesheets/</guid>
		<description><![CDATA[Update 20070528: The styles on this page are obsolete. The current stuff is on these pages: miahzÃ¢â‚¬â„¢s MySpace Profile Stylesheet miahz&#8217;s MySpace Blog Stylesheet Someone asked for the stylesheets i used for my MySpace profile, but, ironically, there was no way to post the commented CSS on MySpace. So here they are. I developed these ]]></description>
			<content:encoded><![CDATA[<p><ins datetime="2007-05-28T06:51:03+00:00">Update 20070528: The styles on this page are obsolete.  The current stuff is on these pages:<br />
<a href="http://miahz.com/projects/myspace/">miahzÃ¢â‚¬â„¢s MySpace Profile Stylesheet</a><br />
<a href="http://miahz.com/projects/myspace-blog/">miahz&#8217;s MySpace Blog Stylesheet</a></ins></p>
<p>Someone asked for the stylesheets i used for <a href="http://myspace.com/miahz">my MySpace profile</a>, but, ironically, there was no way to post the commented CSS on MySpace.  So here they are.</p>
<p>I developed these more or less from scratch over a year ago, and haven&#8217;t looked at them since.  I tried to document as much as i could at the time, but i don&#8217;t really remember what all is going on now as far as the code goes.  MySpace is a mess, so basically the routine is: undo MySpace&#8217;s styles, then add back your own.  In this case, i was going for clean and easy to read.  The left column is in a sans-serif font on a beige background; the right is seriffed in the &#8220;opposite&#8221; colors.  I didn&#8217;t use any images.  I mainly worked with the colors and typography.  Some comfortable line-spacing does wonders for readability.  The blog was a little easier to play with, so it has the negative-space dates that i wanted.  It all looks pretty much how i want it to in Firefox; Internet Explorer doesn&#8217;t quite do it right, but it&#8217;s close.</p>
<p>MySpace strips any comments in CSS and doesn&#8217;t allow pound signs (#) in profile styles, but they work fine in custom stylesheets for blogs.  Mike Davidson has <a href="http://www.mikeindustries.com/blog/archive/2006/04/hacking-myspace-layouts" title="Mike Davidson: Hacking A More Tasteful MySpace">more details on MySpace&#8217;s funkiness</a>.<br />
<ins datetime="2007-04-24T06:15:00+00:00"><br />
Update 20070424: not sure if these are the exact same styles on my current profile&#8212;i might have made some tweaks somewhere along the way that i forgot about.  Also, it occurred to me that there are other blog style options that would affect how my custom stylesheet works.  I&#8217;ll maybe post my settings for that at some point.</ins></p>
<p><a href="http://www.flickr.com/photos/miahz/469456484/" title="My MySpace Profile, April 2007 on Flickr - Photo Sharing!"><img src="http://farm1.static.flickr.com/184/469456484_8293986fc5_m.jpg" width="120" height="240" alt="My MySpace Profile, April 2007" style="float: right;" /></a></p>
<p>This is the CSS for my profile:</p>
<pre>
/* BEGIN general styles */

/* base elements */

body {
  background-color: 222526;
  }

table {
  border: none;
  background-color: transparent;
  }

td {
  border: none;
  background-color: transparent;
  }

body,
td,
li,
p,
div,
textarea { /* counter x.myspace line 95 */
  color: 666666;
  }

/* END base elements */

a {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  }

a:link {
  color: 206980;
  }

a:hover {
  color: 206980;
  }

a:visited {
  color: 335A66;
  }

a.navbar:link { /* top menu text, links */
  color: gray;
  }

a.navbar:visited {
  color: 595959;
  }

 /* Contacting links */
.contactTable td.text a {
  }

.contactTable td.text a img {
  }

.contactTable td.text a:hover img {
  background-color: E5E3DA;
  }

a.redlink { /* "View All of ... Friends */
  font-family: inherit;
  font-size: inherit;
  }

a.redlink:link { /* "View All of ... Friends */
  color: 206980;
  }

a.redlink:hover {
  color: 206980;
  }

a.redlink:visited {
  color: 335A66;
  }

b font font, a.text { /* bottom menu text, links */
  color: 222222;
  }

.text { /* basic info: Headline, A/S/L, Last Login */
  color: 666666;
  }

.nametext { /* NAME */
  letter-spacing: 1ex;
  padding-left: 3ex;
  font-weight: normal;
  font-family: Georgia, "Times New Roman", serif;
  color: 222526;
  font-size: 10ex;
  }

.blacktext12 { /* ...is in your extended network BFBEB6 */
  color: black;
  font-size: 10px;
  display: none;
  }

.whitetext12 { /* Interests, Details */
  font-size: 20px;
  color: AABABF;
  font-weight: normal;
  display: block;
  background-color: 222526;
  padding: 1ex 2ex;
  margin-left: -3ex;
  margin-bottom: 1ex;
  }

.lightbluetext8 { /* MAIN > LEFT > Interests, Details subheaders (General, Music, Movies, etc.) */
  font-size: 13px;
  color: 206980;
  }

.text .text .whitetext12 { /* Contacting, Interests headers */
  color: red;
  }

.orangetext15 { /* Blurbs (About Me:, Who I'd like to meet:) Friends, Friend Comments */
  display: block;
  font-family: Georgia, "Times New Roman", serif !important;
  color: D9D0A3;
  font-weight: normal;
  font-size: 18px;
  padding: 1ex 2ex 0 2ex;
  }

.text .text .orangetext15 { /* Blurbs, Friends, Comments headers */
  font-size: 4ex;
  background-color: D9D7CE;
  color: black;
  margin-left: -2ex;
  margin-bottom: 1ex;
  padding: 1ex;
  }

.btext { /* "... Latest Blog Entry" . "has XX friends" */
  color: inherit;
  font-family: inherit;
  }

.redtext, /* MAIN > RIGHT > Comments > Displaying "XX" comments */
.redbtext { /* MAIN > RIGHT > Friends > has "XX" friends */
  color: ffdf00;
  }

.blacktext10 { /* MAIN > RIGHT > Comments > comment timestamp */
  font-family: inherit;
  color: 404039;
  }

.text table {
  border-width: 0 !important;
  }

div table font { /* top nav menu */
  color: gray;
  }

div div table font { /* undo for above rule */
  color: inherit;
  }

font input { /* top search form */
  background-color: 333333 !important;
  color: cccccc !important;
  border-style: solid;
  border-width: 1px;
  border-color: gray;
  }

/* END general styles */

/* BEGIN profile page styles */

body div table table td {
  background-color: transparent;
  }

body table {
  }

body table td { /* trying to shrink cell on left of main content table */
  width: 0;
  }

body table td img { /* trying to shrink cell on left of main content table */
  display: none;
  }

body table td td img { /* trying to shrink cell on left of main content table */
  display: inline;
  }

body table table td { /* undo above in children */
  }

body div table td { /* ditto */
  }

body table table {
  }

body div div table {
  background-color: transparent;
  background-image: none;
  }

body table table table {
  background-color: transparent;
  background-image: none;
  }

body div div table {
  }

body table table td { /* main content columns */
  background-color: D9D7CE;
  width: 0;
  }

/* main content columns links */
body table table table td a:link {
  text-decoration: underline;
  }

body table table table td a:hover {
  text-decoration: underline;
  background-color: E5E3DA;
  }

body table table table td a:visited {
  text-decoration: underline;
  }

.miahz-interests-general,
.miahz-interests-music,
.miahz-interests-movies,
.miahz-interests-television,
.miahz-interests-books,
.miahz-interests-heroes,
.miahz-content-aboutme,
.miahz-content-likemeet { /* main content divs */
  line-height: 175%;
  }

.miahz-interests-general p,
.miahz-interests-music p,
.miahz-interests-movies p,
.miahz-interests-television p,
.miahz-interests-books p,
.miahz-interests-heroes p,
.miahz-content-aboutme p,
.miahz-content-likemeet p { /* main content ps */
  margin-top: 0;
  }

body table table td.text { /* right content column */
  background-color: black;
  }

/* right content text */
body table table td.text body,
body table table td.text td,
body table table td.text li,
body table table td.text p,
body table table td.text div,
body table table td.text textarea { /* counter x.myspace line 95 */
  color: 808080;
  font-family: Georgia, "Times New Roman", serif;
  }

/* right content  links */
body table table td.text a:link {
  text-decoration: none;
  }

body table table td.text a:hover {
  text-decoration: underline;
  background-color: transparent;
  color: 309EBF;
  }

body table table td.text a:visited {
  text-decoration: none;
  }

body table table td.table { /* right column sub tables */
  width: 100%;
  }

body table table table td,
body div div table table td,
body table table table td.text { /* undo above */
  background-color: transparent;
  }

td.text td.text td b { /* Displaying n of n comments... */
  margin-bottom: 2ex;
  }

td.text td.text table table tr { /* individual comment containers */
  }

td.text td.text table table td { /* individual comment blocks */
  line-height: 175%;
  }

.text div img { /* Online Now! icon */
  }

/* END profile page styles */
</pre>
<p><a href="http://www.flickr.com/photos/miahz/469512587/" title="My MySpace Blog, April 2007 on Flickr - Photo Sharing!"><img src="http://farm1.static.flickr.com/169/469512587_deea856905_m.jpg" width="120" height="240" alt="My MySpace Blog, April 2007" style="float: right;" /></a></p>
<p>This is the CSS for my blog:</p>
<pre>
a:link,
a:visited,
a:active {
  font-family: inherit !important;
  font-size: inherit !important;
  text-decoration: inherit !important;
  }

table.blog a:link {
  font-family: inherit;
  }

a:hover {
  text-decoration: underline !important;
  }

table.main {
  margin: 0 auto;
  }

table.main table.profile {
  border: none;
  }

table.blog {
  margin-bottom: 1ex;
  }

table.blog table.blog {
  }

table.blog td {
  background-color: #222526;
  }

table.blog .spacer td {
  background-color: transparent;
  height: 2ex;
  }

table.blog td td {
  background-color: inherit;
  }

table.blog table.blog td {
  }

table.blog,
table.blog a {
  }

table.blog p {
  }

table.blog table.blog td p,
table.blog table.blog td ul {
  line-height: 1.75em;
  margin-left: 8ex;
  margin-right: 8ex;
  }

table.blog table.blog td * {
  }

table.blog table.blog td * * {
  }

table.blog table.blog .blogSubject {
  line-height: 1em;
  margin-top: 1em;
  position: relative;
  margin-left: 4ex;
  margin-right: 4ex;
  text-indent: -2ex;
  }

table.blog table.blog .blogContent {
  }

table.blog table.blog .blogContentInfo {
  clear: both;
  line-height: 1em;
  position: relative;
  margin-left: 2ex;
  margin-right: 2ex;
  }

table.blog table.blog .blogContentInfo,
table.blog table.blog .blogContentInfo a {
  font-size: 11px;
  font-family: Verdana;
  color: #335A66;
  }

.blogContent img {
  background-color: white;
  padding: 1ex;
  margin: 1ex;
  }

.blogCommentsProfile,
a b {
  font-weight: normal !important;
  }

.blogCommentsProfile a {
  font-size: smaller !important;
  }

.blogComments .blogComments { /* comments container block */
  padding: 2ex;
  }

.blogComments .blogComments p {
  line-height: 1.75em;
  }

.blogComments .blogComments .blogCommentsContent {
  font-family: Georgia, "Times New Roman", serif !important;
  }

strong font,
strong font a {
  color: black !important;
  }

.miahz-blog-header {
  text-align: left;
  font-family: sans-serif;
  font-family: Arial;
  font-family: Lucida Grande;
  font-family: Lucida Sans Unicode;
  font-size: .75em;
  background-color: #222526;
  padding: 1em 2em;
  }

.miahz-blog-header h1 {
  font-size: 1.5em;
  }

.miahz-highlight {
  color: #ffdf00;
  }

/* miahz.com negative-space-effect datestamps */

table.blog td {
  position: relative;
  overflow: hidden;
  display: block;
  }

table.blog td td {
  display: table-cell;
  }

	table.blog p.blogTimeStamp {
	  color: #000000;
	  font-family: Georgia, "Times New Roman", Times, serif;
	  font-weight: bold;
	  text-align: right;
	  text-transform: lowercase;
	  font-size: 35px;
	  margin: 0;
	  position: absolute;
	  top: -23px;
	  right: -10px;
	  text-align: right;
	  }
</pre>
<p>I can try to answer questions, but like i said&#8212;it&#8217;s been a while since i messed with this.  There might even be problems or errors with the code.  If it blows up your profile it&#8217;s not my fault.  I spent time working on this, so i&#8217;d encourage you to put in some effort to change some colors or something and not straight jack it.  Use it as a jump-off to create your own look.  Holler at me with some <a href="http://miahz.com/log/2007/04/23/miahzs-myspace-profile-blog-stylesheets/" title="miahzÃ¢â‚¬â„¢s MySpace Profile &#038; Blog Stylesheets">link love</a> if you like it or end up using it.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2007/04/miahzs-myspace-profile-blog-stylesheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the process</title>
		<link>http://miahz.com/2006/04/the-process/</link>
		<comments>http://miahz.com/2006/04/the-process/#comments</comments>
		<pubDate>Tue, 25 Apr 2006 10:13:41 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2006/04/25/the-process/</guid>
		<description><![CDATA[A lot of what is going on in this phase is basically synching with the 1.x changes to Firefox. The last release-quality version of LCD was during the 0.8 era. I maintained a working copy on the newer releases at home, but usually only hacked it up enough to get it working. The code was ]]></description>
			<content:encoded><![CDATA[<p>A lot of what is going on in this phase is basically synching with the 1.x changes to Firefox.  The last release-quality version of LCD was during the 0.8 era.  I maintained a working copy on the newer releases at home, but usually only hacked it up enough to get it working.  The code was ugly, and often the look was not quite as polished as i&#8217;d like.  The theme was pretty durable, and stood up to many updates to the browser through 1.0, but 1.5 brought a lot of big changes that weren&#8217;t quick fixes.</p>
<p>When major breakage is encountered it&#8217;s usually easiest for me to just copy the related CSS files from the release classic.jar.  That gives me a working baseline.  From there, it&#8217;s a lot of whittling unnecessary code and unstyling native-look properties to a bare-minimum stylesheet.</p>
<p>CSS often comes from Mozilla in no kind of order, so at some point i usually rearrange stylesheets so they make sense to me.  That means grouping styles related to the same elements, usually with hierachical indentation, and then ordering things in some logical way&#8212;usually using the source XUL as a reference.  DOMI helps here.</p>
<p>Even with DOMI there&#8217;s a lot of trial and error as i narrow in on the elements and selectors i need and want to style.  Around this time&#8212;when i have a good grasp of what is doing what, and why i&#8217;m styling it a certain way&#8212;is when i add as much commenting as i can.  Two years later i wish i would have been completely thorough, but the good bit of comments i did make have been priceless.</p>
<p>Eventually, i replace the entire stylesheet with original selectors and properties with consistent formatting that works for me.  Often i find that most instance-specific styles are unnecessary for this theme, and i&#8217;ll remove just about all of the styling rules that were in the original Winstripe theme.  It was a goal of mine to have solid global styles that could cascade down and work in as many situations as possible, relying on global element and class styles as much as possible.  It&#8217;s also due to the clean, simple look i was going for.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2006/04/the-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More On Bug 235277 And The Flex Hack</title>
		<link>http://miahz.com/2006/02/more-on-bug-235277-and-the-flex-hack/</link>
		<comments>http://miahz.com/2006/02/more-on-bug-235277-and-the-flex-hack/#comments</comments>
		<pubDate>Fri, 24 Feb 2006 19:26:09 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[bugs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2006/02/24/more-on-bug-235277-and-the-flex-hack/</guid>
		<description><![CDATA[My patch for Bug 235277 was essentially my &#8220;flex hack&#8221; that i developed while working on LCD. It uses the -moz-flex style property to force an element to fill the available space in its container, and then flips that object&#8217;s orientation in its container using -moz-orient: vertical so that it expands vertically instead of horizontally. ]]></description>
			<content:encoded><![CDATA[<p><a href="https://bugzilla.mozilla.org/attachment.cgi?id=161813&#038;action=view" title="Bug 235277 - patch: make go button look more like other buttons">My patch</a> for <a href="http://miahz.com/log/2006/02/24/mozilla-bug-235277-resolved-fixed/" title="miahz.com Ã‚Â» Blog Archive Ã‚Â» Mozilla Bug 235277: RESOLVED, FIXED">Bug 235277</a> was essentially my &#8220;flex hack&#8221; that i developed while working on <a href="http://miahz.com/projects/lcd/" title="miahz.com - LCD theme for Mozilla Firefox">LCD</a>.  It uses the <code>-moz-flex</code> style property to force an element to fill the available space in its container, and then flips that object&#8217;s orientation in its container using <code>-moz-orient: vertical</code> so that it expands vertically instead of horizontally.  I&#8217;ve also used this for effects in other areas of my theme like the menubar.  The main menuitems expand when toolbarbuttons or other objects expand the menubar instead of floating in the middle.  This managed to <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=304216#c13" title="Bug 304216 - Menu bar highlight too large - Comment #13">find its way into Firefox&#8217;s menu bar</a> via <a href="https://bugzilla.mozilla.org/attachment.cgi?id=159666" title="Bug 253661 - patch: super-duper menus fix (simplified)">one of my patches</a>.</p>
<p>The hack originated as a way to get <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=235277#c5" title="Bug 235277 - make go button look like other toolbar buttons - Comment #5">the old Go button to match the other toolbarbuttons</a> in my theme.  I then began using it as a way to dynamically increase button sizes when space was available, according to <a href="http://asktog.com/basics/firstPrinciples.html#fitts's%20law" title="AskTog: First Principles of Interaction Design">Fitts&#8217; Law</a> of interaction design (bigger targets are easier/faster to hit).</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2006/02/more-on-bug-235277-and-the-flex-hack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>status 20060130-0139</title>
		<link>http://miahz.com/2006/01/status-20060130-0139/</link>
		<comments>http://miahz.com/2006/01/status-20060130-0139/#comments</comments>
		<pubDate>Mon, 30 Jan 2006 07:21:20 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[bugs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2006/01/30/status-20060130-0139/</guid>
		<description><![CDATA[Did the same tab icons fix i had to do for Flock. For all my tab icon effects, i used variations of the selector tab > .tab-icon {} in browser/browser.css. The new .tab-middle element stuck in the middle broke that selector, and all my tab icon effects. But instead of adding the tab-middle class to ]]></description>
			<content:encoded><![CDATA[<p>Did the same tab icons fix i had to do for Flock.  For all my tab icon effects, i used variations of the selector <code>tab > .tab-icon {}</code> in browser/browser.css.  The <a href="http://forums.mozillazine.org/viewtopic.php?t=197434" title="Theme changes from 1.0 to 1.5.0.* - MozillaZine Forums">new .tab-middle element</a> stuck in the middle broke that selector, and all my tab icon effects.  But instead of adding the tab-middle class to the selector, i just removed the <a href="http://www.w3.org/TR/css3-selectors/#child-combinators" title="Selectors - 8.2. Child combinators">&#8216;>&#8217;child combinator</a>: <code>tab .tab-icon {}</code>.</p>
<p>The focus ring for button elements had drifted slightly out of alignment since 1.0, which i&#8217;d guess is something related to <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=151375" title="Bug 151375 - focus outline should be drawn outside of element">Bug 151375</a>.  I used the -moz-outline property to draw the dotted line, and it had expanded out by 1px.  The <a href="http://developer.mozilla.org/en/docs/Mozilla_CSS_Extensions#-moz-outline-offset" title="Mozilla CSS Extensions - MDC">-moz-outline-offset property</a> looked like it might get the job done.  So i added it with a value of -1px, and it did the trick nicely.  Not sure about backwards-compatibility, but i&#8217;m also not all that worried about it.</p>
<p>Firefox looks less <a href="http://miahz.wordpress.com/2005/11/09/broken-stuff/" title="miahz [Digitaler Quality] - Broken Stuff">busted than Flock did in its first fitting</a>.  I think the main visual oddity is the feed icon dealy in the Location Bar, which needs an icon and some tailoring.  Behind the scenes, the biggest movement will be getting the new Options window working.  There&#8217;s some slight unstyling in the Extensions and Downloads windows that needs to be synced up.  The Page Info dialog tabbox also lost a bit of styling, but should be trivial to fix.  The Help window has the Back/Forward button dropmarker bustage again; seems like i had to fix the exact same thing for 1.0.</p>
<p>I guess i&#8217;ll also need to add in support for the <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=175893" title="Bug 175893 - Make XUL &lt;tab&gt;'s focusable">new focusable tabs</a>.  Not yet sure if that&#8217;s going to require any heavy lifting.</p>
<p>I&#8217;m sure i&#8217;ll find more little nits and picks as i dig more.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2006/01/status-20060130-0139/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mozilla Theme CSS Tips</title>
		<link>http://miahz.com/2006/01/mozilla-theme-css-tips/</link>
		<comments>http://miahz.com/2006/01/mozilla-theme-css-tips/#comments</comments>
		<pubDate>Wed, 25 Jan 2006 10:02:41 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[wanderings]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2006/01/25/5-tips-for-organizing-your-theme-css/</guid>
		<description><![CDATA[Erratic Wisdom shares five tips for maintaining your stylesheets [via derkilicious]. And here are my thoughts on those tips as they apply to CSS for Mozilla themes. Indent descendant and related rules. I couldn&#8217;t imagine maintaining an entire theme without structurally-indented stylesheets. They mate perfectly with the XUL hierarchy. I&#8217;ll often insert empty selectors to ]]></description>
			<content:encoded><![CDATA[<p>Erratic Wisdom shares <a href="http://erraticwisdom.com/2006/01/18/5-tips-for-organizing-your-css" title="Erratic Wisdom: 5 Tips for Organizing Your CSS">five tips for maintaining your stylesheets</a> [<a href="http://derek.wordpress.com/2006/01/19/links-for-2006-01-20/" title=".derkilicious Ã‚Â» Blog Archive Ã‚Â» links for 2006-01-20">via derkilicious</a>].  And here are my thoughts on those tips as they apply to CSS for Mozilla themes.</p>
<p><span id="more-439"></span>
<ol>
<li><cite>Indent descendant and related rules.</cite>  I couldn&#8217;t imagine maintaining an entire theme without structurally-indented stylesheets.  They mate perfectly with the XUL hierarchy.  I&#8217;ll often insert empty selectors to fill in the structure of the stylesheet so it&#8217;s easier to follow and debug later.</li>
<li><cite>Use shorthand properties.</cite>  Using shorthand properties may cut down on file size, but i sometimes find it easier to test and debug with full rules written out so i can change, remove, or comment out individual properties line by line.  I&#8217;ll also sometimes use a shorthand group and then follow it with a specific longhand property which overrides the previous rule.  File size is less of an issue with XUL themes since the stylesheets are used locally and don&#8217;t have to be downloaded, so i&#8217;m less concerned about being &#8220;efficient&#8221; in this way.</li>
<li><cite>Divide your stylesheet into sections.</cite>  Firefox&#8217;s defualt theme stylesheets are often terribly convoluted from years of patching.  Grouping things together logically keeps you organized and helps prevent redundant or conflicting style rules.  Using commented &#8220;headers&#8221; (or <a href="http://www.stopdesign.com/log/2005/05/03/css-tip-flags.html" title="Stopdesign | CSS Organization Tip 1: Flags">flags</a>) to break up a sheet into logical sections goes hand-in-hand with the first tip.  You can have the cleverest code in the land, but what good is it if you can&#8217;t read it when it&#8217;s time to update?  When scanning thousand-line sheets you need these visual speed bumps to quickly get your bearings.  I even have multiple levels of headers for sections, subsections, etc.  Doesn&#8217;t matter how you format it as long as you&#8217;re consistent.  Just be careful with all these comments&#8212;one little slash can drive you crazy.</li>
<li><cite>Let the cascade flow.</cite>  This tip about the cascade is doubly important with XUL themes.  Writing efficient top-down CSS makes it easier to effect changes throughout the stylesheet and the entire theme.  Keep the lowest common denominators in the top-level base elements, then style variants using more and more specific selectors and properties down the line.  On the large scale, having well-defined global element styles goes a long way towards building a strong theme.  You&#8217;ll spend less time defining styles for browser and other features if they&#8217;re properly inheriting styles from the global set.  For example, <cite>toolbarbuttons</cite> are used everywhere and you can inject styles that they&#8217;ll all inherit in global/toolbarbutton.css, instead of styling each instance scattered throughout the UI.  That makes for efficient CSS <em>and</em> consistent theme design.</li>
<li><cite>Organization strategies.</cite>  The fifth tip wasn&#8217;t exactly a tip&#8212;more of a summary with some suggestions for how to use the preceding tips.</li>
</ol>
<p>While i&#8217;m at it, i&#8217;ll go ahead and add a few theme-specific tips of my own.</p>
<ul>
<li><cite>Comment, comment, comment.</cite>  The inner-workings of Mozilla are mysterious.  Your style rules could be even more mysterious.  Write comments.  Do it now.  You won&#8217;t know remember later.</li>
<li><cite>Optimize your stylesheets.</cite>  The quality of your CSS rules can have a real affect on how fast your theme is rendered.  Optimize your stylesheets using the guidelines in the <a href="http://developer.mozilla.org/en/docs/Writing_Efficient_CSS" title="Writing Efficient CSS - MDC"><cite>Writing Efficient CSS</cite></a> document at the Mozilla Developer Center.</li>
<li><cite>@import.</cite>  Break out large sections to external stylesheets with @import.  I moved all my bookmark styles from browser/browser.css to browser/bookmarks.css which i @import back into browser.css.  Functionally exactly the same, but easier to manage as separate files.</li>
<li><cite>The underscore hack.</cite>  This is probably my favorite.  The quickest way to disable a property is to tag an underscore (_) to the front of it.  Gecko sees the underscored properties and doesn&#8217;t recognize them so they are ignored.  Saves so much time when testing code or trying to isolate bugs&#8212;you can leave the properties in place and simply &#8220;turn them off&#8221; without deleting or changing them.  And it&#8217;s way quicker than trying to wrap stuff in comments.  Plus, they visually stand out in the stylesheets, so you can easily identify which properties are disabled.  Use this with longhand properties for very flexible style testing.  Beware&#8212;last time i checked, this trick doesn&#8217;t work in Internet Explorer because it incorrectly parses the underscored properties as normal.</li>
<li><cite>Identify with big bold color.</cite>  Use big, off-colored borders or backgrounds to help identify or find the <a href="http://www.w3.org/TR/css3-selectors/#selectors" title="Selectors">selectors</a> for elements you want to target.</li>
</ul>
<p>An example snippet showing some of the ideas mentioned above:<br />
<code>
<pre>/* =====| about.css |===== ===== */
 /* styles for extension/theme About dialogs */

#genericAbout {
  width: 30em;
  }

#clientBox {
  }

	#extensionName {
	  font-size: 1.25em;
	  font-weight: bold;
	  }

	#extensionVersion {
	  margin-left: 4ex;
	  }
		#extensionHomepage {
		 /* Visit Home Page links */
		  margin-right: 0;
		  padding-left: 1px; /* so outline doesn't overlap text */
		  _background-color: magenta;
		  cursor: pointer;
		  }</pre>
<p></code></p>
<p class="technoratitag">technorati tags: <a href="http://www.technorati.com/tag/css" rel="tag">CSS</a>, <a href="http://www.technorati.com/tag/mozilla" rel="tag">Mozilla</a>, <a href="http://www.technorati.com/tag/firefox+theme" rel="tag">Firefox theme</a>, <a href="http://www.technorati.com/tag/theme" rel="tag">theme</a>, <a href="http://www.technorati.com/tag/tips" rel="tag">tips</a>, <a href="http://www.technorati.com/tag/xul" rel="tag">XUL</a></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2006/01/mozilla-theme-css-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Old Faces</title>
		<link>http://miahz.com/2006/01/old-faces/</link>
		<comments>http://miahz.com/2006/01/old-faces/#comments</comments>
		<pubDate>Thu, 12 Jan 2006 08:34:27 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[trends]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[wanderings]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2006/01/12/old-faces/</guid>
		<description><![CDATA[For a while there, Georgia was the sign of a fresh site design. It meant the site probably used CSS and was even powered by some newfangled blog script. It was clean, appealing. Not the same old Times New Roman. Yet safe. But that was yesterday. Now it&#8217;s everywhere. Georgia is the new Times New ]]></description>
			<content:encoded><![CDATA[<p>For a while there, <a href="http://en.wikipedia.org/wiki/Georgia_%28font%29" title="Georgia (typeface) - Wikipedia, the free encyclopedia">Georgia</a> was the sign of a fresh site design.  It meant the site probably used CSS and was even powered by some newfangled blog script.  It was clean, appealing.  Not the same old <a href="http://en.wikipedia.org/wiki/Times_New_Roman" title="Times New Roman - Wikipedia, the free encyclopedia">Times New Roman</a>.  Yet <a href="http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html" title="Common fonts to all versions of Windows &#038; Mac equivalents (Browser safe fonts) - Web design tips &#038; tricks">safe</a>.  But that was yesterday.  Now it&#8217;s everywhere.  Georgia is the new Times New Roman.  The new default.  People end up using it without even knowing it used to be what&#8217;s up.</p>
<p>That&#8217;s why i love stopping by sites like Joe Clark&#8217;s <a href="http://blog.fawny.org/" title="Le Â«blog personnelÂ» de Joe Clark"><cite>fawny.blog</cite></a> [<a href="http://webstandards.org/buzz/archive/2006_01.html#a000599" title="The Web Standards Project - Failed Redesigns">via</a>].  So much going on typographically.  He lets the words <em>speak</em>.  He literally puts more <a href="http://blog.fawny.org/2005/06/12/semantics/#semantics-12-p-25" title="Le Â«blog personnelÂ» de Joe Clark Â» Semantics">meaning</a> into one paragraph than i don&#8217;t even know how to finish this analogy.  Somehow so visually appealing, yet nary a graphic in sight.  His stylesheets list over a dozen acceptable font faces so if you happen to have one of those fonts installed on your system, the page is rendered using that face instead of one of the boring standards.  Well done.  Forget <cite>Web 2.0</cite>.  Here&#8217;s to over-populated font sets.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2006/01/old-faces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Global White Space Reset</title>
		<link>http://miahz.com/2005/02/global-white-space-reset/</link>
		<comments>http://miahz.com/2005/02/global-white-space-reset/#comments</comments>
		<pubDate>Thu, 24 Feb 2005 04:49:30 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[wanderings]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2005/02/23/global-white-space-reset/</guid>
		<description><![CDATA[I was going to just bookmark this &#8220;least common denominator stylesheet&#8221; as a neat concept i&#8217;d like to try, but then i realized that it&#8217;s several months old and was amazed i hadn&#8217;t stumbled upon it yet. Definitely gonna give it a whirl when i revamp this place. via]]></description>
			<content:encoded><![CDATA[<p>I was going to just <a href="http://del.icio.us/url/102aff5fe2e4d9392947a536d5603339">bookmark</a> this <a href="http://leftjustified.net/journal/2004/10/19/global-ws-reset/" title="Global White Space Reset | Left Justified">&#8220;least common denominator stylesheet&#8221;</a> as a neat concept i&#8217;d like to try, but then i realized that it&#8217;s several months old and was amazed i hadn&#8217;t stumbled upon it yet.  Definitely gonna give it a whirl when i revamp this place. <a href="http://www.digitalmediaminute.com/article/1220/global-white-space-reset--left-justified" title="Digital Media MinuteÂ»Global White Space Reset | Left Justified">via</a></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2005/02/global-white-space-reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Status</title>
		<link>http://miahz.com/2005/01/status/</link>
		<comments>http://miahz.com/2005/01/status/#comments</comments>
		<pubDate>Fri, 14 Jan 2005 05:53:04 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2005/01/14/status/</guid>
		<description><![CDATA[Fixed a textbox margins problem that showed up with the Flat Bookmark Editing extension. [via via via] That extension adds the contents of the Properties panel to the Bookmarks Manager window so you can edit bookmarks without having to open dialogs. But the textboxes for Name, Location, etc. were being picked up by the toolbar ]]></description>
			<content:encoded><![CDATA[<p>Fixed a textbox margins problem that showed up with the <a href="http://bluweb.com/us/chouser/proj/mozhack/" title="Flat Bookmark Editing, Firefox Extension"><cite>Flat Bookmark Editing</cite></a> extension. [<a href="http://gemal.dk/blog/2005/01/04/extensions_i_use_part_3/" title="gemal.dk - Extensions I use - part 3">via</a> <a href="http://www.vasanthdharmaraj.com/PermaLink,guid,1b094809-2f03-4aad-a6b9-d04cd8126bb3.aspx" title="Vasanth Dharmaraj's Blogs - Cool extensions for Firefox and Thunderbird">via</a> <a href="http://gemal.dk/mozilla/blogupdates.html" title="gemal.dk - Mozilla - Mozilla Related Blogs aka Blogupdates">via</a>]  That extension adds the contents of the Properties panel to the Bookmarks Manager window so you can edit bookmarks without having to open dialogs.  But the textboxes for Name, Location, etc. were being picked up by the <code>toolbar textbox {}</code> rule i had in global/textbox.css, and therefore had no vertical margins, causing them to nudge up against each other into a big gray mass.  That selector was too broad, obviously, but up until now it was the simplest thing to cover the Location Bar, Search Bar, Bookmarks Manager search bar, and a few others.  It&#8217;s now fixed with a slightly more specific rule that leaves those textboxes alone so they appear with proper margins.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2005/01/status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prefwindow V</title>
		<link>http://miahz.com/2004/12/prefwindow-v/</link>
		<comments>http://miahz.com/2004/12/prefwindow-v/#comments</comments>
		<pubDate>Fri, 31 Dec 2004 17:34:33 +0000</pubDate>
		<dc:creator>Jeremiah</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://miahz.com/log/2004/12/31/prefwindow-v/</guid>
		<description><![CDATA[This is exactly what i had tried to do long ago using css hacks. When i first implemented the tabbed look of the options panel, i tried to rotate the window around so the tabs would be on top. I&#8217;ll have to grab a recent build and get my hands dirty. Interesting how there was ]]></description>
			<content:encoded><![CDATA[<p><a href="http://weblogs.mozillazine.org/ben/archives/007150.html" title="Inside Firefox - Prefwindow V">This is exactly what i had tried to do</a> long ago using css hacks.  When i first implemented the <a href="http://miahz.com/log/2003/11/28/options-category-buttons/">tabbed look of the options panel</a>, i tried to rotate the window around so the tabs would be on top.  I&#8217;ll have to grab a recent build and get my hands dirty.</p>
<p>Interesting how there was a season of calm for theme developers as 1.0 was stabilized.  This new development will hopefully be motivation to get going again myself.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://miahz.com/2004/12/prefwindow-v/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

