-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
83 lines (73 loc) · 2.29 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
#showing {
cursor: pointer;
}
#hidden {
display: none;
}
/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
background-color: transparent;
width: 300px;
height: 424px;
border-radius: 3%;
perspective: 1000px;
/* Remove this if you don't want the 3D effect */
}
/* This container is needed to position the front and back side */
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
cursor: pointer;
}
/* Position the front and back side */
.flip-card-front,
.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
/* W3C */
-webkit-backface-visibility: hidden;
/* Safari & Chrome */
-moz-backface-visibility: hidden;
/* Firefox */
-ms-backface-visibility: hidden;
/* Internet Explorer */
-o-backface-visibility: hidden;
/* Opera */
}
/* Style the front side (fallback if image is missing) */
.flip-card-front {
background-color: white;
color: black;
}
/* Style the back side */
.flip-card-back {
background-color: white;
color: black;
transform: rotateY(180deg);
}
/*ALTERNATIVE OBJECTIVE BLOCKS*/
.objectives-blocks--container {
display: -ms-grid;
display: grid;
-ms-grid-columns: (minmax(200px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-gap: 1rem;
}
.objectives-block {
background: #FAFAFA;
border-radius: 10px;
padding: 20px;
border-bottom: #ffcb05 2px solid;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}