Skip to content

Instantly share code, notes, and snippets.

@amowu
Last active December 22, 2015 04:48
Show Gist options
  • Select an option

  • Save amowu/6419489 to your computer and use it in GitHub Desktop.

Select an option

Save amowu/6419489 to your computer and use it in GitHub Desktop.
Multiple Device Support - sizing for different dpi’s.
@namespace s "library://ns.adobe.com/flex/spark";
/* DPI specific styles */
s|Button{
color:#000000;
fontWeight:bold;
}
@media (application-dpi:240)
{
s|Button{
color:#FF0000;
}
}
@media (application-dpi:320)
{
s|Button{
color:#0000FF;
}
}
/* Platform specific styles */
@media (os-platform:"IOS")
{
s|Application{
backgroundColor:#FFCCCC;
}
s|ActionBar{
defaultButtonAppearance:beveled;
}
}
@media (os-platform:"Android")
{
s|Application{
backgroundColor:#CCCCFF;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment