mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-28 21:49:10 +00:00
add tooltip
This commit is contained in:
parent
def2b0d2a3
commit
4b6e6f194b
1 changed files with 22 additions and 0 deletions
22
ui/components/tooltip.js
Normal file
22
ui/components/tooltip.js
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
import styled from 'styled-components'
|
||||||
|
import MediaQuery from '../kit/media'
|
||||||
|
|
||||||
|
export default styled.div`
|
||||||
|
position: absolute;
|
||||||
|
bottom: 35px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
background-color: rgba(0,0,0,0.50);
|
||||||
|
padding: 5px;
|
||||||
|
color: var(--c-red);
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px black solid;
|
||||||
|
z-index: 10;
|
||||||
|
opacity: 0.99;
|
||||||
|
overflow: auto;
|
||||||
|
pointer-events: none;
|
||||||
|
/* max-width: 50vw; */
|
||||||
|
white-space: normal;
|
||||||
|
${() => MediaQuery({ md: `
|
||||||
|
white-space: nowrap; `
|
||||||
|
})}
|
||||||
|
`
|
Loading…
Add table
Reference in a new issue