@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/dist/kanban.css CHANGED
@@ -39,11 +39,12 @@
39
39
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pimolu-primary, #4f46e5) 35%, transparent);
40
40
  }
41
41
  .pimolu-kanban__column-header {
42
+ position: relative;
42
43
  display: flex;
43
44
  align-items: flex-start;
44
45
  justify-content: space-between;
45
46
  gap: var(--pimolu-spacing-2, 8px);
46
- padding: var(--pimolu-spacing-3, 12px);
47
+ padding: var(--pimolu-spacing-4, 16px);
47
48
  border-bottom: 1px solid var(--pimolu-border, #e2e8f0);
48
49
  }
49
50
  .pimolu-kanban__column-title {
@@ -59,7 +60,30 @@
59
60
  letter-spacing: 0.01em;
60
61
  overflow-wrap: anywhere;
61
62
  }
63
+ .pimolu-kanban__capacity {
64
+ position: absolute;
65
+ inset-inline: 16px;
66
+ inset-block-end: -1px;
67
+ height: 3px;
68
+ overflow: hidden;
69
+ border-radius: 999px;
70
+ background: var(--pimolu-muted, #f1f5f9);
71
+ }
72
+ .pimolu-kanban__capacity > span {
73
+ display: block;
74
+ height: 100%;
75
+ background: var(--pimolu-primary, #4f46e5);
76
+ border-radius: inherit;
77
+ }
78
+ .pimolu-kanban__column--full .pimolu-kanban__capacity > span {
79
+ background: var(--pimolu-warning, #d97706);
80
+ }
62
81
  .pimolu-kanban__count {
82
+ align-self: start;
83
+ margin-block-start: 4px;
84
+ padding: 2px 7px;
85
+ border-radius: var(--pimolu-radius-full, 999px);
86
+ background: var(--pimolu-muted, #f1f5f9);
63
87
  color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
64
88
  font-size: var(--pimolu-font-size-xs, 12px);
65
89
  font-weight: 450;
@@ -82,6 +106,7 @@
82
106
  }
83
107
  .pimolu-kanban__item {
84
108
  min-width: 0;
109
+ margin: 0;
85
110
  list-style: none;
86
111
  }
87
112
  .pimolu-kanban__empty {
@@ -123,7 +148,7 @@
123
148
  gap: var(--pimolu-spacing-2, 8px);
124
149
  box-sizing: border-box;
125
150
  min-width: 0;
126
- padding: 10px var(--pimolu-spacing-3, 12px);
151
+ padding: 14px var(--pimolu-spacing-4, 16px);
127
152
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
128
153
  border-radius: var(--pimolu-radius-md, 10px);
129
154
  background: var(--pimolu-background, #fff);
package/dist/navbar.css CHANGED
@@ -28,6 +28,10 @@
28
28
  align-items: center;
29
29
  gap: 8px;
30
30
  flex: none;
31
+ max-width: 100%;
32
+ min-width: 0;
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
31
35
  color: inherit;
32
36
  font-size: 0.9375rem;
33
37
  font-weight: 700;
@@ -48,6 +52,8 @@
48
52
  min-width: 0;
49
53
  }
50
54
  .pimolu-navbar__item {
55
+ box-sizing: border-box;
56
+ min-height: 40px;
51
57
  display: inline-flex;
52
58
  align-items: center;
53
59
  gap: 6px;
@@ -189,6 +195,7 @@
189
195
  box-sizing: border-box;
190
196
  width: 100%;
191
197
  white-space: normal;
198
+ min-height: 44px;
192
199
  }
193
200
  .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
194
201
  display: flex;
@@ -204,6 +211,15 @@
204
211
  padding: 10px 16px;
205
212
  }
206
213
  }
214
+ @container pimolu-navbar (max-width: 700px) {
215
+ .pimolu-navbar[data-collapsible=true] .pimolu-navbar__brand {
216
+ max-width: calc(100% - 64px);
217
+ }
218
+ .pimolu-navbar__toggle {
219
+ min-width: 44px;
220
+ min-height: 44px;
221
+ }
222
+ }
207
223
  @media (forced-colors: active) {
208
224
  .pimolu-navbar {
209
225
  border-color: CanvasText;
@@ -1,5 +1,8 @@
1
1
  /* src/page-header.css */
2
2
  .pimolu-page-header {
3
+ container-type: inline-size;
4
+ --pimolu-page-header-title-size: clamp(1.75rem, 5cqi, 2.75rem);
5
+ width: 100%;
3
6
  display: flex;
4
7
  flex-direction: column;
5
8
  gap: var(--pimolu-spacing-4, 16px);
@@ -8,6 +11,22 @@
8
11
  color: var(--pimolu-foreground);
9
12
  font-family: var(--pimolu-font-body, inherit);
10
13
  }
14
+ .pimolu-page-header[data-size=sm] {
15
+ --pimolu-page-header-title-size: clamp(1.25rem, 4cqi, 1.75rem);
16
+ gap: 12px;
17
+ }
18
+ .pimolu-page-header[data-size=sm] .pimolu-page-header__content {
19
+ gap: 8px;
20
+ }
21
+ .pimolu-page-header[data-size=sm] .pimolu-page-header__description {
22
+ font-size: 0.875rem;
23
+ }
24
+ .pimolu-page-header[data-size=lg] {
25
+ --pimolu-page-header-title-size: clamp(2rem, 7cqi, 4rem);
26
+ }
27
+ .pimolu-page-header__actions {
28
+ max-width: 100%;
29
+ }
11
30
  .pimolu-page-header__breadcrumbs {
12
31
  display: flex;
13
32
  justify-content: flex-start;
@@ -55,7 +74,7 @@
55
74
  margin: 0;
56
75
  color: var(--pimolu-foreground);
57
76
  font-family: var(--pimolu-font-heading, inherit);
58
- font-size: clamp(1.75rem, 3.5vw, 2.75rem);
77
+ font-size: var(--pimolu-page-header-title-size, clamp(1.75rem, 3.5vw, 2.75rem));
59
78
  font-weight: 700;
60
79
  line-height: 1.1;
61
80
  letter-spacing: -0.02em;