diff --git a/lib/nib/mobile.styl b/lib/nib/mobile.styl new file mode 100644 index 00000000..a513e36a --- /dev/null +++ b/lib/nib/mobile.styl @@ -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() \ No newline at end of file diff --git a/test/cases/mobile.css b/test/cases/mobile.css new file mode 100644 index 00000000..56bf6191 --- /dev/null +++ b/test/cases/mobile.css @@ -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); +} \ No newline at end of file diff --git a/test/cases/mobile.styl b/test/cases/mobile.styl new file mode 100644 index 00000000..4a8bbfd4 --- /dev/null +++ b/test/cases/mobile.styl @@ -0,0 +1,5 @@ +@import 'nib/mobile' +@import 'nib/vendor' + +html + mobile-html() \ No newline at end of file