aboutsummaryrefslogtreecommitdiff
path: root/theme/sass
diff options
context:
space:
mode:
authorEric Bidelman2012-04-14 14:39:08 -0700
committerEric Bidelman2012-04-14 14:39:08 -0700
commitba1842bd2162d4fa3c7189621825afd765bea5fa (patch)
treea001e4f56275a0c19ce889b5aa44c2d7dc34e6c7 /theme/sass
parent92d59f701df13fe8e99d2c908dcf18450c53b762 (diff)
downloadio-slides-remote-ba1842bd2162d4fa3c7189621825afd765bea5fa.tar.gz
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
Diffstat (limited to 'theme/sass')
-rw-r--r--theme/sass/phone.scss27
1 files changed, 27 insertions, 0 deletions
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 @@
1@import "compass/css3/transition";
2
3/* Smartphones (portrait) ----------- */
4//@media only screen and (max-device-width: 480px) {
5/* Styles */
6$slide-width: 350px;
7$slide-height: 500px;
8
9slides > slide {
10/* width: $slide-width !important;
11 height: $slide-height !important;
12 margin-left: -$slide-width / 2 !important;
13 margin-top: -$slide-height / 2 !important;
14*/
15 // Don't do full slide transitions on mobile.
16 -webkit-transition: none !important; // Bug in compass? Not sure why the below is not working
17 @include transition(none !important);
18}
19
20//}
21
22/* iPhone 4 ----------- */
23@media
24only screen and (-webkit-min-device-pixel-ratio : 1.5),
25only screen and (min-device-pixel-ratio : 1.5) {
26/* Styles */
27} \ No newline at end of file