Bläddra i källkod

Added a second log area

tags/v0.7.3
Fen Dweller 7 år sedan
förälder
incheckning
befb7b37ea
2 ändrade filer med 43 tillägg och 5 borttagningar
  1. +3
    -0
      stroll.html
  2. +40
    -5
      style.css

+ 3
- 0
stroll.html Visa fil

@@ -191,6 +191,9 @@
<div id="log"> <div id="log">
<div>Welcome to Stroll 0.7.2</div> <div>Welcome to Stroll 0.7.2</div>
<div><b>This game features 18+ content</b></div> <div><b>This game features 18+ content</b></div>
<div>&nbsp;</div>
</div>
<div id="react-log">
<div>It's a nice day for a walk</div> <div>It's a nice day for a walk</div>
<div>&nbsp;</div> <div>&nbsp;</div>
</div> </div>


+ 40
- 5
style.css Visa fil

@@ -52,12 +52,30 @@ body.dark div {
@media (max-aspect-ratio: 16/9){ @media (max-aspect-ratio: 16/9){
.game-area { .game-area {
width: 100% width: 100%
height: 60%;
}
#log {
height: 80vh;
max-height: 50vh;
}
#react-log {
height: 40vh;
} }
} }


@media (min-aspect-ratio: 16/10){ @media (min-aspect-ratio: 16/10){
.game-area { .game-area {
width: 75%
width: 90%
}
#log {
float: left;
height: 75vh;
width: 50vh;
}
#react-log {
float: right;
height: 75vh;
width: 50vh;
} }
} }


@@ -66,9 +84,28 @@ body.dark div {
display:none; display:none;
} }


body.light #log {
height: 900px;
#log {
overflow: auto; overflow: auto;
}

body.light #react-log {
color: #000;
background-color: #e7e7e7;
}

body.light #react-log div {
background-color: #e7e7e7;
}

body.dark #react-log {
color: #eee;
background-color: #151515;
}

body.dark #react-log div {
background-color: #151515;
}
body.light #react-log {
color: #000; color: #000;
background-color: #e7e7e7; background-color: #e7e7e7;
} }
@@ -78,8 +115,6 @@ body.light #log div {
} }


body.dark #log { body.dark #log {
height: 900px;
overflow: auto;
color: #eee; color: #eee;
background-color: #151515; background-color: #151515;
} }


Laddar…
Avbryt
Spara