-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdegree.css
111 lines (91 loc) · 1.93 KB
/
degree.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
body {
font-family: 'PT Sans', sans-serif;
-webkit-font-smoothing: antialiased;
}
.degree-container {
display: flex;
flex-direction: row;
justify-content: space-around;
flex-wrap: wrap;
margin: 5%;
}
.flip-container {
-webkit-perspective: 1000;
-moz-perspective: 1000;
-o-perspective: 1000;
perspective: 1000; /*Based off the z=0 plane, gives 3D element perspective */
border: 1px solid #ccc;
}
.flip-container:hover .flipper,
.flip-container.hover .flipper {
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg)
}
.flip-container, .front, .back {
width: 320px;
height: 427px;
}
.flipper {
-webkit-transition: 0.8s;
-webkit-transform-style: preserve-3d;
-moz-transition: 0.8s;
-moz-transform-style: preserve-3d;
-o-transition: 0.8s;
-o-transform-style: preserve-3d;
transition: 0.8s;
transform-style: preserve-3d;
position: relative;
}
.front, .back {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;
/*want the text for both front and back to appear on card*/
}
.front {
background-repeat: no-repeat;
width: 100%;
z-index: 100;
}
.back {
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
background-color: #f8f8f8;
}
.front .front-title {
font-size: 2em;
color: white;
/*background: rgba(33, 33, 33, 0.9);*/
display: inline-block;
position: absolute;
bottom: 0;
left: 0;
padding: 2%;
}
.traits-card {
margin-top: 5%;
}
.back .back-title {
line-height: 30px;
font-size: 1.5em;
padding: 3%;
}
.image-container, .info {
display: inline;
}
.image {
background-repeat: no-repeat;
float: left;
height: 2em;
width: 2em;
margin-left: 10px;
margin-right: 10px;
}