forked from ASKtraining/Training
-
Notifications
You must be signed in to change notification settings - Fork 10
/
trainingsplan.html
189 lines (171 loc) · 7.15 KB
/
trainingsplan.html
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
182
183
184
185
186
187
188
189
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/trainingsplan.min.css">
<link rel="stylesheet" type="text/css" media="print" href="{{ site.baseurl }}/assets/css/trainingsplan-print.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/fontawesome-6.4.2-all.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/font-josefin-sans.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/font-noto-sans-jp.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/glightbox-3.2.0.min.css">
<script src="{{ site.baseurl }}/assets/js/angular-1.3.2.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/sortable-1.15.0.js"></script>
<script src="{{ site.baseurl }}/assets/js/trainingsplan.js"></script>
<script src="{{ site.baseurl }}/assets/js/glightbox-3.2.0.min.js"></script>
<meta property="og:title" content="{{ page.title }}">
<meta property="og:site_name" content="{{ site.title }}">
{% if page.module.description %}<meta property="og:description" content="{{ page.module.description }}">{% elsif page.description %}<meta property="og:description" content="{{ page.description }}">{% else %}<meta property="og:description" content="{{ site.description }}">{% endif %}
<meta property="og:type" content="website">
{% if page.module.pic-url %}<meta property="og:image" content="{{ site.url }}{{ base.url }}/assets/img/modules/{{page.module.pic-url }}">{% elsif page.image %}<meta property="og:image" content="{{ site.url }}{{ base.url }}{{ page.image }}">{% else %}<meta property="og:image" content="{{ site.url }}{{ base.url }}/assets/img/screenshot.png">{% endif %}
<meta property="og:url" content="{{ site.url }}{{ base.url }}{{ page.url }}" />
<meta property="og:locale" content="en_GB" />
<meta name="twitter:card" content="summary_large_image">
{% if page.module.pic-url %}<meta property="twitter:image" content="{{ site.url }}{{ base.url }}/assets/img/modules/{{page.module.pic-url }}">{% elsif page.image %}<meta property="twitter:image" content="{{ site.url }}{{ base.url }}{{ page.image }}">{% else %}<meta property="twitter:image" content="{{ site.url }}{{ base.url }}/assets/img/screenshot.png">{% endif %}
<style>
/* https://codepen.io/reiinii1/pen/aPGXEa */
[data-tooltip] {
position: relative;
z-index: 10;
}
/* Positioning and visibility settings of the tooltip */
[data-tooltip]:before,
[data-tooltip]:after {
position: absolute;
visibility: hidden;
opacity: 0;
left: 50%;
bottom: calc(100% + 5px); /* 5px is the size of the arrow */
pointer-events: none;
transition: 0.2s;
will-change: transform;
}
/* The actual tooltip with a dynamic width */
[data-tooltip]:before {
content: attr(data-tooltip);
padding: 10px 18px;
min-width: 50px;
max-width: 300px;
width: max-content;
width: -moz-max-content;
border-radius: 6px;
font-size: 14px;
background-color: rgba(223, 175, 95, 0.9);
background-image: linear-gradient(30deg,
rgba(223, 175, 95, 0.44),
rgba(223, 175, 95, 0.44),
rgba(223, 175, 95, 0.44));
box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
color: #000;
text-align: center;
white-space: pre-wrap;
transform: translate(-50%, -5px) scale(0.5);
}
/* Tooltip arrow */
[data-tooltip]:after {
content: '';
border-style: solid;
border-width: 5px 5px 0px 5px; /* CSS triangle */
border-color: rgba(223, 175, 95, 0.9) transparent transparent transparent;
transition-duration: 0s; /* If the mouse leaves the element,
the transition effects for the
tooltip arrow are "turned off" */
transform-origin: top; /* Orientation setting for the
slide-down effect */
transform: translateX(-50%) scaleY(0);
}
/* Tooltip becomes visible at hover */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
visibility: visible;
opacity: 1;
}
/* Scales from 0.5 to 1 -> grow effect */
[data-tooltip]:hover:before {
transition-delay: 0.3s;
transform: translate(-50%, -5px) scale(1);
}
/*
Arrow slide down effect only on mouseenter (NOT on mouseleave)
*/
[data-tooltip]:hover:after {
transition-delay: 0.5s; /* Starting after the grow effect */
transition-duration: 0.2s;
transform: translateX(-50%) scaleY(1);
}
/*
That's it for the basic tooltip.
If you want some adjustability
here are some orientation settings you can use:
*/
/* LEFT */
/* Tooltip + arrow */
[data-tooltip-location="left"]:before,
[data-tooltip-location="left"]:after {
left: auto;
right: calc(100% + 5px);
bottom: 50%;
}
/* Tooltip */
[data-tooltip-location="left"]:before {
transform: translate(-5px, 50%) scale(0.5);
}
[data-tooltip-location="left"]:hover:before {
transform: translate(-5px, 50%) scale(1);
}
/* Arrow */
[data-tooltip-location="left"]:after {
border-width: 5px 0px 5px 5px;
border-color: transparent transparent transparent rgba(223, 175, 95, 0.9);
transform-origin: left;
transform: translateY(50%) scaleX(0);
}
[data-tooltip-location="left"]:hover:after {
transform: translateY(50%) scaleX(1);
}
/* RIGHT */
[data-tooltip-location="right"]:before,
[data-tooltip-location="right"]:after {
left: calc(100% + 5px);
bottom: 50%;
}
[data-tooltip-location="right"]:before {
transform: translate(5px, 50%) scale(0.5);
}
[data-tooltip-location="right"]:hover:before {
transform: translate(5px, 50%) scale(1);
}
[data-tooltip-location="right"]:after {
border-width: 5px 5px 5px 0px;
border-color: transparent rgba(223, 175, 95, 0.9) transparent transparent;
transform-origin: right;
transform: translateY(50%) scaleX(0);
}
[data-tooltip-location="right"]:hover:after {
transform: translateY(50%) scaleX(1);
}
/* BOTTOM */
[data-tooltip-location="bottom"]:before,
[data-tooltip-location="bottom"]:after {
top: calc(100% + 5px);
bottom: auto;
}
[data-tooltip-location="bottom"]:before {
transform: translate(-50%, 5px) scale(0.5);
}
[data-tooltip-location="bottom"]:hover:before {
transform: translate(-50%, 5px) scale(1);
}
[data-tooltip-location="bottom"]:after {
border-width: 0px 5px 5px 5px;
border-color: transparent transparent rgba(223, 175, 95, 0.9) transparent;
transform-origin: bottom;
}
</style>
</head>
<body>
<section>
{{ content }}
</section>
</body>
</html>