Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • PeoplePods 0.9
  • Brackets Sprint 8
  • elFinder 2.0 RC1
  • BBClone 0.6.1
  • Twitter Follow Box...
  • Multilingual Press...
  • SimplePie 1.2.1
  • TinyTips 1.2
  • SWFUpload 2.2.0.1 ...
  • Head Cleaner 1.4.2.9
  • Home > Scripts > Modules > Drupal Modules

    Style (CSS) Settings

    Download button


    Downloads: 2,741  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    22 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Fokke Zandbergen | More scripts
    drupal.org
    GPL - GNU Public License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    PHP
    July 12th, 2008, 09:29 GMT
    C: \ Modules \ Drupal Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Style (CSS) Settings description

    This module lets you use any (custom) theme setting or Drupal variable in any of your theme style sheets (CSS).

    This module lets you use any (custom) theme setting or Drupal variable in any of your theme style sheets (CSS). It replaces all your theme style sheets by a rewritten version.

    Using special tags in the original style sheet you can replace a default value by any (custom) theme setting or Drupal variable. Because these tags are in fact comments the theme will still work without this module, showing the default values.

    Features
    - Use any Drupal variable by writing /*variable:name*/ instead.
    - Themes using this module will still work without since the default value is within the comments.
    If a theme setting is not found or set, the module will show the default (specified within the comments).
    - Automatic recognition of background images. Because comments cannot recide within url(...), you need to add the comments around it. The module will automaticly add url(...), and base path if needed.
    - Caching of rewritten style sheets by using a checksum derived from the theme settings array (so changes are visible imediately).
    - Relative paths inside url(...) are automaticly prefixed by the base path of the original style sheet.
    Usage
    - Add a custom theme setting like background_color to your theme.
    - In your stylesheet, change this:
          body
          {
            background: red;
          }  to something like this:
          body
          {
            background: /*setting:background_color*/red/*setting*/;
          }
    - Go down your theme's settings page (admin/build/themes/settings/theme) and set the background color setting you just created, for example to green.
     



    TAGS:

    use custom theme | drupal theme | drupal css | use | custom | theme



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM