Drupal CSS Analysis

sime - April 6, 2006 - 07:40

I wanted a complete list of classes and IDs in Drupal, so I did some analysis. You can find the results here:
http://urbits.com/_drupal/content/20060406/drupal_article01.php

Three reports:

  • Frequency of Classes in Drupal CSS
  • Frequency of IDs in Drupal CSS
  • Drupal CSS Classes and IDs in Context

These three reports are what I have been looking for to develop a clean style-sheet from scratch, but you may want to download the raw data for your own analysis. It's there if you want it.

Regards
Simon

just took a quick look....

chiggsy - April 6, 2006 - 08:19

Nice work!

Thanks

peacetroupe - April 6, 2006 - 08:38

Simon, thanks for sharing your time and work. This makes a very interesting read.

FYI, there is a small glitch in the display of this row of data, on the 'classes report' page:

.block-search

It looks like a tag element's ending is missing, as this displays in the 'total' column (right after the class name):

class="total"2

HTH, and thanks again.

--
http://PeaceTroupe.org
http://AccidentalTechie.org

thanks

sime - April 6, 2006 - 23:32

Fixed it up. Thanks peacetroupe

handbook

sampelo - April 17, 2007 - 16:34

really useful
how did you generate it?
we should put it in the handbook

Thanks. MS Excel. I used to

sime - April 17, 2007 - 23:50

Thanks. MS Excel. I used to do a lot of data analysis, so I used some tricks.

I don't know about the handbook, maybe. I think data is getting out of date now, especially with core splitting up the css into separate files. Also the real interesting themes now are Garland/Zen which aren't represented here.

site isn't working....

shrill - March 18, 2008 - 14:16

is this list somewhere else as well, or is there a new version?

sorry, new link for ya

sime - March 18, 2008 - 16:18

No update, it's getting pretty old but might be interesting still. Here's a link to the orginal files.
http://urbits.com/_drupal/content/20060406/drupal_article01.php

 
 

Drupal is a registered trademark of Dries Buytaert.