@digicreon/mucss 1.0.0
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/LICENSE +21 -0
- package/README.md +145 -0
- package/dist/mu.amber.css +2 -0
- package/dist/mu.azure.css +2 -0
- package/dist/mu.blue.css +2 -0
- package/dist/mu.css +2 -0
- package/dist/mu.cyan.css +2 -0
- package/dist/mu.fuchsia.css +2 -0
- package/dist/mu.green.css +2 -0
- package/dist/mu.grey.css +2 -0
- package/dist/mu.indigo.css +2 -0
- package/dist/mu.jade.css +2 -0
- package/dist/mu.lime.css +2 -0
- package/dist/mu.orange.css +2 -0
- package/dist/mu.pink.css +2 -0
- package/dist/mu.pumpkin.css +2 -0
- package/dist/mu.purple.css +2 -0
- package/dist/mu.red.css +2 -0
- package/dist/mu.sand.css +2 -0
- package/dist/mu.slate.css +2 -0
- package/dist/mu.violet.css +2 -0
- package/dist/mu.yellow.css +2 -0
- package/dist/mu.zinc.css +2 -0
- package/documentation/mu.accordion.md +119 -0
- package/documentation/mu.alert.md +134 -0
- package/documentation/mu.badge.md +155 -0
- package/documentation/mu.breadcrumb.md +140 -0
- package/documentation/mu.button.md +147 -0
- package/documentation/mu.card.md +135 -0
- package/documentation/mu.checkbox-radio.md +121 -0
- package/documentation/mu.dropdown.md +183 -0
- package/documentation/mu.forms-advanced.md +164 -0
- package/documentation/mu.forms.md +147 -0
- package/documentation/mu.grid.md +175 -0
- package/documentation/mu.group.md +102 -0
- package/documentation/mu.loading.md +99 -0
- package/documentation/mu.modal.md +163 -0
- package/documentation/mu.pagination.md +196 -0
- package/documentation/mu.progress.md +123 -0
- package/documentation/mu.range.md +103 -0
- package/documentation/mu.spinner.md +102 -0
- package/documentation/mu.switch.md +110 -0
- package/documentation/mu.table.md +147 -0
- package/documentation/mu.tabs.md +164 -0
- package/documentation/mu.tooltip.md +98 -0
- package/documentation/mu.typography.md +196 -0
- package/package.json +31 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# µTable
|
|
2
|
+
|
|
3
|
+
**µTable** provides enhanced table styles for the [µCSS](.) framework. It adds hover highlights, striped rows, bordered cells, compact padding, and fullwidth layout on top of PicoCSS's default table styling.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
Apply one or more modifier classes directly on the `<table>` element:
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<table class="table-hover">
|
|
13
|
+
<thead>
|
|
14
|
+
<tr><th>Name</th><th>Role</th><th>Status</th></tr>
|
|
15
|
+
</thead>
|
|
16
|
+
<tbody>
|
|
17
|
+
<tr><td>Alice</td><td>Developer</td><td>Active</td></tr>
|
|
18
|
+
<tr><td>Bob</td><td>Designer</td><td>Active</td></tr>
|
|
19
|
+
<tr><td>Charlie</td><td>Manager</td><td>Away</td></tr>
|
|
20
|
+
</tbody>
|
|
21
|
+
</table>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Variants
|
|
27
|
+
|
|
28
|
+
### Hover
|
|
29
|
+
|
|
30
|
+
Highlights a row when the user hovers over it.
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<table class="table-hover">
|
|
34
|
+
...
|
|
35
|
+
</table>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Striped
|
|
39
|
+
|
|
40
|
+
Applies an alternating background on odd rows for better readability.
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<table class="table-striped">
|
|
44
|
+
...
|
|
45
|
+
</table>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Bordered
|
|
49
|
+
|
|
50
|
+
Adds a 1px border around the table and every cell.
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<table class="table-bordered">
|
|
54
|
+
...
|
|
55
|
+
</table>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Compact
|
|
59
|
+
|
|
60
|
+
Reduces cell padding to `0.25rem 0.5rem` for denser data display.
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<table class="table-compact">
|
|
64
|
+
...
|
|
65
|
+
</table>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Fullwidth
|
|
69
|
+
|
|
70
|
+
Forces the table to take up 100% of its container width.
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<table class="table-fullwidth">
|
|
74
|
+
...
|
|
75
|
+
</table>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Combining variants
|
|
81
|
+
|
|
82
|
+
All modifier classes can be combined freely. Common combinations:
|
|
83
|
+
|
|
84
|
+
```html
|
|
85
|
+
<!-- Hover + bordered + fullwidth -->
|
|
86
|
+
<table class="table-hover table-bordered table-fullwidth">
|
|
87
|
+
<thead>
|
|
88
|
+
<tr><th>ID</th><th>Name</th><th>Email</th><th>Role</th></tr>
|
|
89
|
+
</thead>
|
|
90
|
+
<tbody>
|
|
91
|
+
<tr><td>1</td><td>Alice</td><td>alice@example.com</td><td>Developer</td></tr>
|
|
92
|
+
<tr><td>2</td><td>Bob</td><td>bob@example.com</td><td>Designer</td></tr>
|
|
93
|
+
</tbody>
|
|
94
|
+
</table>
|
|
95
|
+
|
|
96
|
+
<!-- Compact + bordered + fullwidth -->
|
|
97
|
+
<table class="table-compact table-bordered table-fullwidth">
|
|
98
|
+
<thead>
|
|
99
|
+
<tr><th>Key</th><th>Value</th><th>Type</th></tr>
|
|
100
|
+
</thead>
|
|
101
|
+
<tbody>
|
|
102
|
+
<tr><td>host</td><td>localhost</td><td>string</td></tr>
|
|
103
|
+
<tr><td>port</td><td>8080</td><td>integer</td></tr>
|
|
104
|
+
</tbody>
|
|
105
|
+
</table>
|
|
106
|
+
|
|
107
|
+
<!-- Striped + hover + bordered + fullwidth -->
|
|
108
|
+
<table class="table-striped table-hover table-bordered table-fullwidth">
|
|
109
|
+
...
|
|
110
|
+
</table>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Class reference
|
|
116
|
+
|
|
117
|
+
| Class | Effect |
|
|
118
|
+
|--------------------|------------------------------------------------------------------------|
|
|
119
|
+
| `.table-hover` | Background highlight on row hover (`--pico-secondary-background`) |
|
|
120
|
+
| `.table-striped` | Alternating background on odd rows (50% `--pico-secondary-background`) |
|
|
121
|
+
| `.table-bordered` | 1px solid border on table, `<th>`, and `<td>` |
|
|
122
|
+
| `.table-compact` | Reduced padding: `0.25rem 0.5rem` |
|
|
123
|
+
| `.table-fullwidth` | `width: 100%` |
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Responsive tables
|
|
128
|
+
|
|
129
|
+
For tables wider than their container, wrap them in a scrollable `<div>`:
|
|
130
|
+
|
|
131
|
+
```html
|
|
132
|
+
<div style="overflow-x: auto;">
|
|
133
|
+
<table class="table-bordered table-fullwidth">
|
|
134
|
+
...
|
|
135
|
+
</table>
|
|
136
|
+
</div>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Note on PicoCSS compatibility
|
|
142
|
+
|
|
143
|
+
PicoCSS sets `background-color` on individual `<th>` and `<td>` cells rather than on `<tr>` rows. For this reason, `.table-hover` and `.table-striped` target `th` and `td` elements directly instead of `tr`. This ensures the hover and stripe backgrounds correctly override PicoCSS cell styles.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
→ [Voir l'exemple](../examples/table.html)
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# µTabs
|
|
2
|
+
|
|
3
|
+
**µTabs** is a tab navigation component for the [µCSS](.) framework. It supports standard underlined tabs and pill-style tabs, with options for alignment and fullwidth layout. Tab switching behavior is left to the application's JavaScript.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
Create a `<ul>` with the `.tabs` class. Each tab is an `<a>` inside a `<li>`. Mark the active tab with `aria-selected="true"`.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<ul class="tabs" role="tablist">
|
|
13
|
+
<li><a href="#" role="tab" aria-selected="true">Dashboard</a></li>
|
|
14
|
+
<li><a href="#" role="tab">Profile</a></li>
|
|
15
|
+
<li><a href="#" role="tab">Settings</a></li>
|
|
16
|
+
</ul>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The active tab displays a colored bottom border and bold text. Inactive tabs show a subtle secondary color that changes on hover.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Variants
|
|
24
|
+
|
|
25
|
+
### Standard tabs
|
|
26
|
+
|
|
27
|
+
The default style uses an underline indicator with a bottom border.
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<ul class="tabs" role="tablist">
|
|
31
|
+
<li><a href="#" role="tab" aria-selected="true">Dashboard</a></li>
|
|
32
|
+
<li><a href="#" role="tab">Profile</a></li>
|
|
33
|
+
<li><a href="#" role="tab">Settings</a></li>
|
|
34
|
+
</ul>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Pill tabs
|
|
38
|
+
|
|
39
|
+
Add `.tabs-pills` for a rounded pill style. The active tab gets a filled background instead of an underline.
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<ul class="tabs tabs-pills" role="tablist">
|
|
43
|
+
<li><a href="#" role="tab" aria-selected="true">Overview</a></li>
|
|
44
|
+
<li><a href="#" role="tab">Details</a></li>
|
|
45
|
+
<li><a href="#" role="tab">Reviews</a></li>
|
|
46
|
+
</ul>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Alignment
|
|
52
|
+
|
|
53
|
+
### Centered
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<ul class="tabs tabs-centered" role="tablist">
|
|
57
|
+
<li><a href="#" role="tab" aria-selected="true">Home</a></li>
|
|
58
|
+
<li><a href="#" role="tab">About</a></li>
|
|
59
|
+
<li><a href="#" role="tab">Contact</a></li>
|
|
60
|
+
</ul>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### End-aligned (right)
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<ul class="tabs tabs-end" role="tablist">
|
|
67
|
+
<li><a href="#" role="tab" aria-selected="true">Home</a></li>
|
|
68
|
+
<li><a href="#" role="tab">About</a></li>
|
|
69
|
+
<li><a href="#" role="tab">Contact</a></li>
|
|
70
|
+
</ul>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Fullwidth
|
|
74
|
+
|
|
75
|
+
Each tab takes equal width, filling the entire container.
|
|
76
|
+
|
|
77
|
+
```html
|
|
78
|
+
<ul class="tabs tabs-fullwidth" role="tablist">
|
|
79
|
+
<li><a href="#" role="tab" aria-selected="true">Tab A</a></li>
|
|
80
|
+
<li><a href="#" role="tab">Tab B</a></li>
|
|
81
|
+
<li><a href="#" role="tab">Tab C</a></li>
|
|
82
|
+
</ul>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Combining modifiers
|
|
88
|
+
|
|
89
|
+
Modifiers can be combined freely. Common combinations:
|
|
90
|
+
|
|
91
|
+
```html
|
|
92
|
+
<!-- Centered pills -->
|
|
93
|
+
<ul class="tabs tabs-pills tabs-centered" role="tablist">
|
|
94
|
+
<li><a href="#" role="tab" aria-selected="true">Overview</a></li>
|
|
95
|
+
<li><a href="#" role="tab">Details</a></li>
|
|
96
|
+
<li><a href="#" role="tab">Reviews</a></li>
|
|
97
|
+
</ul>
|
|
98
|
+
|
|
99
|
+
<!-- Fullwidth pills -->
|
|
100
|
+
<ul class="tabs tabs-pills tabs-fullwidth" role="tablist">
|
|
101
|
+
<li><a href="#" role="tab" aria-selected="true">Day</a></li>
|
|
102
|
+
<li><a href="#" role="tab">Week</a></li>
|
|
103
|
+
<li><a href="#" role="tab">Month</a></li>
|
|
104
|
+
</ul>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Tab panels
|
|
110
|
+
|
|
111
|
+
µTabs does not include JavaScript. Panel switching is the application's responsibility. A typical pattern uses `data-tab` and `data-tab-panel` attributes with the `hidden` attribute:
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<ul class="tabs" role="tablist">
|
|
115
|
+
<li><a href="#" role="tab" aria-selected="true" data-tab="std-1">Dashboard</a></li>
|
|
116
|
+
<li><a href="#" role="tab" data-tab="std-2">Profile</a></li>
|
|
117
|
+
<li><a href="#" role="tab" data-tab="std-3">Settings</a></li>
|
|
118
|
+
</ul>
|
|
119
|
+
<div data-tab-panel="std-1">Dashboard content — overview of your account activity.</div>
|
|
120
|
+
<div data-tab-panel="std-2" hidden>Profile content — manage your personal information.</div>
|
|
121
|
+
<div data-tab-panel="std-3" hidden>Settings content — configure your preferences.</div>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Class reference
|
|
127
|
+
|
|
128
|
+
| Class | Effect |
|
|
129
|
+
|--------------------|---------------------------------------------------------------|
|
|
130
|
+
| `.tabs` | Base flex container with bottom border, removes list-style |
|
|
131
|
+
| `.tabs-pills` | Pill variant: no bottom border, rounded backgrounds |
|
|
132
|
+
| `.tabs-centered` | Center-align tabs (`justify-content: center`) |
|
|
133
|
+
| `.tabs-end` | Right-align tabs (`justify-content: flex-end`) |
|
|
134
|
+
| `.tabs-fullwidth` | Equal-width tabs filling the container (`flex: 1` on `<li>`) |
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Active state
|
|
139
|
+
|
|
140
|
+
The active tab is indicated by the `aria-selected="true"` attribute on the `<a>` element:
|
|
141
|
+
|
|
142
|
+
| Style | Active appearance |
|
|
143
|
+
|----------|-------------------------------------------------------------------------|
|
|
144
|
+
| Standard | Primary-colored bottom border, `font-weight: 600`, primary text color |
|
|
145
|
+
| Pills | Filled primary background, inverse text color, no border |
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Accessibility
|
|
150
|
+
|
|
151
|
+
- Use `role="tablist"` on the `<ul>` container.
|
|
152
|
+
- Use `role="tab"` on each `<a>` element.
|
|
153
|
+
- Set `aria-selected="true"` on the active tab and `aria-selected="false"` (or omit) on inactive tabs.
|
|
154
|
+
- Associate panels with `role="tabpanel"` and `aria-labelledby` for full WAI-ARIA compliance.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Note on PicoCSS compatibility
|
|
159
|
+
|
|
160
|
+
PicoCSS applies `list-style: square` to `ul li` elements. µTabs explicitly sets `list-style: none` on `.tabs` and `.tabs li` to neutralize this default and prevent bullet markers from appearing next to tab items.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
→ [Voir l'exemple](../examples/tabs.html)
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# µTooltip
|
|
2
|
+
|
|
3
|
+
**µTooltip** fournit des infobulles CSS pures via l'attribut `data-tooltip`, styles par [PicoCSS](https://picocss.com) au sein du framework [µCSS](.). Aucun JavaScript n'est necessaire : les tooltips apparaissent au survol ou au focus.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Utilisation de base
|
|
8
|
+
|
|
9
|
+
Ajoutez l'attribut `data-tooltip` sur n'importe quel element HTML pour afficher une infobulle au survol. Par defaut, le tooltip apparait au-dessus de l'element.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<span data-tooltip="This is a tooltip">Hover me</span>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Pour un rendu visuel clair sur du texte inline, on peut ajouter un style de soulignement :
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<span data-tooltip="This is a tooltip"
|
|
19
|
+
style="text-decoration: underline dotted; cursor: help;">this text</span>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Placement
|
|
25
|
+
|
|
26
|
+
L'attribut `data-placement` controle la position du tooltip. Quatre positions sont disponibles :
|
|
27
|
+
|
|
28
|
+
| Valeur | Position |
|
|
29
|
+
|--------|----------|
|
|
30
|
+
| `top` | Au-dessus (par defaut) |
|
|
31
|
+
| `bottom` | En dessous |
|
|
32
|
+
| `left` | A gauche |
|
|
33
|
+
| `right` | A droite |
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<span data-tooltip="Top tooltip" data-placement="top">Top</span>
|
|
37
|
+
<span data-tooltip="Bottom tooltip" data-placement="bottom">Bottom</span>
|
|
38
|
+
<span data-tooltip="Left tooltip" data-placement="left">Left</span>
|
|
39
|
+
<span data-tooltip="Right tooltip" data-placement="right">Right</span>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Sur des boutons
|
|
45
|
+
|
|
46
|
+
Les tooltips fonctionnent sur les boutons pour fournir un contexte supplementaire sur l'action.
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<button class="btn btn-primary" data-tooltip="Save your changes">Save</button>
|
|
50
|
+
<button class="btn btn-ghost btn-error"
|
|
51
|
+
data-tooltip="This action cannot be undone"
|
|
52
|
+
data-placement="bottom">Delete</button>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Sur des liens
|
|
58
|
+
|
|
59
|
+
Ajoutez un tooltip sur un lien pour decrire la destination ou l'action.
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<p>Visit the <a href="#" data-tooltip="Go to the homepage">homepage</a>
|
|
63
|
+
or check the <a href="#" data-tooltip="Read the full documentation"
|
|
64
|
+
data-placement="bottom">documentation</a>.</p>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Sur des champs de formulaire
|
|
70
|
+
|
|
71
|
+
Les tooltips peuvent etre places sur des elements de formulaire pour guider l'utilisateur.
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<label>Username
|
|
75
|
+
<input type="text"
|
|
76
|
+
data-tooltip="Must be 3-20 characters"
|
|
77
|
+
placeholder="Enter username">
|
|
78
|
+
</label>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Resume des attributs
|
|
84
|
+
|
|
85
|
+
| Attribut | Requis | Description |
|
|
86
|
+
|----------|--------|-------------|
|
|
87
|
+
| `data-tooltip` | Oui | Texte affiche dans l'infobulle |
|
|
88
|
+
| `data-placement` | Non | Position : `top` (defaut), `bottom`, `left`, `right` |
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Accessibilite
|
|
93
|
+
|
|
94
|
+
- Les tooltips sont accessibles au clavier via le focus (`:focus` en plus de `:hover`).
|
|
95
|
+
- Le contenu du `data-tooltip` est lu par les technologies d'assistance.
|
|
96
|
+
- Evitez de placer des informations essentielles uniquement dans un tooltip ; le contenu doit rester comprehensible sans interaction de survol.
|
|
97
|
+
|
|
98
|
+
→ [Voir l'exemple](../examples/tooltip.html)
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# µTypography
|
|
2
|
+
|
|
3
|
+
**µTypography** regroupe les elements typographiques natifs HTML styles par [PicoCSS](https://picocss.com) au sein du framework [µCSS](.). Aucun fichier CSS supplementaire n'est necessaire : les titres, paragraphes, listes, citations, code et elements semantiques inline sont styles automatiquement.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Titres
|
|
8
|
+
|
|
9
|
+
Les six niveaux de titres HTML sont styles avec des tailles et graisses progressives.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<h1>Heading 1</h1>
|
|
13
|
+
<h2>Heading 2</h2>
|
|
14
|
+
<h3>Heading 3</h3>
|
|
15
|
+
<h4>Heading 4</h4>
|
|
16
|
+
<h5>Heading 5</h5>
|
|
17
|
+
<h6>Heading 6</h6>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Heading group
|
|
21
|
+
|
|
22
|
+
L'element `<hgroup>` permet d'associer un titre principal a un sous-titre ou une accroche.
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<hgroup>
|
|
26
|
+
<h2>Main heading</h2>
|
|
27
|
+
<p>Subtitle or tagline below the heading.</p>
|
|
28
|
+
</hgroup>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Le paragraphe a l'interieur de `<hgroup>` est affiche dans un style attenue (couleur secondaire, taille reduite).
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Paragraphes
|
|
36
|
+
|
|
37
|
+
Les paragraphes utilisent le style par defaut de PicoCSS avec un espacement vertical harmonieux.
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod
|
|
41
|
+
tempor incididunt ut labore et dolore magna aliqua.</p>
|
|
42
|
+
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
|
|
43
|
+
dolore eu fugiat nulla pariatur.</p>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Citations
|
|
49
|
+
|
|
50
|
+
L'element `<blockquote>` affiche une citation avec un style visuel distinct (bordure laterale, retrait). Un `<footer>` avec `<cite>` permet d'attribuer la source.
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<blockquote>
|
|
54
|
+
"Design is not just what it looks like and feels like. Design is how it works."
|
|
55
|
+
<footer><cite>Steve Jobs</cite></footer>
|
|
56
|
+
</blockquote>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Listes
|
|
62
|
+
|
|
63
|
+
### Liste non ordonnee
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<ul>
|
|
67
|
+
<li>First item</li>
|
|
68
|
+
<li>Second item
|
|
69
|
+
<ul>
|
|
70
|
+
<li>Nested item A</li>
|
|
71
|
+
<li>Nested item B</li>
|
|
72
|
+
</ul>
|
|
73
|
+
</li>
|
|
74
|
+
<li>Third item</li>
|
|
75
|
+
</ul>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Liste ordonnee
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<ol>
|
|
82
|
+
<li>Step one</li>
|
|
83
|
+
<li>Step two</li>
|
|
84
|
+
<li>Step three</li>
|
|
85
|
+
</ol>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Liste de definitions
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<dl>
|
|
92
|
+
<dt>Term</dt>
|
|
93
|
+
<dd>Definition of the term.</dd>
|
|
94
|
+
<dt>Another term</dt>
|
|
95
|
+
<dd>Another definition.</dd>
|
|
96
|
+
</dl>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Texte inline semantique
|
|
102
|
+
|
|
103
|
+
PicoCSS style automatiquement les elements semantiques inline :
|
|
104
|
+
|
|
105
|
+
| Element | Rendu | Usage |
|
|
106
|
+
|---------|-------|-------|
|
|
107
|
+
| `<strong>` | **Gras** | Importance forte |
|
|
108
|
+
| `<em>` | *Italique* | Emphase |
|
|
109
|
+
| `<u>` | Souligne | Annotation |
|
|
110
|
+
| `<small>` | Petit texte | Mentions legales, notes |
|
|
111
|
+
| `<del>` | ~~Barre~~ | Texte supprime |
|
|
112
|
+
| `<ins>` | Souligne | Texte insere |
|
|
113
|
+
| `<abbr>` | Pointille | Abreviation (avec `title`) |
|
|
114
|
+
| `<mark>` | Surligne | Texte mis en evidence |
|
|
115
|
+
| `<sub>` | Indice | Formules, notes |
|
|
116
|
+
| `<sup>` | Exposant | References, puissances |
|
|
117
|
+
|
|
118
|
+
```html
|
|
119
|
+
<p><strong>Bold text</strong> and <em>italic text</em> and <u>underlined text</u>.</p>
|
|
120
|
+
<p><small>Small text</small> and <del>deleted text</del> and <ins>inserted text</ins>.</p>
|
|
121
|
+
<p><abbr title="Cascading Style Sheets">CSS</abbr> is an abbreviation.</p>
|
|
122
|
+
<p><mark>Highlighted text</mark> using the mark element.</p>
|
|
123
|
+
<p>Text with <sub>subscript</sub> and <sup>superscript</sup>.</p>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Code
|
|
129
|
+
|
|
130
|
+
### Code inline
|
|
131
|
+
|
|
132
|
+
L'element `<code>` affiche du code dans une police monospace avec un fond legerement colore.
|
|
133
|
+
|
|
134
|
+
```html
|
|
135
|
+
<p>Inline <code>code element</code> within text.</p>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Bloc de code
|
|
139
|
+
|
|
140
|
+
Le couple `<pre><code>` affiche un bloc de code preformate avec fond distinct et defilement horizontal si necessaire.
|
|
141
|
+
|
|
142
|
+
```html
|
|
143
|
+
<pre><code><div class="container">
|
|
144
|
+
<h1>Hello World</h1>
|
|
145
|
+
<p>This is a code block.</p>
|
|
146
|
+
</div></code></pre>
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Clavier
|
|
152
|
+
|
|
153
|
+
L'element `<kbd>` represente une touche ou combinaison de touches avec un style de touche physique.
|
|
154
|
+
|
|
155
|
+
```html
|
|
156
|
+
<p>Press <kbd>Ctrl</kbd> + <kbd>C</kbd> to copy, <kbd>Ctrl</kbd> + <kbd>V</kbd> to paste.</p>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Separateur horizontal
|
|
162
|
+
|
|
163
|
+
L'element `<hr>` affiche un trait fin separant deux blocs de contenu.
|
|
164
|
+
|
|
165
|
+
```html
|
|
166
|
+
<p>Content above the separator.</p>
|
|
167
|
+
<hr>
|
|
168
|
+
<p>Content below the separator.</p>
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Figure
|
|
174
|
+
|
|
175
|
+
L'element `<figure>` encadre un contenu (tableau, image, etc.) avec une legende via `<figcaption>`.
|
|
176
|
+
|
|
177
|
+
```html
|
|
178
|
+
<figure>
|
|
179
|
+
<table>
|
|
180
|
+
<thead><tr><th>Name</th><th>Value</th></tr></thead>
|
|
181
|
+
<tbody><tr><td>Alpha</td><td>100</td></tr></tbody>
|
|
182
|
+
</table>
|
|
183
|
+
<figcaption>Figure 1 — A table inside a figure element.</figcaption>
|
|
184
|
+
</figure>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Accessibilite
|
|
190
|
+
|
|
191
|
+
- Utiliser les niveaux de titres dans l'ordre hierarchique (`h1` > `h2` > `h3`...) pour la navigation au lecteur d'ecran.
|
|
192
|
+
- L'attribut `title` sur `<abbr>` fournit la forme complete de l'abreviation aux technologies d'assistance.
|
|
193
|
+
- `<blockquote>` avec `<cite>` permet aux lecteurs d'ecran d'identifier la source d'une citation.
|
|
194
|
+
- L'element `<mark>` est annonce comme "surbrillance" par les lecteurs d'ecran.
|
|
195
|
+
|
|
196
|
+
→ [Voir l'exemple](../examples/typography.html)
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@digicreon/mucss",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "µCSS — A CSS framework built on PicoCSS v2",
|
|
5
|
+
"main": "dist/mu.css",
|
|
6
|
+
"style": "dist/mu.css",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/",
|
|
9
|
+
"documentation/",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"css",
|
|
14
|
+
"framework",
|
|
15
|
+
"picocss",
|
|
16
|
+
"responsive",
|
|
17
|
+
"grid",
|
|
18
|
+
"components",
|
|
19
|
+
"dark-mode",
|
|
20
|
+
"accessible"
|
|
21
|
+
],
|
|
22
|
+
"homepage": "https://www.mucss.org",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/Digicreon/muCSS.git"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/Digicreon/muCSS/issues"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT"
|
|
31
|
+
}
|