I want iOS-like button styles: on click, change the background color to a colourful gradient and text to white. To let this setting cascade in a right way, the "important" background color must be assigned only to inactive buttons, i.e. on :not(.ui-btn-down-c). Similarly act on .ui-btn-text only when inactive=not down. The code necessary to fix this follows:
Please consider changing button background styles to match only non-active styles:
I want iOS-like button styles: on click, change the background color to a colourful gradient and text to white. To let this setting cascade in a right way, the "important" background color must be assigned only to inactive buttons, i.e. on
:not(.ui-btn-down-c)
. Similarly act on.ui-btn-text
only when inactive=not down. The code necessary to fix this follows:Please consider changing button background styles to match only non-active styles:
styles.css:209
... into:
And similarly, for button texts, lines 220:
... into:
Then add the following directives to see iOS like click changes: