Skip to content
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()