Project

General

Profile

Actions

Feature #14808

closed

dynamic CSS would be nice...

Added by jholzmann no-lastname-given almost 19 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-06-09
Due date:
% Done:

0%

Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:

Description

<strong>Improvement suggestion</strong>

... if it were possible to set them up as COA. But it does not work. Why is this useful? Imagine the situation:

Very often the correct visualisation for various browsers depends only on a single line of CSS.
You could spare many various stylesheets (100ds lines of code ++) if it would be possible to substitute this single line by setting up CSS (I mean inline CSS => exported to external stylesheet by config.) it will save lotsa trouble.

Logically it should have to work. But it does not.

Code example:

mycss=COA
mycss.10=TEXT
mycss.10.value(
body{background-color:#FF0000;}
)
mycss.20 = TEXT
mycss.10.value(
td{font-size:300%;}
)

safaristyle= TEXT
safaristyle.value(
td{font-size:299%;}
)

[browser=safari] // BTW this is missing, too! ;)
mycss.20 < safaristyle
[global]

page.CSS_inlineStyle < mycss

bye, Jan

(issue imported from #M1185)

Actions #1

Updated by Sacha Vorbeck over 18 years ago

it is possible, use typeNum to create a special page object for your dynamic stylesheet, add
config.disableAllHeaderCode = 1
config.additionalHeaders = Content-type: text/css
config.admPanel = 0
and you have your dynamic stylesheet ready to rock and roll.

Actions #2

Updated by Sebastian Kurfuerst over 18 years ago

solved by Sachas idea.

Actions

Also available in: Atom PDF