-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
116 lines (105 loc) · 1.82 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
#js--sc--container {
position: relative;
margin: 0 auto;
width: 375px;
height: 667px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
opacity: 1;
animation: move 2s;
}
#js--sc--container canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#js--sc--container img {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: auto;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#js-debug-cursor {
position: absolute;
top: 0;
left: 0;
background-color: yellow;
width: 50px;
height: 50px;
z-index: 99;
will-change: transform;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.sc__wrapper {
display: block;
width: 100%;
height: 300px;
max-width: 300px;
margin: 0 auto;
border: 5px solid rgba(#FFF, 0.5);
}
/* Where the scratchcard will be generate. */
.sc__container {
position: relative;
overflow: hidden;
max-height: 300px;
max-width: 300px;
}
.sc__inner {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* Background image, the result... */
.sc__container > img {
position: relative;
top: 0;
left: 0;
width: 100%;
height: auto;
}
/* The scratchcard generate with scratchcard-js */
.sc__container canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: auto;
}
/* Scratchcard informations */
.sc__infos {
text-align: center;
height: 40px;
line-height: 40px;
margin-top: 5px;
font-weight: bold;
font-size: 16px;
}
.text {
color: lightsalmon;
font-size: 20px;
font-family: sans-serif;
text-align: center;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
body {
margin: 0px;
background-color: black;
}