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

Ajax hoverable css hook #468

Merged
merged 1 commit into from
Aug 6, 2013

Conversation

recurve
Copy link
Contributor

@recurve recurve commented Aug 6, 2013

Adding an extra hook for CSS rules to latch onto. It will add the class "showHoverable" to the outermost DIV when the hoverable is active. We used this to add an "info icon" to all our hoverables just via CSS rules.

Added another hook for writing CSS rules. The outermost div gets another class "showHoverable" when the hoverable is active.

Signed-off-by: Aaron Rosenzweig <aaron@chatnbike.com>
@recurve
Copy link
Contributor Author

recurve commented Aug 6, 2013

Example CSS:

/** START - AjaxHoverable custom styling **/

.showHoverable.erxHoverArea {
margin-left: 18px;
}

.hiddenHoverableShield:before {
content: "";
left: -18px;
position: absolute;
display: inline-block;
width: 18px;
height: 16px;
}

.showHoverable.erxHoverArea:before {
content: url(../img/information_symbol_16.png);
left: -18px;
position: absolute;
}

/** END - AjaxHoverable custom styling **/

rkiddy added a commit that referenced this pull request Aug 6, 2013
Ajax hoverable css hook. With examples even!
@rkiddy rkiddy merged commit efbf1d8 into wocommunity:integration Aug 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants