@pimolu/web-styles 0.1.0-beta.1 → 0.1.0-beta.2

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.fr.md CHANGED
@@ -1,30 +1,40 @@
1
1
  # @pimolu/web-styles
2
2
 
3
- Feuilles de style CSS pour les composants Pimolu UI.
3
+ La couche CSS de Pimolu UI. Elle réunit les tokens, les thèmes de couleurs, les presets visuels et les styles des familles de composants React. Aucun runtime Tailwind ou CSS-in-JS n'est nécessaire.
4
4
 
5
- > **0.1.0-beta.1** — version de prévisualisation.
5
+ > **0.1.0-beta.2** est une version de prévisualisation.
6
+
7
+ ## Installation
6
8
 
7
9
  ```bash
8
- pnpm add @pimolu/web-styles
10
+ pnpm add @pimolu/web-styles@beta
9
11
  ```
10
12
 
11
- Importez le bundle complet une seule fois :
13
+ ## Charger la feuille complète
14
+
15
+ Importez-la une fois dans le CSS global de votre application :
12
16
 
13
- ```ts
14
- import "@pimolu/web-styles/styles.css";
17
+ ```css
18
+ @import "@pimolu/web-styles/styles.css";
15
19
  ```
16
20
 
17
- Ou importez uniquement le CSS des composants utilisés :
21
+ Cette entrée inclut les tokens communs, les thèmes, les presets et toutes les feuilles des composants. C'est l'option la plus simple avec `@pimolu/react`. Une version minifiée est exportée sous `@pimolu/web-styles/pimolu.min.css`.
22
+
23
+ ## Charger les styles par composant
18
24
 
19
- ```ts
20
- import "@pimolu/web-styles/button.css";
21
- import "@pimolu/web-styles/input.css";
25
+ Pour composer manuellement une feuille plus légère, installez aussi `@pimolu/themes@beta` et importez les fondations avant les composants utilisés :
26
+
27
+ ```css
28
+ @import "@pimolu/themes/styles.css";
29
+ @import "@pimolu/themes/presets.css";
30
+ @import "@pimolu/web-styles/button.css";
31
+ @import "@pimolu/web-styles/input.css";
22
32
  ```
23
33
 
24
- Le bundle complet inclut les tokens Pimolu, les thèmes, les presets, les tokens
25
- visuels et tous les styles de composants. Aucun runtime Tailwind ou CSS-in-JS
26
- n'est nécessaire. Chaque feuille de composant est aussi exportée séparément.
34
+ Chaque feuille de composant est un sous-chemin exporté du package ; consultez les [exports du package](https://github.com/pimoludev/ui/blob/main/packages/web-styles/package.json) pour la liste complète. Conservez la même version pour le CSS et `@pimolu/react`.
35
+
36
+ ## Liens
27
37
 
28
- Documentation : <https://github.com/pimoludev/ui>
38
+ [Démarrage rapide](https://pimolu.com/docs/quick-start) · [Tous les packages npm](https://www.npmjs.com/org/pimolu) · [Code source](https://github.com/pimoludev/ui/tree/main/packages/web-styles)
29
39
 
30
40
  MIT © Pimolu
package/README.md CHANGED
@@ -1,30 +1,40 @@
1
1
  # @pimolu/web-styles
2
2
 
3
- Plain CSS stylesheets for Pimolu UI components.
3
+ The plain CSS layer for Pimolu UI. It combines design tokens, colour themes, visual presets and styles for the React component families. No Tailwind or CSS-in-JS runtime is required.
4
4
 
5
- > **0.1.0-beta.1** — preview release.
5
+ > **0.1.0-beta.2** is a preview release.
6
+
7
+ ## Install
6
8
 
7
9
  ```bash
8
- pnpm add @pimolu/web-styles
10
+ pnpm add @pimolu/web-styles@beta
9
11
  ```
10
12
 
11
- Import the complete bundle once:
13
+ ## Load the complete stylesheet
14
+
15
+ Import it once in your application's global CSS:
12
16
 
13
- ```ts
14
- import "@pimolu/web-styles/styles.css";
17
+ ```css
18
+ @import "@pimolu/web-styles/styles.css";
15
19
  ```
16
20
 
17
- Or import only the component CSS you use:
21
+ This entry includes the shared tokens, themes, presets and every component stylesheet. It is the simplest option with `@pimolu/react`. A minified alternative is exported as `@pimolu/web-styles/pimolu.min.css`.
22
+
23
+ ## Load individual component styles
18
24
 
19
- ```ts
20
- import "@pimolu/web-styles/button.css";
21
- import "@pimolu/web-styles/input.css";
25
+ For a smaller, manually assembled stylesheet, install `@pimolu/themes@beta` too and import the foundations before the components you use:
26
+
27
+ ```css
28
+ @import "@pimolu/themes/styles.css";
29
+ @import "@pimolu/themes/presets.css";
30
+ @import "@pimolu/web-styles/button.css";
31
+ @import "@pimolu/web-styles/input.css";
22
32
  ```
23
33
 
24
- The full bundle includes Pimolu tokens, themes, presets, visual tokens and all
25
- component styles. No Tailwind or CSS-in-JS runtime is required. Every component
26
- stylesheet is also exported as a separate entry point.
34
+ Each component CSS file is an exported package subpath; check the [package exports](https://github.com/pimoludev/ui/blob/main/packages/web-styles/package.json) for the complete list. Keep the CSS and `@pimolu/react` versions aligned.
35
+
36
+ ## Links
27
37
 
28
- Documentation: <https://github.com/pimoludev/ui>
38
+ [Quick start](https://pimolu.com/docs/quick-start) · [All npm packages](https://www.npmjs.com/org/pimolu) · [Source](https://github.com/pimoludev/ui/tree/main/packages/web-styles)
29
39
 
30
40
  MIT © Pimolu
@@ -1,18 +1,20 @@
1
1
  /* src/app-shell.css */
2
2
  .pimolu-app-shell {
3
3
  --pimolu-app-shell-sidebar-width: 16rem;
4
+ --pimolu-app-shell-sidebar-track: var(--pimolu-app-shell-sidebar-width);
4
5
  --pimolu-app-shell-aside-width: 18rem;
5
6
  display: grid;
6
- grid-template-columns: var(--pimolu-app-shell-sidebar-width) minmax(0, 1fr);
7
+ grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
7
8
  grid-template-areas: "header header" "sidebar main" "footer footer";
8
9
  box-sizing: border-box;
10
+ min-width: 0;
9
11
  min-height: 100dvh;
10
12
  background: var(--pimolu-background);
11
13
  color: var(--pimolu-foreground);
12
14
  font-family: var(--pimolu-font-body, inherit);
13
15
  }
14
16
  .pimolu-app-shell[data-aside=true] {
15
- grid-template-columns: var(--pimolu-app-shell-sidebar-width) minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
17
+ grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
16
18
  grid-template-areas: "header header header" "sidebar main aside" "footer footer footer";
17
19
  }
18
20
  .pimolu-app-shell[data-sidebar=false] {
@@ -23,21 +25,14 @@
23
25
  grid-template-columns: minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
24
26
  grid-template-areas: "header header" "main aside" "footer footer";
25
27
  }
26
- .pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]) {
27
- --pimolu-app-shell-sidebar-width: 3.75rem;
28
- grid-template-columns: 3.75rem minmax(0, 1fr);
29
- }
30
- .pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
31
- grid-template-columns: 3.75rem minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
28
+ .pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
29
+ --pimolu-app-shell-sidebar-track: 3.75rem;
32
30
  }
33
31
  @container (max-width: 1100px) {
34
32
  .pimolu-app-shell[data-aside=true] {
35
- grid-template-columns: var(--pimolu-app-shell-sidebar-width) minmax(0, 1fr);
33
+ grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
36
34
  grid-template-areas: "header header" "sidebar main" "aside aside" "footer footer";
37
35
  }
38
- .pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
39
- grid-template-columns: 3.75rem minmax(0, 1fr);
40
- }
41
36
  .pimolu-app-shell[data-sidebar=false][data-aside=true] {
42
37
  grid-template-columns: minmax(0, 1fr);
43
38
  grid-template-areas: "header" "main" "aside" "footer";
@@ -48,6 +43,27 @@
48
43
  }
49
44
  }
50
45
  @container (max-width: 720px) {
46
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
47
+ display: flex;
48
+ min-height: 40px;
49
+ padding-block: 0;
50
+ }
51
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
52
+ position: absolute;
53
+ }
54
+ .pimolu-app-shell > .pimolu-app-shell__sidebar > .pimolu-sidebar {
55
+ width: 100%;
56
+ min-height: auto;
57
+ border-inline-end: 0;
58
+ }
59
+ .pimolu-app-shell__sidebar {
60
+ border-inline-end: 0;
61
+ border-block-end: 1px solid var(--pimolu-border);
62
+ }
63
+ .pimolu-app-shell__main,
64
+ .pimolu-app-shell__aside {
65
+ padding: var(--pimolu-spacing-4, 16px);
66
+ }
51
67
  .pimolu-app-shell,
52
68
  .pimolu-app-shell[data-aside=true],
53
69
  .pimolu-app-shell[data-sidebar=false],
@@ -105,6 +121,19 @@
105
121
  font-size: 0.8125rem;
106
122
  }
107
123
  @media (max-width: 960px) {
124
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
125
+ display: flex;
126
+ min-height: 40px;
127
+ padding-block: 0;
128
+ }
129
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
130
+ position: absolute;
131
+ }
132
+ .pimolu-app-shell > .pimolu-app-shell__sidebar > .pimolu-sidebar {
133
+ width: 100%;
134
+ min-height: auto;
135
+ border-inline-end: 0;
136
+ }
108
137
  .pimolu-app-shell,
109
138
  .pimolu-app-shell[data-aside=true],
110
139
  .pimolu-app-shell[data-sidebar=false],
@@ -112,15 +141,15 @@
112
141
  grid-template-columns: minmax(0, 1fr);
113
142
  grid-template-areas: "header" "sidebar" "main" "aside" "footer";
114
143
  }
115
- .pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]),
116
- .pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
144
+ .pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]),
145
+ .pimolu-app-shell[data-aside=true]:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
117
146
  grid-template-columns: minmax(0, 1fr);
118
147
  }
119
- .pimolu-app-shell .pimolu-sidebar[data-collapsed=true] {
148
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] {
120
149
  width: 100%;
121
150
  min-height: 60px;
122
151
  }
123
- .pimolu-app-shell .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
152
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
124
153
  display: none;
125
154
  }
126
155
  .pimolu-app-shell[data-sidebar=false] {
@@ -158,15 +187,15 @@
158
187
  }
159
188
  }
160
189
  @container (max-width: 720px) {
161
- .pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]),
162
- .pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
190
+ .pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]),
191
+ .pimolu-app-shell[data-aside=true]:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
163
192
  grid-template-columns: minmax(0, 1fr);
164
193
  }
165
- .pimolu-app-shell .pimolu-sidebar[data-collapsed=true] {
194
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] {
166
195
  width: 100%;
167
196
  min-height: 60px;
168
197
  }
169
- .pimolu-app-shell .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
198
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
170
199
  display: none;
171
200
  }
172
201
  }
package/dist/chart.css CHANGED
@@ -1,9 +1,12 @@
1
1
  /* src/chart.css */
2
2
  .pimolu-chart {
3
+ position: relative;
3
4
  --pimolu-chart-axis: var(--pimolu-muted-foreground, #6b7280);
4
5
  --pimolu-chart-grid: var(--pimolu-border, rgba(0, 0, 0, 0.12));
5
6
  --pimolu-chart-surface: var(--pimolu-surface, #ffffff);
6
7
  --pimolu-chart-color: var(--pimolu-primary, #4f46e5);
8
+ --pimolu-chart-area-fill: var(--pimolu-chart-color);
9
+ --pimolu-chart-area-opacity: 0.16;
7
10
  --pimolu-chart-label-size: 13px;
8
11
  --pimolu-chart-axis-title-size: 13px;
9
12
  --pimolu-chart-value-size: 12px;
@@ -21,6 +24,56 @@
21
24
  position: relative;
22
25
  width: 100%;
23
26
  min-width: 0;
27
+ border-radius: var(--pimolu-radius-md, 8px);
28
+ touch-action: pan-y;
29
+ }
30
+ .pimolu-chart__canvas:focus-visible {
31
+ outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary, #4f46e5));
32
+ outline-offset: 4px;
33
+ }
34
+ .pimolu-chart__cursor {
35
+ position: absolute;
36
+ inset-block: 5% 12%;
37
+ border-inline-start: 1px dashed var(--pimolu-chart-axis);
38
+ opacity: 0.65;
39
+ pointer-events: none;
40
+ }
41
+ .pimolu-chart__tooltip {
42
+ position: absolute;
43
+ z-index: 2;
44
+ inset-block-start: 8px;
45
+ inset-inline-end: 8px;
46
+ box-sizing: border-box;
47
+ width: max-content;
48
+ max-width: calc(100% - 16px);
49
+ padding: 12px;
50
+ border: 1px solid var(--pimolu-chart-grid);
51
+ border-radius: var(--pimolu-radius-md, 8px);
52
+ background: var(--pimolu-chart-surface);
53
+ color: var(--pimolu-surface-foreground, var(--pimolu-foreground, #111827));
54
+ box-shadow: var(--pimolu-shadow-raised, none);
55
+ font-size: var(--pimolu-chart-legend-size);
56
+ line-height: 1.5;
57
+ overflow-wrap: anywhere;
58
+ }
59
+ .pimolu-chart__tooltip > strong {
60
+ display: block;
61
+ margin-block-end: 6px;
62
+ }
63
+ .pimolu-chart__tooltip-row {
64
+ display: grid;
65
+ grid-template-columns: 8px minmax(0, 1fr) auto;
66
+ align-items: center;
67
+ gap: 8px;
68
+ }
69
+ .pimolu-chart__tooltip-row b {
70
+ font-variant-numeric: tabular-nums;
71
+ text-align: end;
72
+ }
73
+ .pimolu-chart__tooltip-row .pimolu-chart__legend-swatch {
74
+ width: 8px;
75
+ height: 8px;
76
+ border-radius: 50%;
24
77
  }
25
78
  .pimolu-chart__svg {
26
79
  display: block;
@@ -34,6 +87,8 @@
34
87
  stroke-width: 1;
35
88
  shape-rendering: crispEdges;
36
89
  vector-effect: non-scaling-stroke;
90
+ stroke-dasharray: 3 5;
91
+ opacity: 0.7;
37
92
  }
38
93
  .pimolu-chart__axis {
39
94
  stroke: var(--pimolu-chart-grid);
@@ -75,12 +130,13 @@
75
130
  stroke-width: 2.5;
76
131
  stroke-linecap: round;
77
132
  stroke-linejoin: round;
133
+ vector-effect: non-scaling-stroke;
78
134
  stroke-dasharray: 1;
79
135
  animation: pimolu-chart-draw 650ms ease-out both;
80
136
  }
81
137
  .pimolu-chart__area {
82
- fill: var( --pimolu-chart-color, var(--pimolu-primary, #4f46e5) );
83
- fill-opacity: 0.16;
138
+ fill: var(--pimolu-chart-area-fill, var(--pimolu-chart-color, var(--pimolu-primary, #4f46e5)));
139
+ fill-opacity: var(--pimolu-chart-area-opacity, 0.16);
84
140
  stroke: none;
85
141
  animation: pimolu-chart-fade 420ms ease-out both;
86
142
  }
@@ -103,6 +159,36 @@
103
159
  .pimolu-chart__donut-track {
104
160
  stroke: var( --pimolu-muted, rgba(0, 0, 0, 0.08) );
105
161
  }
162
+ .pimolu-chart--donut {
163
+ flex-flow: row wrap;
164
+ align-items: center;
165
+ gap: 20px;
166
+ }
167
+ .pimolu-chart--donut .pimolu-chart__canvas {
168
+ flex: 1 1 160px;
169
+ max-width: 260px;
170
+ margin-inline: auto;
171
+ }
172
+ .pimolu-chart--donut .pimolu-chart__legend {
173
+ flex: 1 1 120px;
174
+ flex-direction: column;
175
+ gap: 12px;
176
+ }
177
+ .pimolu-chart--donut .pimolu-chart__legend-item {
178
+ display: grid;
179
+ grid-template-columns: 10px minmax(0, 1fr);
180
+ }
181
+ .pimolu-chart--donut .pimolu-chart__legend-value {
182
+ grid-column: 2;
183
+ font-variant-numeric: tabular-nums;
184
+ }
185
+ .pimolu-chart--donut .pimolu-chart__tooltip-row {
186
+ grid-template-columns: 8px minmax(0, 1fr);
187
+ }
188
+ .pimolu-chart--donut .pimolu-chart__tooltip-row b {
189
+ grid-column: 2;
190
+ text-align: start;
191
+ }
106
192
  .pimolu-chart__segment {
107
193
  stroke: var( --pimolu-chart-color, var(--pimolu-primary, #4f46e5) );
108
194
  transition: opacity 160ms ease;
@@ -240,10 +326,21 @@
240
326
  }
241
327
  }
242
328
  @media (forced-colors: active) {
329
+ .pimolu-chart__tooltip {
330
+ background: Canvas;
331
+ color: CanvasText;
332
+ border-color: CanvasText;
333
+ }
334
+ .pimolu-chart__cursor {
335
+ border-color: CanvasText;
336
+ }
243
337
  .pimolu-chart__bar,
244
338
  .pimolu-chart__area {
245
339
  fill: CanvasText;
246
340
  }
341
+ .pimolu-chart__area {
342
+ fill-opacity: 0.1;
343
+ }
247
344
  .pimolu-chart__line,
248
345
  .pimolu-chart__segment {
249
346
  stroke: CanvasText;
@@ -49,10 +49,32 @@
49
49
  }
50
50
  .pimolu-circular-progress__value {
51
51
  position: absolute;
52
- font-size: max(0.625rem, calc(var(--pimolu-circular-progress-diameter) * 0.26));
52
+ font-size: max(0.625rem, calc(var(--pimolu-circular-progress-diameter) * 0.20));
53
53
  font-variant-numeric: tabular-nums;
54
54
  line-height: 1;
55
55
  color: var(--pimolu-muted-foreground, currentColor);
56
+ max-width: 68%;
57
+ overflow: hidden;
58
+ text-overflow: ellipsis;
59
+ white-space: nowrap;
60
+ font-weight: 600;
61
+ }
62
+ .pimolu-circular-progress[data-empty=true] .pimolu-circular-progress__indicator {
63
+ opacity: 0;
64
+ }
65
+ .pimolu-circular-progress--sm:has(.pimolu-circular-progress__value) {
66
+ width: auto;
67
+ gap: 8px;
68
+ }
69
+ .pimolu-circular-progress--sm .pimolu-circular-progress__svg {
70
+ width: var(--pimolu-circular-progress-diameter);
71
+ height: var(--pimolu-circular-progress-diameter);
72
+ flex: none;
73
+ }
74
+ .pimolu-circular-progress--sm .pimolu-circular-progress__value {
75
+ position: static;
76
+ max-width: none;
77
+ font-size: 0.75rem;
56
78
  }
57
79
  .pimolu-circular-progress--indeterminate .pimolu-circular-progress__svg {
58
80
  animation: pimolu-circular-progress-rotate 1.4s linear infinite;
@@ -1,11 +1,13 @@
1
1
  /* src/dashboard-layout.css */
2
2
  .pimolu-dashboard-layout {
3
3
  --pimolu-dashboard-sidebar-width: 16rem;
4
+ --pimolu-dashboard-sidebar-track: var(--pimolu-dashboard-sidebar-width);
4
5
  --pimolu-dashboard-aside-width: 20rem;
5
6
  display: grid;
6
- grid-template-columns: var(--pimolu-dashboard-sidebar-width) minmax(0, 1fr);
7
+ grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
7
8
  grid-template-areas: "sidebar main";
8
9
  box-sizing: border-box;
10
+ min-width: 0;
9
11
  min-height: 100dvh;
10
12
  background: var(--pimolu-background);
11
13
  color: var(--pimolu-foreground);
@@ -16,28 +18,21 @@
16
18
  grid-template-areas: "main";
17
19
  }
18
20
  .pimolu-dashboard-layout[data-aside=true] {
19
- grid-template-columns: var(--pimolu-dashboard-sidebar-width) minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
21
+ grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
20
22
  grid-template-areas: "sidebar main aside";
21
23
  }
22
24
  .pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
23
25
  grid-template-columns: minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
24
26
  grid-template-areas: "main aside";
25
27
  }
26
- .pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]) {
27
- --pimolu-dashboard-sidebar-width: 3.75rem;
28
- grid-template-columns: 3.75rem minmax(0, 1fr);
29
- }
30
- .pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
31
- grid-template-columns: 3.75rem minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
28
+ .pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
29
+ --pimolu-dashboard-sidebar-track: 3.75rem;
32
30
  }
33
31
  @container (max-width: 1100px) {
34
32
  .pimolu-dashboard-layout[data-aside=true] {
35
- grid-template-columns: var(--pimolu-dashboard-sidebar-width) minmax(0, 1fr);
33
+ grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
36
34
  grid-template-areas: "sidebar main" "aside aside";
37
35
  }
38
- .pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
39
- grid-template-columns: 3.75rem minmax(0, 1fr);
40
- }
41
36
  .pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
42
37
  grid-template-columns: minmax(0, 1fr);
43
38
  grid-template-areas: "main" "aside";
@@ -48,7 +43,34 @@
48
43
  }
49
44
  }
50
45
  @container (max-width: 720px) {
51
- .pimolu-dashboard-layout {
46
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
47
+ display: flex;
48
+ min-height: 40px;
49
+ padding-block: 0;
50
+ }
51
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
52
+ position: absolute;
53
+ }
54
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar,
55
+ .pimolu-dashboard-layout[data-sticky-sidebar=true] > .pimolu-dashboard-layout__sidebar {
56
+ position: static;
57
+ max-height: none;
58
+ overflow: visible;
59
+ border-inline-end: 0;
60
+ border-block-end: 1px solid var(--pimolu-border);
61
+ }
62
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar > .pimolu-sidebar {
63
+ width: 100%;
64
+ min-height: auto;
65
+ border-inline-end: 0;
66
+ }
67
+ .pimolu-dashboard-layout__content,
68
+ .pimolu-dashboard-layout__aside {
69
+ padding: var(--pimolu-spacing-4, 16px);
70
+ }
71
+ .pimolu-dashboard-layout,
72
+ .pimolu-dashboard-layout[data-aside],
73
+ .pimolu-dashboard-layout[data-sidebar][data-aside] {
52
74
  grid-template-columns: minmax(0, 1fr);
53
75
  grid-template-areas: "sidebar" "main";
54
76
  }
@@ -108,7 +130,7 @@
108
130
  }
109
131
  @media (max-width: 1100px) {
110
132
  .pimolu-dashboard-layout[data-aside=true] {
111
- grid-template-columns: var(--pimolu-dashboard-sidebar-width) minmax(0, 1fr);
133
+ grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
112
134
  grid-template-areas: "sidebar main" "aside aside";
113
135
  }
114
136
  .pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
@@ -121,22 +143,42 @@
121
143
  }
122
144
  }
123
145
  @media (max-width: 860px) {
124
- .pimolu-dashboard-layout {
146
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
147
+ display: flex;
148
+ min-height: 40px;
149
+ padding-block: 0;
150
+ }
151
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
152
+ position: absolute;
153
+ }
154
+ .pimolu-dashboard-layout[data-sticky-sidebar=true] > .pimolu-dashboard-layout__sidebar {
155
+ position: static;
156
+ max-height: none;
157
+ overflow: visible;
158
+ }
159
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar > .pimolu-sidebar {
160
+ width: 100%;
161
+ min-height: auto;
162
+ border-inline-end: 0;
163
+ }
164
+ .pimolu-dashboard-layout,
165
+ .pimolu-dashboard-layout[data-aside],
166
+ .pimolu-dashboard-layout[data-sidebar][data-aside] {
125
167
  grid-template-columns: minmax(0, 1fr);
126
168
  grid-template-areas: "sidebar" "main";
127
169
  }
128
170
  .pimolu-dashboard-layout[data-aside=true] {
129
171
  grid-template-areas: "sidebar" "main" "aside";
130
172
  }
131
- .pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]),
132
- .pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
173
+ .pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]),
174
+ .pimolu-dashboard-layout[data-aside=true]:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
133
175
  grid-template-columns: minmax(0, 1fr);
134
176
  }
135
- .pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] {
177
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] {
136
178
  width: 100%;
137
179
  min-height: 60px;
138
180
  }
139
- .pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
181
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
140
182
  display: none;
141
183
  }
142
184
  .pimolu-dashboard-layout[data-sidebar=false] {
@@ -166,15 +208,15 @@
166
208
  }
167
209
  }
168
210
  @container (max-width: 720px) {
169
- .pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]),
170
- .pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
211
+ .pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]),
212
+ .pimolu-dashboard-layout[data-aside=true]:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
171
213
  grid-template-columns: minmax(0, 1fr);
172
214
  }
173
- .pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] {
215
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] {
174
216
  width: 100%;
175
217
  min-height: 60px;
176
218
  }
177
- .pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
219
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
178
220
  display: none;
179
221
  }
180
222
  }
@@ -13,6 +13,8 @@
13
13
  font-family: var(--pimolu-font-body, inherit);
14
14
  }
15
15
  .pimolu-docs-layout__skip-link {
16
+ opacity: 0;
17
+ pointer-events: none;
16
18
  position: fixed;
17
19
  inset-block-start: var(--pimolu-spacing-3, 12px);
18
20
  inset-inline-start: var(--pimolu-spacing-3, 12px);
@@ -30,6 +32,8 @@
30
32
  transition: transform 150ms ease;
31
33
  }
32
34
  .pimolu-docs-layout__skip-link:focus-visible {
35
+ opacity: 1;
36
+ pointer-events: auto;
33
37
  transform: translateY(0);
34
38
  outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary));
35
39
  outline-offset: 2px;
@@ -103,6 +107,11 @@
103
107
  scrollbar-gutter: stable;
104
108
  }
105
109
  @media (max-width: 1180px) {
110
+ .pimolu-docs-layout[data-sticky=true][data-toc=true] > .pimolu-docs-layout__body > .pimolu-docs-layout__sidebar {
111
+ position: static;
112
+ max-height: none;
113
+ overflow: visible;
114
+ }
106
115
  .pimolu-docs-layout__body {
107
116
  grid-template-columns: var(--pimolu-docs-sidebar-width) minmax(0, 1fr);
108
117
  grid-template-areas: "sidebar main" "toc toc";
package/dist/gantt.css CHANGED
@@ -173,9 +173,13 @@
173
173
  overflow: hidden;
174
174
  }
175
175
  .pimolu-gantt__task-button {
176
- display: block;
176
+ display: flex;
177
+ align-items: center;
178
+ justify-content: space-between;
179
+ gap: 8px;
177
180
  box-sizing: border-box;
178
181
  max-width: 100%;
182
+ width: 100%;
179
183
  padding: 3px 5px;
180
184
  margin-left: -5px;
181
185
  color: var(--pimolu-foreground, #0f172a);
@@ -191,6 +195,20 @@
191
195
  cursor: pointer;
192
196
  overflow: hidden;
193
197
  }
198
+ .pimolu-gantt__task-name {
199
+ min-width: 0;
200
+ overflow: hidden;
201
+ text-overflow: ellipsis;
202
+ }
203
+ .pimolu-gantt__task-completion {
204
+ flex: none;
205
+ font-size: 0.6875rem;
206
+ font-variant-numeric: tabular-nums;
207
+ color: var(--pimolu-gantt-muted-foreground);
208
+ background: var(--pimolu-gantt-muted);
209
+ border-radius: var(--pimolu-radius-sm, 4px);
210
+ padding: 2px 5px;
211
+ }
194
212
  .pimolu-gantt__task-button:hover {
195
213
  background: var(--pimolu-gantt-muted);
196
214
  }