浏览代码

Center the start menu and adjust tooltip positions

tags/v0.1.3
Fen Dweller 5 年前
父节点
当前提交
4c8eb24289
共有 2 个文件被更改,包括 9 次插入4 次删除
  1. +8
    -3
      satiate.css
  2. +1
    -1
      satiate.js

+ 8
- 3
satiate.css 查看文件

@@ -38,8 +38,12 @@ a:hover {
text-decoration: none; text-decoration: none;
} }


#pick {
#pick.scene {
text-align: center; text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
} }


#pick-blurb { #pick-blurb {
@@ -485,12 +489,13 @@ a:hover {
position: absolute; position: absolute;
display: none; display: none;
background: gray; background: gray;
top: -20pt;
left: 50%; left: 50%;
top: 0%;
transform: translate(48pt, -100%);
padding: 5pt;
color: #eee; color: #eee;
border-radius: 5pt; border-radius: 5pt;
pointer-events: none; pointer-events: none;
transform: translate(-50%, 0);
} }


.tooltip:hover::before { .tooltip:hover::before {


+ 1
- 1
satiate.js 查看文件

@@ -185,7 +185,7 @@ function initStart() {
}) })


document.querySelector("#description").innerText = story.info.desc; document.querySelector("#description").innerText = story.info.desc;
document.querySelector("#start-button").style.display = "inline";
document.querySelector("#start-button").style.display = "block";
}); });


const start = document.querySelector("#start-button"); const start = document.querySelector("#start-button");


正在加载...
取消
保存