Coder Social home page Coder Social logo

mq4-hover-shim's People

Contributors

calvinjuarez avatar cvrebert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mq4-hover-shim's Issues

Usage of JSPM Installed Version Fails

I was happy to see that this lib supports JSPM, so I tried to install and use it:

import mq4HoverShim from 'mq4-hover-shim';

Unfortunately, that fails early with this:

:3000/jspm_packages/npm/[email protected]/dist/browser/mq4-hover-shim.js:59 Uncaught TypeError: $ is not a function$ @ system.js:4
system.js:4 Uncaught Uncaught TypeError: $ is not a function
    Evaluating http://localhost:3000/jspm_packages/npm/[email protected]/dist/browser/mq4-hover-shim.js$ @ system.js:4
localhost/:1 Uncaught (in promise) Uncaught Uncaught TypeError: $ is not a function
    Evaluating http://localhost:3000/jspm_packages/npm/[email protected]/dist/browser/mq4-hover-shim.js
    Evaluating http://localhost:3000/jspm_packages/npm/[email protected]
    Error loading http://localhost:3000/boot.js

I tried to fix it with some weird overrides, but could not get it to work.
I think that system.js detects the format wrongly of the file dist/browser/mq4-hover-shim
because I see this in the header:

"format global";
"deps jquery";
'use strict';

after installing it. Any idea?

IE11 on touchscreen laptop gives arguably false negative

This is arguably a tricky situation, as even with the real MQ4 feature this is a grey area (though I seem to remember discussions about dynamically matching this depending on what the user actually uses): on a touchscreen Win8 laptop, maxTouchPoints is usually around 10, so it will identify this as a device that does not support non-emulated hover. However, the user can obviously be using the trackpad or attached mouse. It's more of a philosophical issue of: if the device can be seen as having two equally primary input modes (touchscreen AND trackpad/mouse), which one should match?

How use it with gulp?

I'm having this task for my styles:

gulp.task('styles', function () {
    return gulp.src('app/styles/scss/main.scss')
        .pipe($.sourcemaps.init())
        .pipe($.sass({
            includePaths: ['bower_components/bootstrap/scss']
        }))
        .pipe($.postcss([
            require('postcss-font-family'),
            require('postcss-merge-rules'),
            require('postcss-minify-font-weight'),
            require('postcss-normalize-url'),
            require('postcss-discard-empty'),
            require('postcss-will-change'),
            //require('mq4-hover-shim')({hoverSelectorPrefix: '.bs-true-hover '}),
            require('autoprefixer')({browsers: ['last 2 versions']}),
            require('css-mqpacker'),
            require('postcss-reporter')
        ]))
        .pipe($.sourcemaps.write())
        .pipe(gulp.dest('.tmp/css'))
        .pipe(reload({stream: true}));
});

mq4-hover-shim not postcss plugin, ok. How I should use it?

new release

There are some changes which are not yet published as new release. It would be great to also have them on npm as tagged release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.