Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobile mixins #166

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/nib/mobile.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
reset-mobile-webkit()
-webkit-touch-callout none
-webkit-user-drag none
-webkit-tap-highlight-color rgba(0,0,0,0)

// use inside of html tag
mobile-html()
height 100%
font-size 100%
text-size-adjust(100%)
user-select(none)
reset-mobile-webkit()
14 changes: 14 additions & 0 deletions test/cases/mobile.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
html {
height: 100%;
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-touch-callout: none;
-webkit-user-drag: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
5 changes: 5 additions & 0 deletions test/cases/mobile.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import 'nib/mobile'
@import 'nib/vendor'

html
mobile-html()