@digicreon/mucss 1.4.2 → 1.4.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/README.md +18 -0
- package/dist/mu.amber.css +1 -1
- package/dist/mu.azure.css +1 -1
- package/dist/mu.blue.css +1 -1
- package/dist/mu.css +1 -1
- package/dist/mu.cyan.css +1 -1
- package/dist/mu.fuchsia.css +1 -1
- package/dist/mu.green.css +1 -1
- package/dist/mu.grey.css +1 -1
- package/dist/mu.indigo.css +1 -1
- package/dist/mu.jade.css +1 -1
- package/dist/mu.lime.css +1 -1
- package/dist/mu.orange.css +1 -1
- package/dist/mu.pink.css +1 -1
- package/dist/mu.pumpkin.css +1 -1
- package/dist/mu.purple.css +1 -1
- package/dist/mu.red.css +1 -1
- package/dist/mu.sand.css +1 -1
- package/dist/mu.slate.css +1 -1
- package/dist/mu.violet.css +1 -1
- package/dist/mu.yellow.css +1 -1
- package/dist/mu.zinc.css +1 -1
- package/documentation/mu.tooltip.md +10 -0
- package/documentation/mu.utilities.md +16 -0
- package/package.json +1 -1
|
@@ -80,6 +80,16 @@ Tooltips can be placed on form elements to guide the user.
|
|
|
80
80
|
|
|
81
81
|
---
|
|
82
82
|
|
|
83
|
+
## Long text and line breaks
|
|
84
|
+
|
|
85
|
+
Long tooltip text wraps automatically (max-width: 20rem). You can also force explicit line breaks using ` ` in the attribute:
|
|
86
|
+
|
|
87
|
+
```html
|
|
88
|
+
<span data-tooltip="Line 1 Line 2 Line 3">Multiline tooltip</span>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
83
93
|
## Attribute summary
|
|
84
94
|
|
|
85
95
|
| Attribute | Required | Description |
|
|
@@ -74,6 +74,22 @@ When used on a `<nav>`, these classes automatically add `z-index: 100` and `box-
|
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
77
|
+
## Cursor
|
|
78
|
+
|
|
79
|
+
| Class | Effect |
|
|
80
|
+
|-------|--------|
|
|
81
|
+
| `.clickable` | `cursor: pointer` — shows a pointer cursor on hover |
|
|
82
|
+
|
|
83
|
+
Use `.clickable` on elements that are interactive via JavaScript but are not `<a>` or `<button>` (which already show a pointer cursor natively).
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<tr class="clickable" onclick="openDetail(this)">
|
|
87
|
+
<td>Row content</td>
|
|
88
|
+
</tr>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
77
93
|
## Color utilities
|
|
78
94
|
|
|
79
95
|
Text, background, and border color classes are documented in [µColors](mu.colors.md#utility-classes).
|