Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

API: Script: CSS Handler

ebollens edited this page May 20, 2011 · 13 revisions

Description

The framework is driven, in large part, is driven through a cascading set of stylesheets. The css.php file dynamically loads a set of stylesheets based on the classification of the user's browsing device, as well as supporting the user specifying custom stylesheets that it will load and minify as well. Though a .php file, this file identifies itself as content-type text/css.

Intent

To deliver a base set of stylesheets (CSS) based on the classification of the user's browsing device, as well as to deliver additional user-requested framework stylesheets organized as themes.

Implementation

The dynamic CSS loader resides at http://{MOBILE_DOMAIN}/assets/css.php.

This file can be included through a standard link tag, as with any other CSS file:

<link rel="stylesheet" href="http://{MOBILE_DOMAIN}/assets/css.php" type="text/css" />

This script supports all of the GET parameters for custom minified scripts as described in the CSS & JS Minifiers documentation, allowing for one to reduce the total number of HTTP requests.

Clone this wiki locally