forked from mintchaos/flippant.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflippant.css
67 lines (57 loc) · 1.63 KB
/
flippant.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
.flippant {
transform: perspective(500px) rotateY(0deg);
-webkit-transform: perspective(500px) rotateY(0deg);
-moz-transform: perspective(500px) rotateY(0deg);
/*z-index: 200;*/
}
.flippant-back {
transform: perspective(500px) rotateY(-180deg);
-moz-transform: perspective(500px) rotateY(-180deg);
-webkit-transform: perspective(500px) rotateY(-180deg);
height: 0;
/*z-index: 200;*/
}
.flippant, .flippant-back {
transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
}
.flippant, .flipper {
-o-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
.flippant.flipped {
transform: perspective(500px) rotateY(180deg);
-moz-transform: perspective(500px) rotateY(180deg);
-webkit-transform: perspective(500px) rotateY(180deg);
}
.flippant-back.flipped {
transform: perspective(500px) rotateY(0deg);
-moz-transform: perspective(500px) rotateY(0deg);
-webkit-transform: perspective(500px) rotateY(0deg);
}
.flippant-modal-dark, .flippant-modal-light {
position: fixed;
margin: 0;
top: 2.5%;
left: 2.5%;
width: 95%;
height: 95%;
padding: 1em;
box-sizing: border-box;
background: rgba(0,0,0,0.7);
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.flippant-modal-dark, .flippant-modal-dark p { color: white;}
.flippant-modal-light {
background: rgba(230,230,230,0.7);
box-shadow: 3px 3px 6px rgba(0,0,0,0.3);
border-radius: 5px;
border: 1px solid #aaa;
}