Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markmhendrickson/ember-cli-mq4-hover-shim
Ember addon for mq4-hover-shim
https://github.com/markmhendrickson/ember-cli-mq4-hover-shim
ember ember-addon hover-effects
Last synced: about 1 month ago
JSON representation
Ember addon for mq4-hover-shim
- Host: GitHub
- URL: https://github.com/markmhendrickson/ember-cli-mq4-hover-shim
- Owner: markmhendrickson
- License: mit
- Created: 2017-10-23T11:28:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T11:29:08.000Z (about 7 years ago)
- Last Synced: 2024-10-12T20:38:39.152Z (3 months ago)
- Topics: ember, ember-addon, hover-effects
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-cli-mq4-hover-shim
This is an Ember addon that ports [mq4-hover-shim](http://github.com/twbs/mq4-hover-shim) to automatically add class `hover` to the app layout's `html` tag when the app is initialized in browsers running on devices that properly support hover capabilities with their primary cursors.
It also integrates that shim's CSS preprocessor to convert instances of the hover media query into selectors based on that `html` tag class so browsers that don't support the hover media query can fall back to using those selectors.
This addon supports [FastBoot]() by checking for browser global variables before attempting to use them to determine contextual hover support. If any of those required global variables are unavailable (such as when the app is initialized in Node), this addon's initializer will trigger a console warning to that effect.
## Installation
Run `ember install ember-cli-mq4-hover-shim` within any Ember 2.0+ repository to install this addon.