What is a purpose of reset-fonts-grids.css file?

Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2009-07-09 18:24

As it is stated by the name, its resets some CSS declarations
Trying to modify default theme it seems that this file may be doing to much
While many things are essential to the default theme, they otherwise interfere with some declarations in schema.css for the theme itself.
Should it be then just be part of the theme declaration instead of general case?

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 238
Posted: Fri, 2009-07-10 02:16

Serge D, I, as many others, prefer to start with a clean slate and then build it back up. You are more than free to replicate default to create your own theme without the reset.

--
2tbsp.com

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-07-10 02:18

FYI, organize.css has been removed:
http://github.com/gallery/gallery3/commit/31ffb82382d76390f1206944329dde86c687349c

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-07-10 02:50

Just took at look at G3's default home page with yslow. It's not really that "heavy". A non-cached page with 4 thumbs is about 190K and the CSS is only making up 17.7K of that.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2009-07-13 03:03

I did not say it is slow.
I said that reset redefines too match.
My original question states that I wanted to know the reason of splitting screen.css and reset-fonts-grids.css.
Second helps first, but being defined on global level interferes with custom themes until reference is removed

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 238
Posted: Mon, 2009-07-13 04:35

Serge D, I now understand your point more clearly. Use of reset here, however, is only an issue if you're editing the default theme. It shouldn't be an issue if you copy the default theme or create an entirely new one from scratch. In each case, just remove the link to the reset style sheet in your theme's page.html.php template.

--
2tbsp.com
2tbsp.com

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 238
Posted: Mon, 2009-07-13 04:37

I realize that this requires a fair amount of work on your part to style certain elements in your theme. I'm sure others will appreciate your efforts if you choose to share the results.

--
2tbsp.com