-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtutorial.css
108 lines (86 loc) · 1.56 KB
/
tutorial.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
#tutorial {
transition: 200ms;
position: absolute;
top: 0;
background-color: var(--bg);
width: 400px;
}
#tutorial.hidden {
transform: scale(80%);
opacity: 0;
pointer-events: none;
}
.tuto-inner {
display: flex;
flex-direction: column;
padding: calc(5 * var(--pixel));
}
#tuto-left-anchor {
position: absolute;
left: 50px;
top: 50%;
width: 0px;
height: 0px;
}
#tuto-right-anchor {
position: absolute;
right: 50px;
top: 50%;
width: 0px;
height: 0px;
}
.tuto-right {
right: 50px;
}
#tuto-title {
font-weight: bold;
}
.progress-bar {
width: 100%;
height: calc(2 * var(--pixel));
background-color: var(--bg-l);
}
.bar-fill {
height: 100%;
background-color: var(--prim);
transition: 200ms;
width: 100%;
}
#tuto-btns {
margin-top: calc(3 * var(--pixel));
}
#tuto-highlight {
pointer-events: none;
position: absolute;
background-color: #0f03;
outline: var(--pixel) solid var(--prim);
animation: 800ms infinite highlight-anim;
z-index: 100;
}
.tuto-command {
color: var(--txt-d);
}
#close-tutorial {
position: absolute;
right: 0;
top: 0;
width: calc(6 * var(--pixel));
height: calc(6 * var(--pixel));
text-align: center;
}
#close-tutorial > span {
display: block;
transform: translate(calc(-0.8 * var(--pixel)), calc(-3 * var(--pixel)));
color: var(--txt-d);
}
@keyframes highlight-anim {
0% {
opacity: 1;
}
50% {
opacity: 0.2;
}
100% {
opacity: 1;
}
}