Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make typeDecorator accepts an array to one CSS rule #19

Open
rcaravita opened this issue Mar 14, 2013 · 1 comment
Open

Make typeDecorator accepts an array to one CSS rule #19

rcaravita opened this issue Mar 14, 2013 · 1 comment

Comments

@rcaravita
Copy link
Collaborator

something in this format:
$this->Decorator->rule('.some-rule', array(
'padding-top' => $vg->size('2m'),
'min-width' => array(
'-webkit-calc(100% - 48px)',
'-moz-calc(100% - 48px)'
)

@rcaravita
Copy link
Collaborator Author

Isso é necessário pra gerar algo do tipo, no CSS final:
min-width: -webkit-calc(100% - 48px);
min-width: -moz-calc(100% - 48px);
min-width: -ms-calc(100% - 48px);
min-width: -o-calc(100% - 48px);
min-width: calc(100% - 48px);

Ou seja, vários valores pra mesma propriedade, no jeito de funcionamento atual do Decorator se eu declaro vários valores pra mesma propriedade ela só pega o último valor declaro. Imaginei que, declarando um vetor como valor, o sistema poderia entender e gerar este formato acima.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant