add tooltip

This commit is contained in:
41666 2019-03-21 03:17:50 -05:00
parent def2b0d2a3
commit 4b6e6f194b

22
ui/components/tooltip.js Normal file
View 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; `
})}
`