This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Tony Narlock (author)
Sat Mar 28 10:56:57 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Feb 16 11:11:31 -0800 2009 | |
| |
CHANGELOG.txt | Thu Mar 05 00:55:52 -0800 2009 | |
| |
README.txt | Thu Mar 05 01:01:01 -0800 2009 | |
| |
modules/ | ||
| |
preloadCssImages.jQuery_v5.js | Thu Mar 05 00:55:52 -0800 2009 | |
| |
style.form.css | Fri Mar 27 22:29:16 -0700 2009 | |
| |
style.info | Tue Jan 13 10:35:30 -0800 2009 | |
| |
style.install | Mon Feb 16 11:11:31 -0800 2009 | |
| |
style.js | Wed Mar 04 11:09:25 -0800 2009 | |
| |
style.module | Sat Mar 28 10:32:50 -0700 2009 |
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







