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

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.
@@ -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
  }
@@ -167,7 +167,9 @@
167
167
  }
168
168
  .pimolu-input__wrapper:focus-within {
169
169
  border-color: var(--pimolu-input-tone);
170
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent), var(--pimolu-input-elevation);
170
+ box-shadow: var(--pimolu-input-elevation);
171
+ outline: 3px solid color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent);
172
+ outline-offset: 0;
171
173
  }
172
174
  .pimolu-input--invalid {
173
175
  --pimolu-input-tone: var(--pimolu-danger, #dc2626);
package/dist/input.css CHANGED
@@ -167,7 +167,9 @@
167
167
  }
168
168
  .pimolu-input__wrapper:focus-within {
169
169
  border-color: var(--pimolu-input-tone);
170
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent), var(--pimolu-input-elevation);
170
+ box-shadow: var(--pimolu-input-elevation);
171
+ outline: 3px solid color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent);
172
+ outline-offset: 0;
171
173
  }
172
174
  .pimolu-input--invalid {
173
175
  --pimolu-input-tone: var(--pimolu-danger, #dc2626);
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);