From ba1842bd2162d4fa3c7189621825afd765bea5fa Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Sat, 14 Apr 2012 14:39:08 -0700 Subject: Hammer.js instead. Touch working on mobile style sheets now in main .html file. Better for mobile rather than dynamically loading in js matcMedia polyfill --- theme/css/phone.css | 21 +++++++++++++++++++++ theme/sass/phone.scss | 27 +++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 theme/css/phone.css create mode 100644 theme/sass/phone.scss (limited to 'theme') diff --git a/theme/css/phone.css b/theme/css/phone.css new file mode 100644 index 0000000..3f211dd --- /dev/null +++ b/theme/css/phone.css @@ -0,0 +1,21 @@ +/* Smartphones (portrait) ----------- */ +/* Styles */ +/* line 9, ../sass/phone.scss */ +slides > slide { + /* width: $slide-width !important; + height: $slide-height !important; + margin-left: -$slide-width / 2 !important; + margin-top: -$slide-height / 2 !important; + */ + -webkit-transition: none !important; + -webkit-transition: none !important; + -moz-transition: none !important; + -ms-transition: none !important; + -o-transition: none !important; + transition: none !important; +} + +/* iPhone 4 ----------- */ +@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { + /* Styles */ +} diff --git a/theme/sass/phone.scss b/theme/sass/phone.scss new file mode 100644 index 0000000..d291d9e --- /dev/null +++ b/theme/sass/phone.scss @@ -0,0 +1,27 @@ +@import "compass/css3/transition"; + +/* Smartphones (portrait) ----------- */ +//@media only screen and (max-device-width: 480px) { +/* Styles */ +$slide-width: 350px; +$slide-height: 500px; + +slides > slide { +/* width: $slide-width !important; + height: $slide-height !important; + margin-left: -$slide-width / 2 !important; + margin-top: -$slide-height / 2 !important; +*/ + // Don't do full slide transitions on mobile. + -webkit-transition: none !important; // Bug in compass? Not sure why the below is not working + @include transition(none !important); +} + +//} + +/* iPhone 4 ----------- */ +@media +only screen and (-webkit-min-device-pixel-ratio : 1.5), +only screen and (min-device-pixel-ratio : 1.5) { +/* Styles */ +} \ No newline at end of file -- cgit v1.2.3