update style

This commit is contained in:
Alexander Yakovlev 2021-08-24 16:07:55 +07:00
parent 61798ac3cd
commit 0c050b080a
Signed by: oreolek
GPG key ID: 8D24103F5EE2A6C0
3 changed files with 18 additions and 9 deletions

View file

@ -8,7 +8,11 @@
</head>
<body>
<div id="page" class="container">
<button id="restart" type="button" class="btn btn-warning">Restart</button>
<div class="row">
<div class="col control">
<button id="restart" type="button" class="btn btn-warning">Restart</button>
</div>
</div>
<div class="row">
<div id="content" class="col"></div>
<div class="col col-md-10 offset-md-1">

View file

@ -65,9 +65,11 @@ continueToNextChoice = function(s) {
jQuery("#content").append("<p>THE END</p>");
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) {

View file

@ -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 {