js-kompo-utils 1.0.9 → 1.0.10
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/package.json +1 -1
- package/tutorials/modules/Bubble.js +1 -1
- package/tutorials/tutorial.scss +10 -10
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ export class Bubble {
|
|
|
32
32
|
this.closeBtn = document.createElement('button');
|
|
33
33
|
this.closeBtn.className = 'tutorial-close-btn';
|
|
34
34
|
this.closeBtn.setAttribute('aria-label', 'Close tutorial');
|
|
35
|
-
this.closeBtn.
|
|
35
|
+
this.closeBtn.innerHTML = '<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="1" y1="1" x2="13" y2="13"/><line x1="13" y1="1" x2="1" y2="13"/></svg>';
|
|
36
36
|
this.el.appendChild(this.closeBtn);
|
|
37
37
|
|
|
38
38
|
this.arrowEl = document.createElement('div');
|
package/tutorials/tutorial.scss
CHANGED
|
@@ -216,25 +216,25 @@
|
|
|
216
216
|
// === Close button (top-right of bubble) ===
|
|
217
217
|
.tutorial-close-btn {
|
|
218
218
|
position: absolute;
|
|
219
|
-
top:
|
|
220
|
-
right:
|
|
221
|
-
width:
|
|
222
|
-
height:
|
|
219
|
+
top: 10px;
|
|
220
|
+
right: 10px;
|
|
221
|
+
width: 24px;
|
|
222
|
+
height: 24px;
|
|
223
223
|
border: none;
|
|
224
224
|
border-radius: 50%;
|
|
225
|
-
background:
|
|
226
|
-
color: #
|
|
227
|
-
font-size:
|
|
225
|
+
background: none;
|
|
226
|
+
color: #aaa;
|
|
227
|
+
font-size: 20px;
|
|
228
228
|
line-height: 1;
|
|
229
229
|
cursor: pointer;
|
|
230
230
|
display: flex;
|
|
231
231
|
align-items: center;
|
|
232
232
|
justify-content: center;
|
|
233
|
-
transition:
|
|
234
|
-
z-index:
|
|
233
|
+
transition: color 0.15s;
|
|
234
|
+
z-index: 2;
|
|
235
|
+
padding: 0;
|
|
235
236
|
|
|
236
237
|
&:hover {
|
|
237
|
-
background: rgba(0, 0, 0, 0.12);
|
|
238
238
|
color: #333;
|
|
239
239
|
}
|
|
240
240
|
}
|