Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
des:sahana_theme [2009/03/31 07:54]
tim + Flip asymmetrical padding and/or margins in //all// elements
des:sahana_theme [2009/11/25 20:27] (current)
greg
Line 46: Line 46:
         #content      { margin: 0 0 0 200px; padding: 10px; }         #content      { margin: 0 0 0 200px; padding: 10px; }
         #footer       { margin: 0; padding: 10px; clear: both; }         #footer       { margin: 0; padding: 10px; clear: both; }
- 
 ===== Liquid Layout Example ===== ===== Liquid Layout Example =====
  
Line 62: Line 61:
         #content      { width: 72%; margin: 0 auto 0 auto; }         #content      { width: 72%; margin: 0 auto 0 auto; }
         #footer       { height: 10em; margin: 0; padding: 10px; clear: both;         #footer       { height: 10em; margin: 0; padding: 10px; clear: both;
 +===== Internet Explorer CSS Hacking =====
 +
 +Newly introduced to Sahana framework is the mechanism for providing Internet Explorer specific stylesheets (currently in trunk). As many web designers know, there are many headaches caused by supporting multiple versions of Internet Explorer in a web site's template/theme. This new approach allows a theme to have stylesheets for each individual version of IE allowing a web designer much more control over specific IE-related css hacking techniques. 
 +
 +If these stylesheets exist in the theme, Sahana will add references to them in the <head> portion of the page as it is rendered. If these stylesheet files are not in the theme, these references will not appear in the rendered page:
 +
 +  <!--[if IE 6]>
 +  <link rel="stylesheet" type="text/css" href="theme/lpf2/ie6.css" />
 +  <![endif]--> 
 +  <!--[if IE 7]>
 +  <link rel="stylesheet" type="text/css" href="theme/lpf2/ie7.css" />
 +  <![endif]--> 
 +  <!--[if IE 8]>
 +  <link rel="stylesheet" type="text/css" href="theme/lpf2/ie8.css" />
 +  <![endif]--> 
 +  <!--[if IE 9]>
 +  <link rel="stylesheet" type="text/css" href="theme/lpf2/ie9.css" />
 +  <![endif]--> 
 +
 +To take advantage of this new feature, simply create a css file in your theme folder for the specific version of ie you wish to create a custom stylesheet for:
 +
 +  /www/theme/lpf2/ie6.css
 +  /www/theme/lpf2/ie7.css
 +  /www/theme/lpf2/ie8.css
 +  /www/theme/lpf2/ie9.css
 +
 +The important thing to remember is that the files MUST be named in this convention: (ie6.css, ie7.css, ie8.css, ie9.css) or else they will be skipped over and not referenced in the HTML <head> as the page is being rendered by Sahana. Inside the css files, all the standard CSS rules/syntax are applied as with any other compliant stylesheet.
 +
 +===== Custom Theme Footer =====
 +
 +As with the above new feature added to Sahana, this one involves handling more customization with themes. In certain instances, it may be preferable to have different content in the site's footer. However, before this patch was introduced, the user was left to hacking up the /inc/hander_footer.inc file to incorporate the changes into the site. Now, the footer itself can be created in the theme and customized for different installations of Sahana.
 +
 +Technically, the way this works, is Sahana looks in the current theme folder for the existence of a footer.php file. If this file is present, the content contained within it will replace what is in the default Sahana footer.
 +
 +  /www/theme/lpf2/footer.php
 +
 +Simply create the footer.php file in your theme and populate it with any php/html that is needed in your customized footer.
  
  
Line 73: Line 109:
   * [[http://janschneider.de/news/5/319|Nice helper to create RTL CSS files]] by Jan Schneider.   * [[http://janschneider.de/news/5/319|Nice helper to create RTL CSS files]] by Jan Schneider.
  
-==== Challenges ==== 
  
-Below are are few things that are unlikely to be something that can be dealt with CSS, although they can be feed upstream for thought.+==== Challenges ====
  
-*Forms* will be difficultas labels generally appear on the left of the inputs field. *Frames*, and *table columns* also have to be reversed in order.+Here are are few things that are unlikely to be something that can be dealt with CSSalthough they can be feed upstream for thought.
  
 +**Forms** will be difficult, as labels generally appear on the left of the inputs field. **Frames**, and **table columns** have to be reversed in order.
  
 ==== Outline ==== ==== Outline ====

Navigation
QR Code
QR Code des:sahana_theme (generated for current page)