From 782b971d157b041f223dfd3c2027428f06b1c8c9 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Wed, 18 Apr 2012 17:42:08 -0700 Subject: Sytling for notes not in preso mode. tag FTR --- theme/sass/_base.scss | 4 ++ theme/sass/default.scss | 141 ++++++++++++++++++++++++++++-------------------- 2 files changed, 86 insertions(+), 59 deletions(-) (limited to 'theme/sass') diff --git a/theme/sass/_base.scss b/theme/sass/_base.scss index 265b77e..a3b00a8 100644 --- a/theme/sass/_base.scss +++ b/theme/sass/_base.scss @@ -65,6 +65,10 @@ body { } } +input, button { + vertical-align: middle; +} + slides > slide[hidden] { display: none !important; } diff --git a/theme/sass/default.scss b/theme/sass/default.scss index c0d9eb8..9d65994 100644 --- a/theme/sass/default.scss +++ b/theme/sass/default.scss @@ -629,82 +629,109 @@ article.smaller { color: $gray-4; } +.note { + position: absolute; + z-index: 100; + width: 100%; + height: 100%; + top: 0; + left: 0; + padding: 1em; + background: rgba(0, 0, 0, 0.3); + opacity: 0; + pointer-events: none; + @include flexbox; + @include flex-center-center; + @include border-radius($slide-border-radius); + + @include box-sizing(border-box); + @include transform(translateY($slide-height / 2));@include transition(all 0.4s ease-in-out); + + > section { + background: #fff; + @include border-radius($slide-border-radius); + @include box-shadow(0 0 10px $gray-3); + width: 60%; + padding: 2em; + } +} + // Speaker notes only show the current slide. .with-notes { - slides.layout-widescreen, - slides.layout-faux-widescreen { + &.popup { + + slides.layout-widescreen, + slides.layout-faux-widescreen { + slide { + &.next { + @include transform(translate3d($slide-width-widescreen / 2 + 140, 80px, 0) scale(0.35)); + } + .note { + @include transform(translate3d(300px, $slide-height + 100, 0) scale(1.5)); + } + } + } + slide { - &.next { - @include transform(translate3d($slide-width-widescreen / 2 + 140, 80px, 0) scale(0.35)); + overflow: visible; + background: white; + @include transition(none); // No slide transition goodies when in presenter mode. + pointer-events: none; + @include transform-origin(0, 0); // For speaker note transition. + + &:not(.backdrop) { + @include transform(scale(0.6) translate3d(0.5em, 0.5em, 0)); + @include box-shadow(0 0 10px $gray-3); } - .note { - @include transform(translate3d(300px, $slide-height + 100, 0) scale(1.5)); + + &.backdrop { + //@include background(linear-gradient($gray-1, white 30%, white 60%, $gray-1)); + @include background-image(radial-gradient(50% 50%, #b1dfff 0%, + $brand-blue 600px)); } - } - } - slide { - overflow: visible; - background: white; - @include transition(none); // No slide transition goodies when in presenter mode. - pointer-events: none; - @include transform-origin(0, 0); // For speaker note transition. + &.next { + @include transform(translate3d($slide-width / 2 + 120, 80px, 0) scale(0.35)); + opacity: 1 !important; - &:not(.backdrop) { - @include transform(scale(0.6) translate3d(0.5em, 0.5em, 0)); - @include box-shadow(0 0 10px $gray-3); + .note { + display: none !important; // Prevents seeing notes if we go to previous slide. + } + } } - &.backdrop { - //@include background(linear-gradient($gray-1, white 30%, white 60%, $gray-1)); - @include background-image(radial-gradient(50% 50%, #b1dfff 0%, - $brand-blue 600px)); - } + .note { + width: 109%; + height: $slide-height / 2 - 90; + background: $gray-1; + padding: 0; - &.next { - @include transform(translate3d($slide-width / 2 + 120, 80px, 0) scale(0.35)); - opacity: 1 !important; + @include box-shadow(0 0 10px $gray-3); - .note { - display: none; // Prevents seeing notes if we go to previous slide. + @include transform(translate3d(250px, $slide-height + 100, 0) scale(1.5)); + @include transition(opacity 400ms ease-in-out); + + > section { + background: #fff; + @include border-radius($slide-border-radius); + height: 100%; + width: 100%; + @include box-sizing(border-box); + @include box-shadow(none); + overflow: auto; + padding: 1em; } } } + .note { opacity: 1; + @include transform(translateY(0)); pointer-events: auto; // Allow people to do things like open links embedded in the speaker notes. } } -.note { - position: absolute; - z-index: 100; - width: 109%; - height: $slide-height / 2 - 90; - top: 0; - left: 0; - background: $gray-1; - pointer-events: none; - @include border-radius($slide-border-radius); - - @include box-sizing(border-box); - @include box-shadow(0 0 10px $gray-3); - - @include transform(translate3d(250px, $slide-height + 100, 0) scale(1.5)); - @include transition(opacity 400ms ease-in-out); - - > section { - background: #fff; - @include border-radius($slide-border-radius); - height: 100%; - width: 100%; - @include box-sizing(border-box); - overflow: auto; - padding: 1em; - } -} - .source { font-size: 14px; color: $gray-2; @@ -713,10 +740,6 @@ article.smaller { left: $slide-left-right-padding; } -input, button { - vertical-align: middle; -} - /*.centered { text-align: center; } -- cgit v1.2.3