diff --git a/satiate.css b/satiate.css index 74a00b6..6101d4b 100644 --- a/satiate.css +++ b/satiate.css @@ -7,6 +7,11 @@ html, body, .scene { margin: 0px; } +body { + position: fixed; + top: 0px; + width: 100%; +} .hidden-scene { display: none; } @@ -322,15 +327,17 @@ a:hover { } #move-holder { + width: 90%; + height: 90%; position: absolute; - left: 50%; - margin-left: -100px; top: 5%; -} - -.move-button { - width: 200px; - height: 50px; + left: 50%; + transform: translate(-50%, 0); + display: grid; + grid-template-columns: auto auto auto; + grid-template-rows: auto auto auto auto; + column-gap: 8pt; + row-gap: 8pt; } .move-button { @@ -341,78 +348,58 @@ a:hover { font-size: 24px; } -.move-button:focus { - outline: 0px; -} - -.disabled { - background-color: #444; - border: none; -} - -.missing { - background-color: #444; - color: #aaa !important; -} - #move-up-left { - position: absolute; - left: -140px; - top: 60px; + grid-column-start: 1; } #move-up { - position: absolute; - left: 0px; - top: 0px; + grid-column-start: 2; } #move-up-right { - position: absolute; - left: 140px; - top: 60px; + grid-column-start: 3; } #move-left { - position: absolute; - left: -200px; - top: 120px; + grid-column-start: 1; } #move-right { - position: absolute; - left: 200px; - top: 120px; + grid-column-start: 3; } #move-down-left { - position: absolute; - left: -140px; - top: 180px; + grid-column-start: 1; } #move-down { - position: absolute; - left: 0px; - top: 240px; + grid-column-start: 2; } #move-down-right { - position: absolute; - left: 140px; - top: 180px; + grid-column-start: 3; } #move-ascend { - position: absolute; - left: -200px; - top: 300px; + grid-column-start: 1; } #move-descend { - position: absolute; - left: 200px; - top: 300px; + grid-column-start: 3; +} + +.move-button:focus { + outline: 0px; +} + +.disabled { + background-color: #444; + border: none; +} + +.missing { + background-color: #444; + color: #aaa !important; } #area-name { @@ -461,3 +448,29 @@ a:hover { #log::-webkit-scrollbar-corner { background: transparent; } + +#story-info { + display: flex; + flex-direction: column; +} + +.tooltip { + position: relative; +} + +.tooltip::before { + content: attr(data-tooltip); + position: absolute; + display: none; + background: gray; + top: -20pt; + left: 50%; + color: #eee; + border-radius: 5pt; + pointer-events: none; + transform: translate(-50%, 0); +} + +.tooltip:hover::before { + display: inline-block; +} \ No newline at end of file diff --git a/satiate.html b/satiate.html index 41bc2d2..675c4f7 100644 --- a/satiate.html +++ b/satiate.html @@ -20,14 +20,13 @@
Welcome to Satiate
+Version:
This game contains 18+ content
Most of the games have sound!
-Select a story: