aboutsummaryrefslogtreecommitdiff
path: root/theme/sass
diff options
context:
space:
mode:
authorEric Bidelman2012-04-17 18:59:07 -0700
committerEric Bidelman2012-04-17 18:59:07 -0700
commit64c8d6328a9d0e4fe68a5899e3e8710342f3b7dd (patch)
treecc30183c85cbdadac0607b4c370f94e981708564 /theme/sass
parent5a15dcab5fd3bf90915f811bc7072f6ef8c34a07 (diff)
downloadio-slides-remote-64c8d6328a9d0e4fe68a5899e3e8710342f3b7dd.tar.gz
Basic presenter mode working
Diffstat (limited to 'theme/sass')
-rw-r--r--theme/sass/_base.scss9
-rw-r--r--theme/sass/default.scss71
-rw-r--r--theme/sass/phone.scss4
3 files changed, 62 insertions, 22 deletions
diff --git a/theme/sass/_base.scss b/theme/sass/_base.scss
index b301396..265b77e 100644
--- a/theme/sass/_base.scss
+++ b/theme/sass/_base.scss
@@ -48,8 +48,7 @@ body {
48 margin: 0; 48 margin: 0;
49 padding: 0; 49 padding: 0;
50 50
51 //display: block !important; 51 opacity: 0;
52 opacity: 1 !important;
53 52
54 height: 100%; 53 height: 100%;
55 min-height: 740px; 54 min-height: 740px;
@@ -59,7 +58,11 @@ body {
59 58
60 color: #fff; 59 color: #fff;
61 @include font-smoothing(antialiased); 60 @include font-smoothing(antialiased);
62 @include transition(opacity 800ms ease-in); 61 @include transition(opacity 800ms ease-in 100ms); // Add small delay to prevent jank.
62
63 &.loaded {
64 opacity: 1;
65 }
63} 66}
64 67
65slides > slide[hidden] { 68slides > slide[hidden] {
diff --git a/theme/sass/default.scss b/theme/sass/default.scss
index c7b4eab..c0d9eb8 100644
--- a/theme/sass/default.scss
+++ b/theme/sass/default.scss
@@ -85,10 +85,6 @@ $article-content-top-padding: 45px;
85} 85}
86 86
87body { 87body {
88 //@include background-image(radial-gradient(50% 50%, #b1dfff 0%,
89 // $brand-blue-secondary2 600px));
90 //background-attachment: fixed;
91 //@include background(linear-gradient(white, white 85%, $gray-1));
92 background: black; 88 background: black;
93} 89}
94 90
@@ -635,36 +631,77 @@ article.smaller {
635 631
636// Speaker notes only show the current slide. 632// Speaker notes only show the current slide.
637.with-notes { 633.with-notes {
634
635 slides.layout-widescreen,
636 slides.layout-faux-widescreen {
637 slide {
638 &.next {
639 @include transform(translate3d($slide-width-widescreen / 2 + 140, 80px, 0) scale(0.35));
640 }
641 .note {
642 @include transform(translate3d(300px, $slide-height + 100, 0) scale(1.5));
643 }
644 }
645 }
646
647 slide {
648 overflow: visible;
649 background: white;
650 @include transition(none); // No slide transition goodies when in presenter mode.
651 pointer-events: none;
652 @include transform-origin(0, 0); // For speaker note transition.
653
654 &:not(.backdrop) {
655 @include transform(scale(0.6) translate3d(0.5em, 0.5em, 0));
656 @include box-shadow(0 0 10px $gray-3);
657 }
658
659 &.backdrop {
660 //@include background(linear-gradient($gray-1, white 30%, white 60%, $gray-1));
661 @include background-image(radial-gradient(50% 50%, #b1dfff 0%,
662 $brand-blue 600px));
663 }
664
665 &.next {
666 @include transform(translate3d($slide-width / 2 + 120, 80px, 0) scale(0.35));
667 opacity: 1 !important;
668
669 .note {
670 display: none; // Prevents seeing notes if we go to previous slide.
671 }
672 }
673 }
638 .note { 674 .note {
639 opacity: 1; 675 opacity: 1;
640 @include transform(translateY(0)); 676 pointer-events: auto; // Allow people to do things like open links embedded in the speaker notes.
641 pointer-events: auto;
642 } 677 }
643} 678}
644 679
645.note { 680.note {
646 position: absolute; 681 position: absolute;
647 z-index: 100; 682 z-index: 100;
648 width: 100%; 683 width: 109%;
649 height: 100%; 684 height: $slide-height / 2 - 90;
650 top: 0; 685 top: 0;
651 left: 0; 686 left: 0;
652 background: rgba(0, 0, 0, 0.3); 687 background: $gray-1;
653 opacity: 0;
654 pointer-events: none; 688 pointer-events: none;
655 @include flexbox;
656 @include flex-center-center;
657 @include border-radius($slide-border-radius); 689 @include border-radius($slide-border-radius);
658 690
659 @include transform(translateY($slide-height / 2)); 691 @include box-sizing(border-box);
660 @include transition(all 0.4s ease-in-out); 692 @include box-shadow(0 0 10px $gray-3);
693
694 @include transform(translate3d(250px, $slide-height + 100, 0) scale(1.5));
695 @include transition(opacity 400ms ease-in-out);
661 696
662 > section { 697 > section {
663 background: #fff; 698 background: #fff;
664 @include border-radius($slide-border-radius); 699 @include border-radius($slide-border-radius);
665 @include box-shadow(0 0 10px $gray-3); 700 height: 100%;
666 width: 60%; 701 width: 100%;
667 padding: 2em; 702 @include box-sizing(border-box);
703 overflow: auto;
704 padding: 1em;
668 } 705 }
669} 706}
670 707
diff --git a/theme/sass/phone.scss b/theme/sass/phone.scss
index 4cfb2b1..c6a4043 100644
--- a/theme/sass/phone.scss
+++ b/theme/sass/phone.scss
@@ -11,8 +11,8 @@ and (max-width : 480px) {
11/* Smartphones (portrait) ----------- */ 11/* Smartphones (portrait) ----------- */
12//@media only screen and (max-device-width: 480px) { 12//@media only screen and (max-device-width: 480px) {
13/* Styles */ 13/* Styles */
14$slide-width: 350px; 14//$slide-width: 350px;
15$slide-height: 500px; 15//$slide-height: 500px;
16 16
17slides > slide { 17slides > slide {
18/* width: $slide-width !important; 18/* width: $slide-width !important;