[dev] patch for horde/admin/css/index.php
Atif Ghaffar
aghaffar@developer.ch
Mon, 31 Dec 2001 15:02:31 +0100
Chuck Hagenbuch wrote:
> Quoting Atif Ghaffar <aghaffar@developer.ch>:
> We could extend the file format with a section of the array for browser=
-
> specific stuff, including the browser, whether to include or exclude on=
a match
> with that browser, and the property. Then let css.php handle the array =
> manipulation, instead of having it directly in html.php files.
>
> Thoughts?
currently the css editor is assuming a 2D hash, so if there are changes
to the format, then the editor needs some changes too.
I toyed for a few minutes and am trying something like this.
$css['if::browser.hasQuirk(SCROLLBARINWAY)']['body::margin-right']=15px';
the first key holds
if (identifier for a condition)
:: separator
browser.hashQuirk(SCROOLLBARINWAY) -- > object.method(CONSTANT)
and the second key contains the css-element to modify separated with '::'
I know its ugly.
Why not just make this ONE exception statement in css.php?
--
Atif Ghaffar
---------------------------.
+41 78 845 31 64 ¦ mobile
+41 21 351 53 62 ¦ fax
http://atifghaffar.com ¦ www