Elxis CMS Forum

Support => Technical support => Topic started by: timalsina on August 08, 2009, 10:09:27

Title: standard.css how can I unload it
Post by: timalsina on August 08, 2009, 10:09:27
Hello,

It is great to have standard.css loaded automatically in Elxis that contains predefined Elxis specific CSS selectors. For this particular project, I would like to have it disabled as I wanted to have clean and lean site with minimum HTML requests/size. I am aware that I could override the selectors, but I would like to have freedom of not having it loaded.
Title: Re: standard.css how can I unload it
Post by: xmanhattan on August 08, 2009, 10:20:19
timalsina,

CSS is loaded through the index.php file of your template.

You should be able to comment the lines that you do not want using php comments.

Title: Re: standard.css how can I unload it
Post by: timalsina on August 08, 2009, 10:29:55
timalsina,

CSS is loaded through the index.php file of your template.

You should be able to comment the lines that you do not want using php comments.


xmanhattan, my goal here is to unload standard.css and it is part of <?php mosShowHead(); ?> in index.php (main template). Commenting it will also not load all other variables that I still wanted to have. One way to do it is commenting line 311 at includes/frontend.php, but it is not a good idea to hack the core file.
Title: Re: standard.css how can I unload it
Post by: speck on August 08, 2009, 14:32:00
Don't modify the core if you don't say what you doing.
About your problem you have two soluition.
1) you can clean all classes in standard.css or make an empy standard.css, but these are not good things to do because after you'll lose many time for one template.
remember: you have many browser to manage (IE5.5, IE6, IE7, IE8, FIREFOX, OPERA, etc etc.). Elxis team make a good job about standard.css and it's a not good idea don't use it.

2) you can clean all classes in the customize.css. remember that this file is called after standard.css and this is nice because you can redefine the most important tags like a, p, td, tr, ul, h1, h2 and so on how you want, and after customize the classes of elxis.

if you want there's a customize.css with cleaned classes and wwith the most thing that usually I use to start to make a template. Take a look, maybe for you it would be a good example.
Good Luck  ;)

[attachment deleted by admin]
Title: Re: standard.css how can I unload it
Post by: timalsina on August 08, 2009, 14:43:55
speck,

Great! I am new to Elxis and the community support has been great! I decided to keep the standard.css and as you said I could go for option #2 and definitely will keep your customize.css file as a reference. At the moment I am designing my personal site (clean canvas) and trying to nail down Elxis ASAP. I will be using Elxis exclusively for my Tourism Portal and IOS Reservations v3 will be used for hotel portals part. Will be 3-4 months project and excited about it.
Title: Re: standard.css how can I unload it
Post by: datahell on August 09, 2009, 09:05:45
standard.css should not be deleted or clean its contents. The reason for existence of the standard.css is to provide a basic styling and especially to areas where almost everyone forgets to add in his template. As some people use mambo/joomla templates standard.css solves the problem that these templates do not cover all Elxis html. The proper way to overwrite standard.css rules is to override them in your template's css files.

Example, on standard.css:
.xxx {
  color: #ff0000;
  display: block;
}

To change this part go to your template and override this rule, dont edit or delete the standard.css!

Example, on your template's css file:
.xxx {
  color: #cc0000;
  display: inline;
  font-size: 12px;
  margin: 10px 0;
}

As you see you can easily override and even add more rules without touching standard.css