Skip to content

Instantly share code, notes, and snippets.

@nealnote
Created March 2, 2015 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nealnote/f322765d6a7f44dee412 to your computer and use it in GitHub Desktop.
Save nealnote/f322765d6a7f44dee412 to your computer and use it in GitHub Desktop.
mobile.base.styl
/**
* base
*/
/**
* @vendor http://learnboost.github.io/stylus/docs/interpolation.html
*/
vendor(prop, args)
-webkit-{prop} args
-moz-{prop} args
{prop} args
/**
* Micro clearfix from nicolas
* http://nicolasgallagher.com/micro-clearfix-hack/
*/
clearfix()
&:before
&:after
content: " "
display: table
&:after
clear: both
.cf
clearfix()
.cf
*zoom: 1
/**
* box-sizing
* http://blog.teamtreehouse.com/box-sizing-secret-simple-css-layouts#comment-50223
*/
html
box-sizing: border-box
*
*:before
*:after
box-sizing: inherit
body
-webkit-touch-callout: none; /* 禁止在中IOS,长按a,弹出菜单事件*/
-webkit-text-size-adjust:none; /* 禁止缩放字体大小 */
-webkit-appearance: none; /* 禁止使用系统风格 */
-webkit-tap-highlight-color: transparent; /* 禁止点击时高亮 */
-webkit-user-drag: none; /* 禁止整体拖动*/
-webkit-user-select : none; /* 禁止选中文字 for iOS */
a
img
button
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* 禁止点击时高亮 */
-webkit-touch-callout:none; /* 禁止在中IOS,长按,弹出菜单事件 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment