-
Notifications
You must be signed in to change notification settings - Fork 43
/
image-hotspot-question.css
172 lines (151 loc) · 3.33 KB
/
image-hotspot-question.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
.h5p-image-hotspot-question .image-hotspot {
position: absolute;
}
.h5p-image-hotspot-question .image-hotspot.circle {
border-radius: 50%;
}
.h5p-image-hotspot-question .image-wrapper {
display: inline-block;
position: relative;
overflow: hidden;
height: 100%;
}
/**
* This content type is embedded using DIV. there are several examples on themes
* setting styles for all images, which affects this content type in a bad way.
* Therefore overriding the most common ones here
*/
.h5p-image-hotspot-question .image-wrapper .hotspot-image {
border: none !important;
padding: 0 !important;
max-width: none !important;
margin: 0 !important;
}
.h5p-image-hotspot-question .h5peditor .file img {
max-width: 500px;
}
/* Image loader */
.h5p-image-hotspot-question .image-loader {
width: 100%;
height: 100%;
background-color: #f6f6f6;
}
.h5p-image-hotspot-question .image-loader:after {
position: absolute;
content: "";
background: url("h5p.svg") no-repeat center;
background-size: 50% 50%;
width: 100%;
height: 100%;
}
.h5p-image-hotspot-question .image-loader.loading:after {
-webkit-animation: spinning 3s infinite ease-in-out;
animation: spinning 3s infinite ease-in-out;
}
@-webkit-keyframes spinning {
0% {
-webkit-transform: rotate(0deg);
}
30% {
-webkit-transform: rotate(20deg);
}
60% {
-webkit-transform: rotate(-20deg);
}
}
@keyframes spinning {
0% {
transform: rotate(0deg);
}
30% {
transform: rotate(20deg);
}
60% {
transform: rotate(-20deg);
}
}
/* Feedback circles */
.h5p-image-hotspot-question .hotspot-feedback {
position: absolute;
width: 32px;
height: 32px;
border-radius: 50%;
background: #e6ced1;
box-shadow: 0 0 0.25em 0 rgba(0, 0, 0, 0.5);
color: #c33f62;
font-size: 16px;
visibility: hidden;
}
.h5p-image-hotspot-question .hotspot-feedback:before {
font-family: "H5PFontAwesome4";
content: "\f00d";
position: absolute;
width: 100%;
text-align: center;
line-height: 32px;
}
/* Correct feedback */
.h5p-image-hotspot-question .hotspot-feedback.correct {
background: #d1e2ce;
color: #39692e;
}
.h5p-image-hotspot-question .hotspot-feedback.correct:before {
content: "\f00c";
}
/* Retry button icon*/
.h5p-image-hotspot-question .h5p-question-retry-button:before {
font-family: "H5PFontAwesome4";
content: "\f01e";
}
/* Hotspot feedback animation*/
.h5p-image-hotspot-question .hotspot-feedback.fade-in{
animation-name: fade-in;
-webkit-animation-name: fade-in;
animation-duration: 0.5s;
-webkit-animation-duration: 0.5s;
animation-timing-function: ease-out;
-webkit-animation-timing-function: ease-out;
visibility: visible !important;
}
.h5p-image-hotspot-question .h5p-question-content {
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
}
.h5p-image-hotspot-question .h5p-question-popup .h5p-question-scorebar {
margin: 0;
}
@keyframes fade-in {
0% {
transform: scale(0);
opacity: 0.0;
}
30% {
transform: scale(1.1);
}
60% {
transform: scale(0.9);
opacity: 1;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@-webkit-keyframes fade-in {
0% {
-webkit-transform: scale(0);
opacity: 0.0;
}
30% {
-webkit-transform: scale(1.1);
}
60% {
-webkit-transform: scale(0.9);
opacity: 1;
}
100% {
-webkit-transform: scale(1);
opacity: 1;
}
}