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> </head>
<body> <body>
<div id="page" class="container"> <div id="page" class="container">
<div class="row">
<div class="col control">
<button id="restart" type="button" class="btn btn-warning">Restart</button> <button id="restart" type="button" class="btn btn-warning">Restart</button>
</div>
</div>
<div class="row"> <div class="row">
<div id="content" class="col"></div> <div id="content" class="col"></div>
<div class="col col-md-10 offset-md-1"> <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("#content").append("<p>THE END</p>");
jQuery("#options").html(""); jQuery("#options").html("");
} }
if (window.progress.length > 0) {
return jQuery('html, body').animate({ return jQuery('html, body').animate({
scrollTop: scrollTo scrollTop: scrollTo
}, 800); }, 800);
}
}; };
loadGame = function(s) { loadGame = function(s) {

View file

@ -62,13 +62,16 @@ h2 {
#page { #page {
background: $content-bg; background: $content-bg;
border-radius: 5px; border-radius: 5px;
padding-top: ($font-size-base * 0.5);
@include media-breakpoint-up(sm) {
margin-top: $font-size-base; margin-top: $font-size-base;
padding-top: ($font-size-base / 2); }
} }
#restart { #restart {
position: fixed; float: right;
top: $font-size-base / 2; }
right: $font-size-base / 2; .control {
margin-bottom: ($font-size-base * 0.5)
} }
#content { #content {
.subtitle { .subtitle {