Jump to content

Request - Clean Up Global.css


Recommended Posts

Global.css is a total mess. Cleaning up this catastrophe of a file - not just organizing it, but streamlining and significantly shortening it - was my number one request for 1.6, and since it wasn't done I'm renewing the request for 1.7.

 

Just a few typical examples:

 

col-sm-4, which contains the module blockcart, receives its "float:left" on line ~650 and its "float:right" about 4750 lines later. It has a large "padding-top" which I can't even find.

 

There are several modules that create adjacent lists of text links in the footer - one for categories, one for information, and one for user accounts. I would think most people would want them styled the same. Yet they have completely different container classes found just as far apart as those col-sm-4 definitions.

 

Some modules are styled in global.css, while some are styled partially by global.css and partially by their own stylesheets in prestashop/themes/.../css/modules/. Even worse some, like blockuserinfo, are styled partially by their own stylesheets in prestashop/themes/.../css/modules/ and partially by their own stylesheets in prestashop/modules.

 

Lines 59-71 of global.css are (near-) duplicates of Lines 46-47:

Lines 46-47
 
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
  display: block; }

Lines 59-71
 
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block; }
Edited by jleesaxon (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...