@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.
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;
@@ -99,9 +118,14 @@
99
118
  justify-content: center;
100
119
  }
101
120
  .pimolu-page-header--center .pimolu-page-header__body {
121
+ width: 100%;
122
+ flex-direction: column;
123
+ align-items: center;
102
124
  justify-content: center;
103
125
  }
104
126
  .pimolu-page-header--center .pimolu-page-header__content {
127
+ flex: none;
128
+ width: 100%;
105
129
  align-items: center;
106
130
  margin-inline: auto;
107
131
  text-align: center;
@@ -110,6 +134,10 @@
110
134
  .pimolu-page-header--center .pimolu-page-header__actions {
111
135
  justify-content: center;
112
136
  }
137
+ .pimolu-page-header--center .pimolu-page-header__actions {
138
+ flex: none;
139
+ width: 100%;
140
+ }
113
141
  @media (max-width: 640px) {
114
142
  .pimolu-page-header__body {
115
143
  align-items: flex-start;
@@ -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);