-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
181 lines (150 loc) · 2.87 KB
/
style.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
body{
background: #f6f9fd;
}
h1 {
position: relative;
color: #346eda;
left: 35%;
top: 10%;
}
h3 {
position: relative;
color: #346eda;
left: 40%;
top: 15%;
}
h4 {
position: relative;
color: rgba(34, 87, 185, 0.3);
left: 40%;
top: 20%;
}
.flashCardButtons{
display: flex;
flex-wrap: wrap-reverse;
width: 300px;
height: 40px;
left: 1%;
bottom: 10%;
position: relative;
margin: auto;
}
.flashCardButtons button{
flex-grow: 1;
}
.flashCardButtons button + button{
margin-left: 2px;
}
.cardHolder{
position: relative;
transform: translate(-15%, 0%);
height: 350px;
right: 10%;
top: 25%;
width: 300px;
margin: auto;
}
.card{
position: relative;
max-width: 100%;
}
.card div{
width: 576px;
height: 200px;
padding: 70px;
text-align: center;
cursor: pointer;
overflow-wrap: break-word;
}
.card div.front{
background: #5f8de2;
background: linear-gradient(5deg, #3fb3e9, #5f8de2);
color: white;
border: 2px solid white;
border-radius: 5px;
line-height: 15px;
transition: all 0.5s ease;
transform-style: preserve-3d;
word-wrap: break-word;
}
.card div.back{
background: #f38961;
background: linear-gradient(5deg, #fb404b, #f38961);
color: white;
border: 2px solid white;
border-radius: 5px;
line-height: 180px;
}
.card div.front.switched{
background: white;
color: purple;
border: 2px solid purple;
border-radius: 5px;
line-height: 180px;
}
.card div.back.switched{
background: purple;
color: white;
border: 2px solid white;
border-radius: 5px;
line-height: 180px;
}
/* ANIMATION STYLES */
.card div.back{
transform: rotateY(90deg);
position: absolute;
}
.card div.front{
position: absolute;
}
.card div.front.animate{
animation: twirl 0.2s ease-in forwards;
}
.card div.back.animate{
animation: twirl 0.2s 0.2s ease-out forwards reverse;
}
.card div.back.animateReverse{
animation: twirlReverse 0.2s ease-in forwards ;
}
.card div.front.animateReverse{
transform: rotateY(90deg);
animation: twirlReverse 0.2s 0.2s ease-out forwards reverse;
}
/* Animation styles = switched */
.card div.back.switched{
transform: rotateY(90deg);
}
.card div.front.switched{
position: absolute;
}
.card div.front.animate.switched{
animation: twirl 0.2s ease-in forwards;
}
.card div.back.animate.switched{
animation: twirl 0.2s 0.2s ease-out forwards reverse;
}
.card div.back.animateReverse.switched{
animation: twirlReverse 0.2s ease-in forwards ;
}
.card div.front.animateReverse.switched{
transform: rotateY(90deg);
animation: twirlReverse 0.2s 0.2s ease-out forwards reverse;
}
/* Show / Hide Card styles */
.hidden{
display: none;
}
@keyframes twirl{
0%{ transform: rotateY(0deg) }
100%{ transform: rotateY(90deg) }
}
@keyframes twirlReverse{
0%{
transform: rotateY(0deg)
}
100%{
transform: rotateY(90deg)
}
}
#JustHereToAddSpace{
}