-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.css
69 lines (59 loc) · 1.22 KB
/
popup.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
.cd-popup-container {
margin: 1em 1em;
text-align: center
}
.cd-popup-container p {
font-size: 2em;
width: 10em;
}
.cd-popup-container p b {
color: #0F4D92;
}
.my-btn:hover {
letter-spacing: 0.7em;
background-color: #0F4D92;
}
.my-btn {
color: white;
}
button {
height: 4em;
width: 95%;
padding: 1.5em auto;
margin: 0em auto 1em auto;
background-color: #5DBCD2;
border: none;
border-radius: 3px;
text-transform: uppercase;
letter-spacing: 0.5em;
transition: all 0.2s cubic-bezier(.4,0,.2,1);
font-size: 0.9em;
}
/** switch */
.switch input {
position: absolute;
opacity: 0;
}
.switch {
display: inline-block;
font-size: 20px; /* 1 */
height: 1em;
width: 2em;
background: #5DBCD2;
border-radius: 1em;
}
.switch div {
height: 1em;
width: 1em;
border-radius: 1em;
background: #FFF;
box-shadow: 0 0.1em 0.3em rgba(0,0,0,0.3);
-webkit-transition: all 300ms;
-moz-transition: all 300ms;
transition: all 300ms;
}
.switch input:checked + div {
-webkit-transform: translate3d(100%, 0, 0);
-moz-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}