diff options
author | JoelHMikael <joel.h.kronqvist@gmail.com> | 2021-12-30 12:13:11 +0200 |
---|---|---|
committer | JoelHMikael <joel.h.kronqvist@gmail.com> | 2021-12-30 12:13:11 +0200 |
commit | da0fc08fe5a7ee72914197ff4eebd42b397957f6 (patch) | |
tree | 5b7b9931afad311d5fec63a5040d169fa76f5d0d | |
parent | eac815eaa7e6e613f055c39ecc1ce5fe50164f43 (diff) | |
download | LYLLRuoka-da0fc08fe5a7ee72914197ff4eebd42b397957f6.tar.gz LYLLRuoka-da0fc08fe5a7ee72914197ff4eebd42b397957f6.zip |
Made the help work somehow on mobile + other minor fixes
-rw-r--r-- | index.css | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -2,7 +2,7 @@ margin: 0; padding: 0; text-align: center; - --info-width: 10em; + --info-width: 13em; --fadetime: .3s; --box-bg: #222; --box-shadow: black; @@ -103,14 +103,16 @@ img.info ~ span { p.infoblock { display: inline; position: absolute; - top: .5em; - left: 1.5em; + top: 1.5em; + left: calc(var(--info-width) * -1 - 1em); + width: var(--info-width); + z-index: 1; background-color: var(--box-bg); --box-shadow: #111; margin: 0; padding: .5em; - border-radius: 0 5px 5px 5px; + border-radius: 5px 0 5px 5px; animation-name: fade-out; animation-duration: var(--fadetime); |