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