forked from jasonkuhrt/react-popover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
70 lines (51 loc) · 900 Bytes
/
main.css
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* Boilerplate */
html {
height: 200rem;
}
#app {
flex-direction: column;
align-items: center;
}
/* Popover */
.Popover-body {
padding: 4rem;
}
/* Target */
.Target {
-webkit-user-select: none;
position: relative;
display: inline-block;
color: hsla(0, 0%, 0%, 0.45);
color: white;
white-space: pre-wrap;
text-align: center;
text-transform: uppercase;
border-radius: 0.2rem;
overflow: hidden;
}
.Target-Move {
padding: 1rem;
cursor: move;
border-bottom: 1px solid white;
background: hsl(173, 69%, 48%);
}
.Target-Toggle {
display: block;
padding: 1rem;
cursor: pointer;
background: hsl(346, 62%, 55%);
}
.Target.is-open .Target-Toggle {
background: hsl(346, 80%, 50%);
}
/* Demo Controls */
form {
margin-top: 2rem;
margin-bottom: calc(50vh - 6rem);
}
input {
margin-left: 1rem;
}
label:not(:first-child) {
margin-left: 2rem;
}