svelte-github-calendar 0.1.0-alpha.3 → 0.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GitHubCalendar.svelte +196 -200
- package/package.json +1 -1
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
});
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
|
-
<div class={`calendar
|
|
26
|
-
<div class="calendar"></div>
|
|
27
|
-
</div>
|
|
25
|
+
<div class={`calendar ${className}`}></div>
|
|
28
26
|
|
|
29
27
|
<style global>
|
|
30
28
|
:root {
|
|
@@ -35,244 +33,242 @@
|
|
|
35
33
|
--color-calendar-graph-day-L4-bg: #0a4208 !important;
|
|
36
34
|
}
|
|
37
35
|
:global {
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
36
|
+
.ContributionCalendar-day[data-level='0'] {
|
|
37
|
+
background-color: var(--color-calendar-graph-day-bg) !important;
|
|
38
|
+
}
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
.ContributionCalendar-day[data-level='1'] {
|
|
41
|
+
background-color: var(--color-calendar-graph-day-L1-bg) !important;
|
|
42
|
+
}
|
|
46
43
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
.ContributionCalendar-day[data-level='2'] {
|
|
45
|
+
background-color: var(--color-calendar-graph-day-L2-bg) !important;
|
|
46
|
+
}
|
|
50
47
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
.ContributionCalendar-day[data-level='3'] {
|
|
49
|
+
background-color: var(--color-calendar-graph-day-L3-bg) !important;
|
|
50
|
+
}
|
|
54
51
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
.ContributionCalendar-day[data-level='4'] {
|
|
53
|
+
background-color: var(--color-calendar-graph-day-L4-bg) !important;
|
|
54
|
+
}
|
|
58
55
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
table.ContributionCalendar-grid {
|
|
57
|
+
margin-bottom: 0pt !important;
|
|
58
|
+
border-collapse: separate !important;
|
|
59
|
+
}
|
|
63
60
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
table.ContributionCalendar-grid td {
|
|
62
|
+
padding: 4pt !important;
|
|
63
|
+
}
|
|
67
64
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
table.ContributionCalendar-grid td span.sr-only {
|
|
66
|
+
display: none !important;
|
|
67
|
+
}
|
|
71
68
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
td.ContributionCalendar-label span[aria-hidden='true'] {
|
|
70
|
+
font-size: 8pt !important;
|
|
71
|
+
left: -1pt !important;
|
|
72
|
+
}
|
|
76
73
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
tool-tip {
|
|
75
|
+
display: none !important;
|
|
76
|
+
}
|
|
80
77
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
.calendar .width-full > .float-left {
|
|
79
|
+
display: none !important;
|
|
80
|
+
}
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
.calendar {
|
|
83
|
+
font-family: Helvetica, arial !important;
|
|
84
|
+
border: 1px solid #dddddd !important;
|
|
85
|
+
border-radius: 3px !important;
|
|
86
|
+
min-height: 243px !important;
|
|
87
|
+
text-align: center !important;
|
|
88
|
+
margin: 0 auto !important;
|
|
89
|
+
}
|
|
93
90
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
.calendar-graph text.wday,
|
|
92
|
+
.calendar-graph text.month {
|
|
93
|
+
font-size: 10px !important;
|
|
94
|
+
fill: #aaa !important;
|
|
95
|
+
}
|
|
99
96
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
div.px-md-5 {
|
|
98
|
+
height: 2rem !important;
|
|
99
|
+
}
|
|
103
100
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
101
|
+
div.float-right {
|
|
102
|
+
text-align: right !important;
|
|
103
|
+
padding: 0 14px 10px 0 !important;
|
|
104
|
+
display: inline-block !important;
|
|
105
|
+
float: right !important;
|
|
106
|
+
}
|
|
110
107
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
108
|
+
div.float-right div {
|
|
109
|
+
display: inline-block !important;
|
|
110
|
+
list-style: none !important;
|
|
111
|
+
margin: 0 5px !important;
|
|
112
|
+
position: relative !important;
|
|
113
|
+
bottom: -1px !important;
|
|
114
|
+
padding: 0 !important;
|
|
115
|
+
}
|
|
119
116
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
div.float-right span.sr-only {
|
|
118
|
+
display: none !important;
|
|
119
|
+
}
|
|
123
120
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
.contrib-legend .legend li {
|
|
122
|
+
display: inline-block !important;
|
|
123
|
+
width: 10px !important;
|
|
124
|
+
height: 10px !important;
|
|
125
|
+
}
|
|
129
126
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
.text-small {
|
|
128
|
+
font-size: 12px !important;
|
|
129
|
+
color: #767676 !important;
|
|
130
|
+
}
|
|
134
131
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
132
|
+
.calendar-graph {
|
|
133
|
+
padding: 5px 0 0 !important;
|
|
134
|
+
text-align: center !important;
|
|
135
|
+
}
|
|
139
136
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
137
|
+
.contrib-column {
|
|
138
|
+
padding: 15px 0 !important;
|
|
139
|
+
text-align: center !important;
|
|
140
|
+
border-left: 1px solid #ddd !important;
|
|
141
|
+
border-top: 1px solid #ddd !important;
|
|
142
|
+
font-size: 11px !important;
|
|
143
|
+
}
|
|
147
144
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
145
|
+
.contrib-column span {
|
|
146
|
+
color: #000 !important;
|
|
147
|
+
}
|
|
151
148
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
.contrib-column-first {
|
|
150
|
+
border-left: 0 !important;
|
|
151
|
+
}
|
|
155
152
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
.table-column {
|
|
154
|
+
box-sizing: border-box !important;
|
|
155
|
+
display: table-cell !important;
|
|
156
|
+
width: 1% !important;
|
|
157
|
+
padding-right: 10px !important;
|
|
158
|
+
padding-left: 10px !important;
|
|
159
|
+
vertical-align: top !important;
|
|
160
|
+
}
|
|
164
161
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
162
|
+
.contrib-number {
|
|
163
|
+
font-weight: 300 !important;
|
|
164
|
+
line-height: 1.3em !important;
|
|
165
|
+
font-size: 24px !important;
|
|
166
|
+
display: block !important;
|
|
167
|
+
color: #333 !important;
|
|
168
|
+
}
|
|
172
169
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
.calendar img.spinner {
|
|
171
|
+
width: 70px !important;
|
|
172
|
+
margin-top: 50px !important;
|
|
173
|
+
min-height: 70px !important;
|
|
174
|
+
}
|
|
178
175
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
.monospace {
|
|
177
|
+
text-align: center !important;
|
|
178
|
+
color: #000 !important;
|
|
179
|
+
font-family: monospace !important;
|
|
180
|
+
}
|
|
184
181
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
182
|
+
.monospace a {
|
|
183
|
+
color: #1d75ab !important;
|
|
184
|
+
text-decoration: none !important;
|
|
185
|
+
}
|
|
189
186
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
187
|
+
.contrib-footer {
|
|
188
|
+
font-size: 11px !important;
|
|
189
|
+
padding: 0 10px 12px !important;
|
|
190
|
+
text-align: left !important;
|
|
191
|
+
width: 100% !important;
|
|
192
|
+
box-sizing: border-box !important;
|
|
193
|
+
height: 26px !important;
|
|
194
|
+
}
|
|
198
195
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
196
|
+
.calendar .text-muted {
|
|
197
|
+
color: inherit !important;
|
|
198
|
+
}
|
|
202
199
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
200
|
+
.left.text-muted {
|
|
201
|
+
float: left !important;
|
|
202
|
+
margin-left: 9px !important;
|
|
203
|
+
color: #767676 !important;
|
|
204
|
+
}
|
|
208
205
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
206
|
+
.left.text-muted a {
|
|
207
|
+
color: #4078c0 !important;
|
|
208
|
+
text-decoration: none !important;
|
|
209
|
+
}
|
|
213
210
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
211
|
+
.left.text-muted a:hover,
|
|
212
|
+
.monospace a:hover {
|
|
213
|
+
text-decoration: underline !important;
|
|
214
|
+
}
|
|
218
215
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
216
|
+
h2.f4.text-normal.mb-3 {
|
|
217
|
+
display: none !important;
|
|
218
|
+
}
|
|
222
219
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
220
|
+
.float-left.text-gray {
|
|
221
|
+
float: left !important;
|
|
222
|
+
}
|
|
226
223
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
224
|
+
#user-activity-overview {
|
|
225
|
+
display: none !important;
|
|
226
|
+
}
|
|
230
227
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
228
|
+
.day-tooltip {
|
|
229
|
+
white-space: nowrap !important;
|
|
230
|
+
position: absolute !important;
|
|
231
|
+
z-index: 99999 !important;
|
|
232
|
+
padding: 10px !important;
|
|
233
|
+
font-size: 12px !important;
|
|
234
|
+
color: #959da5 !important;
|
|
235
|
+
text-align: center !important;
|
|
236
|
+
background: rgba(0, 0, 0, 0.85) !important;
|
|
237
|
+
border-radius: 3px !important;
|
|
238
|
+
display: none !important;
|
|
239
|
+
pointer-events: none !important;
|
|
240
|
+
}
|
|
244
241
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
242
|
+
.day-tooltip strong {
|
|
243
|
+
color: #dfe2e5 !important;
|
|
244
|
+
}
|
|
248
245
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
.day-tooltip.is-visible {
|
|
247
|
+
display: block !important;
|
|
248
|
+
}
|
|
252
249
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
250
|
+
.day-tooltip:after {
|
|
251
|
+
position: absolute !important;
|
|
252
|
+
bottom: -10px !important;
|
|
253
|
+
left: 50% !important;
|
|
254
|
+
width: 5px !important;
|
|
255
|
+
height: 5px !important;
|
|
256
|
+
box-sizing: border-box !important;
|
|
257
|
+
margin: 0 0 0 -5px !important;
|
|
258
|
+
content: ' ' !important;
|
|
259
|
+
border: 5px solid transparent !important;
|
|
260
|
+
border-top-color: rgba(0, 0, 0, 0.85);
|
|
261
|
+
}
|
|
265
262
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
263
|
+
text.ContributionCalendar-label {
|
|
264
|
+
fill: #ccc !important;
|
|
265
|
+
font-size: 11px !important;
|
|
266
|
+
}
|
|
270
267
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
268
|
+
@media screen and (max-width: 768px) {
|
|
269
|
+
.table-column {
|
|
270
|
+
display: block !important;
|
|
271
|
+
width: 100% !important;
|
|
276
272
|
}
|
|
277
273
|
}
|
|
278
274
|
}
|