diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-06-16 19:33:57 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-06-16 19:33:57 -0400 |
commit | 4fde6124e60ab98ad90b9392d02bb26bc7ca58b0 (patch) | |
tree | 2cb37ffb72af7665aeb19b80bb294455751c890a | |
parent | 56595d65cfe4431bd700ce0bf9972fb428a45518 (diff) | |
parent | d355a040616b40dd76f82414c569acb23ef0595c (diff) | |
download | fosdem-2018-presentation-4fde6124e60ab98ad90b9392d02bb26bc7ca58b0.tar fosdem-2018-presentation-4fde6124e60ab98ad90b9392d02bb26bc7ca58b0.tar.gz |
merge navigate prev fix #493
-rw-r--r-- | css/theme/serif.css | 8 | ||||
-rw-r--r-- | css/theme/sky.css | 3 | ||||
-rw-r--r-- | css/theme/source/serif.scss | 10 | ||||
-rw-r--r-- | css/theme/source/sky.scss | 7 | ||||
-rw-r--r-- | js/reveal.js | 6 |
5 files changed, 23 insertions, 11 deletions
diff --git a/css/theme/serif.css b/css/theme/serif.css index 37833f6..734de56 100644 --- a/css/theme/serif.css +++ b/css/theme/serif.css @@ -1,10 +1,12 @@ /** * A simple theme for reveal.js presentations, similar - * to the default theme. The accent color is darkblue. + * to the default theme. The accent color is brown. * - * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. - * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se; so is the theme - beige.css - that this is based off of. + * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed. */ +.reveal a:not(.image) { + line-height: 1.3em; } + /********************************************* * GLOBAL STYLES *********************************************/ diff --git a/css/theme/sky.css b/css/theme/sky.css index 79eaf7f..35d048e 100644 --- a/css/theme/sky.css +++ b/css/theme/sky.css @@ -5,6 +5,9 @@ * * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se */ +.reveal a:not(.image) { + line-height: 1.3em; } + /********************************************* * GLOBAL STYLES *********************************************/ diff --git a/css/theme/source/serif.scss b/css/theme/source/serif.scss index 06eaca8..404b8bf 100644 --- a/css/theme/source/serif.scss +++ b/css/theme/source/serif.scss @@ -1,9 +1,8 @@ /** * A simple theme for reveal.js presentations, similar - * to the default theme. The accent color is darkblue. + * to the default theme. The accent color is brown. * - * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. - * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se; so is the theme - beige.css - that this is based off of. + * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed. */ @@ -26,8 +25,11 @@ $linkColor: #51483D; $linkColorHover: lighten( $linkColor, 20% ); $selectionBackgroundColor: #26351C; +.reveal a:not(.image) { + line-height: 1.3em; +} // Theme template ------------------------------ @import "../template/theme"; -// ---------------------------------------------
\ No newline at end of file +// --------------------------------------------- diff --git a/css/theme/source/sky.scss b/css/theme/source/sky.scss index f3d7570..72a3a90 100644 --- a/css/theme/source/sky.scss +++ b/css/theme/source/sky.scss @@ -29,6 +29,11 @@ $linkColor: #3b759e; $linkColorHover: lighten( $linkColor, 20% ); $selectionBackgroundColor: #134674; +// Fix links so they are not cut off +.reveal a:not(.image) { + line-height: 1.3em; +} + // Background generator @mixin bodyBackground() { @include radial-gradient( #add9e4, #f7fbfc ); @@ -38,4 +43,4 @@ $selectionBackgroundColor: #134674; // Theme template ------------------------------ @import "../template/theme"; -// ---------------------------------------------
\ No newline at end of file +// --------------------------------------------- diff --git a/js/reveal.js b/js/reveal.js index 3003a2c..e7788c2 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2051,9 +2051,9 @@ var Reveal = (function(){ var previousSlide = document.querySelector( HORIZONTAL_SLIDES_SELECTOR + '.past:nth-child(' + indexh + ')' ); if( previousSlide ) { - indexv = ( previousSlide.querySelectorAll( 'section' ).length + 1 ) || undefined; - indexh --; - slide( indexh, indexv ); + var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined; + var h = indexh - 1; + slide( h, v ); } } } |