public
Description: A stylesheet override/editing system for Drupal
Homepage: http://www.drupal.org/project/style
Clone URL: git://github.com/skiquel/drupal-style.git
name age message
file .gitignore Mon Feb 16 11:11:31 -0800 2009 jquery styleswitch beta, code improvements [Tony Narlock]
file CHANGELOG.txt Thu Mar 05 00:55:52 -0800 2009 w00t. style > color module [Tony Narlock]
file README.txt Thu Mar 05 01:01:01 -0800 2009 clarified syntax gave example [Tony Narlock]
directory modules/ Sat Mar 28 11:09:29 -0700 2009 more code comments [Tony Narlock]
file preloadCssImages.jQuery_v5.js Thu Mar 05 00:55:52 -0800 2009 w00t. style > color module [Tony Narlock]
file style.form.css Fri Mar 27 22:29:16 -0700 2009 reordered code, split the module into the CSS o... [Tony Narlock]
file style.info Tue Jan 13 10:35:30 -0800 2009 beginning color.module support, some code clari... [Tony Narlock]
file style.install Mon Feb 16 11:11:31 -0800 2009 jquery styleswitch beta, code improvements [Tony Narlock]
file style.js Wed Mar 04 11:09:25 -0800 2009 tweaking module and javascript :D [Tony Narlock]
file style.module Sat Mar 28 10:32:50 -0700 2009 more reorganizing. many manipulation functions ... [Tony Narlock]
README.txt
// $Id:$
     _         _                            _       _      
 ___| |_ _   _| | ___   _ __ ___   ___   __| |_   _| | ___ 
/ __| __| | | | |/ _ \ | '_ ` _ \ / _ \ / _` | | | | |/ _ \
\__ \ |_| |_| | |  __/_| | | | | | (_) | (_| | |_| | |  __/
|___/\__|\__, |_|\___(_)_| |_| |_|\___/ \__,_|\__,_|_|\___|
         |___/          A skinning system for Drupal Themes

Style.module is a skinning system that overrides stylesheets in themes.

===========================
  File structure
===========================
    In every module and theme, the /styles folder includes additional
    styles.

    Every directory in /styles is a different, unique, style.

    When a style is chosen, the style system replaces normal stylesheets
    for a theme or module with the styles own.
  
    It does this by replacing files relative to the original theme.
    
    Let's take an example, here's the output of DRUPAL_THEME_DIR/themes/moo/:
    
  +-DRUPAL_THEME_DIR/themes/moo/
  |
  +-moo.css
  |
  +-template.php
  |
  +-moo.info
  |
  +-page.tpl.php
  |
  +-images/
  | |
  | +-header-bg.png
  |
  +-logo.png
  |
  +-styles/
    |
    +-georgia-font/
    | |
    | +-moo.css
    |
    +-ocean/
    | |
    | +-moo.css
    | |
    | +-images/
    |   |
    |   +-background.png
    |
    +-day/
    | |
    | +-moo.css
    | |
    | +-images/
    | | |
    | | +-header.png
    | |
    | +-logo.png
    |
    +-night/
      |
      +-moo.css
      |
      +-images/
      | |
      | +-header-bg.png
      |
      +-logo.png

  If no style chosen, the theme will act normally.
  
  Day and Night styles
    the moo.css in the style overrides the theme's
    moo.css uses a the custom header-bg.png
    Logo.png is replaced by the same
  
  Georgia-font
    Uses moo.css with a modification of the site's fonts
    
  Ocean
    Custom moo.css with added background.png
  
  
  # See Tips: Theme stylesheet architecture
    
    =================
      Optionally: Files dir
    =================
      Color.module users rejoice. Styles.module supports all generated images
      and stylesheets natively by utilizing the files.
      
      This system treats the files directory as a different layer. The root
      of the file directory is treated as like the drupal_path, except for
      the permissions.
      
      So YOUR_DRUPAL/themes/moo/style/night
      and YOUR_DRUPAL/path_to_files/themes/moo/styles/night
      
      are treated the same.
      
===========================
  Mark up
===========================
  Style.module does not require a "color" file.
  
  Go into the stylesheet(s) of your choice. Add /* style: <YOURLABEL> */
  after your attribute. Like:
  
  color: #afffff; /* style: header color */
          or 
  background: #87AE9D url(images/background.png) repeat scroll 0 0; /* style: body bg */

  Now this attribute is editable.

===========================
  Tips
===========================
  - You can replace images in CSS as you wish, simple use relative locations.
  
  =====================
    Theme stylesheet architecture
  =====================
    Essentially, you can seperate styling across stylesheets to increase the
    theme's flexibility. If you are interested in a good architecture for
    stylesheets, see the Zen starter theme. (http://www.drupal.org/project/zen)
  
    If you are distributing a theme and want maximum configurability, you can
    for instance move all of your font CSS into a fonts.css stylesheet, and
    your images into a images.css stylesheet.
    
    You can also seperate configurable CSS (font, color, background) and
    non-configurable. Only the theme developer himself must determine what aspects
    of the CSS cannot be changed.
    
    Simply create two files, same statement, but different attributes.

===========================
  7.x goals
===========================
  - Overriding of .tpl.php files
  - In lieu of the stylesheet architecture tip, perhaps a core patch to improve
    Drupal's stylesheet caching system.

===========================
  Style-compatible extensions
===========================

  Harmony (to be included)
    Link module styles attach to theme styles.
  
  Color
    Create customizable stylesheets and images
      - Method of creating customizable stylesheets
      - Interface for customizing colors
      - Generation system. Output directly to native style.module styles.
  
  Big bonus: Styles will work as long as they are properly placed.
    This leaves room for developers to create custom front-ends and applications
    for customizing styles through drupal.


========================
  CHANGELOG
========================
  See CHANGELOG.TXT