{"id":2446,"date":"2013-01-03T16:13:45","date_gmt":"2013-01-03T16:13:45","guid":{"rendered":"http:\/\/blog.ed.gs\/?p=2446"},"modified":"2013-01-03T16:13:45","modified_gmt":"2013-01-03T16:13:45","slug":"disable-textelement-selection-less-mixin","status":"publish","type":"post","link":"https:\/\/ed.gs\/2013\/01\/03\/disable-textelement-selection-less-mixin\/","title":{"rendered":"Disable Text\/Element Selection LESS Mixin"},"content":{"rendered":"
As per my previous post, if you want to disable multiple clicks selecting text or elements on a page then you can use this LESS mixin. Just call .user-select(none); in your declaration.<\/p>\n
.user-select(@user-select) {\n -webkit-touch-callout: @user-select;\n -webkit-user-select: @user-select;\n -khtml-user-select: @user-select;\n -moz-user-select: @user-select;\n -ms-user-select: @user-select;\n user-select: @user-select;\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"As per my previous post, if you want to disable multiple clicks selecting text or elements on a page then you can use this LESS mixin. Just call .user-select(none); in your declaration. .user-select(@user-select) { -webkit-touch-callout: @user-select; -webkit-user-select: @user-select; -khtml-user-select: @user-select; -moz-user-select: @user-select; -ms-user-select: @user-select; user-select: @user-select; }<\/p>\n","protected":false},"author":2,"featured_media":3509,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false},"categories":[18,39],"tags":[],"yoast_head":"\n
Disable Text\/Element Selection LESS Mixin - E<\/title>\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n\n\n\t\n