Skip to content

Link styling (theme.css) #4385

merged 3 commits into from Jun 7, 2012

3 participants

jQuery Foundation member

Fixed cascade issue bar link styles:
The '.ui-bar-[swatch] .ui-link(:pseudo)' selectors need a higher level of specificity. Otherwise they will be overriden by '.ui-body-[swatch] .ui-link(:pseudo)', as long as the body swatch is the same or comes after the bar swatch.

Reorder ui-link pseudo class rules - visited before hover and active:
By moving the :visited rule in front of the :hover and :active rules all links "respond" to hover.

Added selectors to prevent H5BP anchor styles being applied to JQM buttons:
When JQM is used together with H5BP's style.css buttons get the a:visited and a:hover font color from that stylesheet. Although the user could remove those rules (JQM's ui-link rules override them) we can "protect" the buttons with the suggested changes. H5BP doesn't set color for a:active so this is not included.
Fixes #3444

@Wilto Wilto was assigned May 24, 2012

@wilto or @scottjehl - mind reviewing?

@jaspermdegroot jaspermdegroot merged commit 738aa16 into jquery:master Jun 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.