-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathresize-tooltip.styles.js
53 lines (47 loc) · 1.01 KB
/
resize-tooltip.styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* External dependencies
*/
import styled from '@emotion/styled';
/**
* Internal dependencies
*/
import { Text } from '../../../text';
import { COLORS } from '../../../utils';
export const Root = styled.div`
bottom: 0;
box-sizing: border-box;
left: 0;
pointer-events: none;
position: absolute;
right: 0;
top: 0;
`;
export const TooltipWrapper = styled.div`
align-items: center;
box-sizing: border-box;
display: inline-flex;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 120ms linear;
`;
export const Tooltip = styled.div`
background: ${ COLORS.ui.border };
border-radius: 2px;
box-sizing: border-box;
font-size: 12px;
color: ${ COLORS.ui.textDark };
padding: 4px 8px;
position: relative;
`;
// TODO: Resolve need to use &&& to increase specificity
// https://github.com/WordPress/gutenberg/issues/18483
export const LabelText = styled( Text )`
&&& {
color: ${ COLORS.ui.textDark };
display: block;
font-size: 13px;
line-height: 1.4;
white-space: nowrap;
}
`;