diff --git a/html/index.html b/html/index.html index 5039537..ef27451 100644 --- a/html/index.html +++ b/html/index.html @@ -8,7 +8,11 @@
- +
+
+ +
+
diff --git a/js/script.js b/js/script.js index b148322..5197efc 100644 --- a/js/script.js +++ b/js/script.js @@ -65,9 +65,11 @@ continueToNextChoice = function(s) { jQuery("#content").append("

THE END

"); jQuery("#options").html(""); } - return jQuery('html, body').animate({ - scrollTop: scrollTo - }, 800); + if (window.progress.length > 0) { + return jQuery('html, body').animate({ + scrollTop: scrollTo + }, 800); + } }; loadGame = function(s) { diff --git a/scss/style.scss b/scss/style.scss index 21cfc10..62bc802 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -62,13 +62,16 @@ h2 { #page { background: $content-bg; border-radius: 5px; - margin-top: $font-size-base; - padding-top: ($font-size-base / 2); + padding-top: ($font-size-base * 0.5); + @include media-breakpoint-up(sm) { + margin-top: $font-size-base; + } } #restart { - position: fixed; - top: $font-size-base / 2; - right: $font-size-base / 2; + float: right; +} +.control { + margin-bottom: ($font-size-base * 0.5) } #content { .subtitle {