cornfield 0.42.0 → 0.44.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.
@@ -115,6 +115,13 @@
115
115
  --corn-space-5: 16px;
116
116
  --corn-space-6: 24px;
117
117
 
118
+ /* Density (issue #200). The one height of a control in a bar (the header, the proposal bar, the decision foot, the player, the Work panel's top row):
119
+ 32px at a desk, 44px on a phone (the media query after the light blocks). The padding of a panel's body, which the Work panel and the node panel share,
120
+ and the least height of a panel's head: a control and a step of padding */
121
+ --corn-control-height: 32px;
122
+ --corn-panel-pad: calc(var(--corn-space-5) + var(--corn-space-1));
123
+ --corn-panel-head-height: calc(var(--corn-control-height) + var(--corn-space-3));
124
+
118
125
  /* The House view's plan: the house's outline and each room's */
119
126
  --corn-house-line: color-mix(in srgb, var(--corn-hue-lime) 18%, transparent);
120
127
  --corn-house-room: color-mix(in srgb, var(--corn-hue-lime) 45%, transparent);
@@ -139,6 +146,7 @@
139
146
  --corn-map-glow: auto;
140
147
  /* The smallest a map label is drawn on screen (spec 0008): auto is 11px; a theme may raise it, not lower it. A hub's title is 2px more */
141
148
  --corn-map-label-min: auto;
149
+ --corn-map-glyph: auto;
142
150
  /* Diff, selection and focus */
143
151
  --corn-map-added: auto;
144
152
  --corn-map-changed: auto;
@@ -301,6 +309,11 @@
301
309
  color-scheme: light;
302
310
  }
303
311
 
312
+ /* A phone's density: controls are 44px tall (the target), and a panel pads by 16px under 640px. explorer.css floors a phone's control at 44px whatever
313
+ a brand sets (max(44px, …)); a brand that sets --corn-panel-pad on :root sets a phone's too, unless it sets it again under the same query */
314
+ @media (max-width: 767px) { :root { --corn-control-height: 44px; } }
315
+ @media (max-width: 639px) { :root { --corn-panel-pad: var(--corn-space-5); } }
316
+
304
317
  /* ==========================================================================
305
318
  The old --hx-* names, as aliases of the tokens above, for one release (scene.js, proposal.js and plugin
306
319
  CSS still read them). They go in the next minor: write --corn-* in new CSS. proposal.js writes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cornfield",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "description": "A self-hostable dev dashboard with the topology map at its centre: proposals on the map, scenarios, outages and what-if edits, for any repo.",
5
5
  "license": "MIT",
6
6
  "author": "popcorn245 (https://github.com/popcorn245)",