Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !10968

Lets users remove hover styles on touch devices with one variable and modernizr

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/impishj/add-modernizr-no-touch-support-to-hover-states into master Oct 07, 2013
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 20

Created by: impishj

Let less users prefix hover states with .no-touch by adding it to @hover-prefix in variables.less which by default is just an empty string

This fixes unwanted hover states on touch devices (http://www.nczonline.net/blog/2012/07/05/ios-has-a-hover-problem/)

I did compile the less using grunt and it produces no changes unless you add .no-touch to @hover-prefix in variables, that isn't the default so there are no changes reflected in the compiled/minified css.

Tested on ios 6 in Chrome & Safari.

Perhaps it should be an option in http://getbootstrap.com/customize/ ?

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/impishj/add-modernizr-no-touch-support-to-hover-states