drive 0.8.0 → 0.10.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fa008cabe7c5bc9f8e34113911f8ced5cbb45ae333256c0b5344da28f734c9e
4
- data.tar.gz: a1baf2a48a873cd708723660cae6737dc76fe2c4dab3bef404b0763c6a267162
3
+ metadata.gz: 2cb0073139810f54c2b7fce8150ade0993934b4808fe07cb0427f5f548a7d27f
4
+ data.tar.gz: c5d69e9f722e3c3ae4b875ff31fd1695a2c8dbd793f611bc764c611298fc3c1c
5
5
  SHA512:
6
- metadata.gz: 198e74f24bf24952331f9b4a851e85feaf7e18b2d616048607d43908b1c1526e1f12c25e28739975030ab677078f496cb44b4b2d75df6ef08f43a73dbfa28c5a
7
- data.tar.gz: 1b606b86c1855d367a71aca17e4be91c3c2144ff32994ceedd5f4417f25e5bc45c3c185dcacad18494d04c219d4650343a8ed17264b80aa9d63578b741d015d8
6
+ metadata.gz: 47dc8732cd6df23e5732d07997a336827a5e4c5c7b7a394204b44a83d5174f39000772d9c53b53cbac9e9fd6ee5924d0f1ce1cff80f93eb9443907bb8672b3fb
7
+ data.tar.gz: 6d037e962393e67416bb5accdf7557103cd58a911d8e47b295f045507b1e6d84fd4b5a657b133584181d80104a797e392efc8520e56b31a9e6c4545ef9db7f7f
data/CHANGELOG.md CHANGED
@@ -6,6 +6,34 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 0.10.0 - 2026-11-06
10
+
11
+ * [ENHANCEMENT] What each control means, in the guide: a tinted rounded rectangle tells (`level-chip` and `switches` now
12
+ 6px corners), a round pill does. `pill soft` is outlined in its colour and fills with it on hover; solid pills darken
13
+ on hover; no pill is underlined. New `pill soft danger` (destroys, after a confirmation) and `pill small` (acts on one
14
+ thing from inside its card); `pill danger` keeps the regular size. The focus ring is the keyboard's alone
15
+ (`:focus-visible`), never a click's.
16
+
17
+ ## 0.9.0 - 2026-11-06
18
+
19
+ * [FEATURE] `engine-card`: a `plane-card` about an engine, its head the same navy patterned with engine icons
20
+
21
+ * [FEATURE] easyAnnual's pieces, shared in `easy/components` and the style guide: `steps-bar` (`steps-bar-name`,
22
+ `is-on`, `is-past`), `flow-card` (`narrow`, `flow-card-actions`), `field-list` (`wide` and `side` items,
23
+ `field-help`), `record-table` (`record-table-part`, `record-table-scroll`, rows `is-open` and `is-not-complied`),
24
+ `logbook-entry` (`logbook-entry-sign`, `logbook-entry-draft`), each printed as they were, and `note bad`,
25
+ `pill danger` and a disabled `pill`.
26
+
27
+ * [FEATURE] `easy/rotating_placeholder.js`: a search box's placeholder types the examples its
28
+ `data-rotating-placeholder` lists (JSON), one after another, until something is typed, and holds still where
29
+ motion is turned off. ES5, for every app's own examples.
30
+
31
+ * [FEATURE] `layouts/easy/site` takes `:page_class`, the page's own classes beside `page` (`wide` for one that lays
32
+ out its own widths).
33
+
34
+ * [ENHANCEMENT] The footer is always at the bottom of the window, on a short page too: the page fills the window's
35
+ height and grows, the footer last, in old WebKits' flex syntax as well.
36
+
9
37
  ## 0.8.0 - 2026-11-06
10
38
 
11
39
  * [FEATURE] The easy design system's components, in `easy/components`, which `layouts/easy/site` loads after
@@ -0,0 +1,35 @@
1
+ // The search box's placeholder types what the box finds, one example after another, until the visitor types their
2
+ // own: each app gives its examples on the field, <input data-rotating-placeholder='["N714AD", "O-320-H2AD"]'>, and
3
+ // its resting placeholder, which comes back once something is typed. Where motion is turned off, it holds still.
4
+ // ES5 alone: every easy app has to work on old iPhones, Androids and Windows browsers.
5
+ (function () {
6
+ if (!document.querySelectorAll || !window.JSON) { return; }
7
+ if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) { return; }
8
+
9
+ function rotate(input) {
10
+ var examples;
11
+ try { examples = JSON.parse(input.getAttribute('data-rotating-placeholder')); } catch (err) { return; }
12
+ if (!examples || !examples.length) { return; }
13
+ var resting = input.getAttribute('placeholder') || examples[0], ex = 0, at = 0, typing = null;
14
+ function tick() {
15
+ var word = examples[ex];
16
+ if (at <= word.length) {
17
+ input.setAttribute('placeholder', word.slice(0, at) || word.charAt(0));
18
+ at++;
19
+ typing = setTimeout(tick, at > word.length ? 1600 : 140);
20
+ return;
21
+ }
22
+ ex = (ex + 1) % examples.length; at = 1; typing = setTimeout(tick, 140);
23
+ }
24
+ // Typing stops the show; being in the field doesn't, nor a key that typed nothing (the Tab that got there).
25
+ function typed() {
26
+ if (input.value && typing) { clearTimeout(typing); typing = null; input.setAttribute('placeholder', resting); }
27
+ }
28
+ input.addEventListener('input', typed);
29
+ input.addEventListener('keyup', typed);
30
+ typing = setTimeout(tick, 900);
31
+ }
32
+
33
+ var inputs = document.querySelectorAll('[data-rotating-placeholder]');
34
+ for (var i = 0; i < inputs.length; i++) { rotate(inputs[i]); }
35
+ })();
@@ -13,11 +13,16 @@ html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
13
13
  html,body{overflow-x:hidden}
14
14
  /* hidden makes the body its own scroller, where nothing can stick: clip keeps the page from scrolling sideways without that */
15
15
  @supports (overflow-x:clip){html,body{overflow-x:clip}}
16
- body{margin:0;background:var(--color-bg);color:var(--color-text);min-height:100vh;display:flex;flex-direction:column}
16
+ /* The page fills the window at least, its footer last (layouts/easy/site): on a short page the footer sits at the
17
+ window's bottom, never in its middle, as the page grows (easy/layout.css, .page). Old WebKits read the boxes'
18
+ first syntax; a browser without flex boxes draws the footer right after the page, as on any page. */
19
+ body{margin:0;background:var(--color-bg);color:var(--color-text);min-height:100vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}
17
20
  img,svg{max-width:100%}
18
21
  .i{width:1em;height:1em;vertical-align:-.125em;fill:currentColor;flex-shrink:0}
19
22
  a{color:var(--color-primary)}
20
- a:focus,button:focus,input:focus,summary:focus{outline:3px solid var(--color-focus);outline-offset:2px}
23
+ a:focus,button:focus,input:focus,summary:focus{outline:0}
24
+ /* The focus ring is the keyboard's (and a text field's, which is always "visible"); a click draws none */
25
+ a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}
21
26
  @media (prefers-reduced-motion: reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
22
27
  .no-wrap{white-space:nowrap}
23
28
  .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@@ -17,7 +17,14 @@
17
17
  .pill{display:inline-block;height:44px;line-height:42px;padding:0 16px;border-radius:22px;border:1px solid var(--color-primary);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
18
18
  .pill .i{margin-right:7px;vertical-align:-2px}
19
19
  .pill.primary{background:var(--color-primary);color:var(--color-on-primary)}
20
- .pill.soft{background:var(--color-primary-soft);color:var(--color-on-primary-soft);border-color:var(--color-primary-soft)}
20
+ .pill.soft{background:var(--color-bg);color:var(--color-primary);border-color:var(--color-primary)}
21
+ /* A pill changes colour on hover, never underlined: a solid one darkens, an outlined one fills with its own colour */
22
+ .pill:hover{text-decoration:none}
23
+ .pill.primary:hover,.pill.danger:hover{-webkit-filter:brightness(.88);filter:brightness(.88)}
24
+ .pill.soft:hover{background:var(--color-primary);color:var(--color-on-primary)}
25
+ /* small: a pill acting on one thing from inside its card (Remove, Reopen); a pill that submits a form or moves the flow
26
+ on keeps the regular size, the height of the fields beside it */
27
+ .pill.small{height:30px;line-height:28px;padding:0 12px;font-size:13px}
21
28
  .share-bar-list .share-bar-sep{width:1px;height:28px;background:var(--color-line);margin:0 12px 8px 4px}
22
29
  @media (max-width:480px){.share-bar-list .share-bar-sep{display:none}}
23
30
  .share-bar-status{min-height:1.5em;margin:4px 0 0;font-size:14px;color:var(--color-text-2)}
@@ -31,6 +38,8 @@
31
38
  @media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .plane-card-head{background-color:#0c2338;color:#f1f2f3}}
32
39
  .plane-card-head h1{margin:0;font-size:40px;letter-spacing:.02em}
33
40
  .plane-card-head p{margin:4px 0 0;font-size:18px;opacity:.9}
41
+ /* engine-card: a plane card about an engine, its head patterned with engines */
42
+ .engine-card .plane-card-head{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath fill='%23ffffff' fill-opacity='.07' transform='translate(4 4) scale(.9)' d='M7 4v2h3v2H7l-2 2v3H3v-3H1v8h2v-3h2v3h3l2 2h8v-4h2v3h3V9h-3v3h-2V8h-6V6h3V4z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.07' transform='translate(32 32) scale(.9)' d='M7 4v2h3v2H7l-2 2v3H3v-3H1v8h2v-3h2v3h3l2 2h8v-4h2v3h3V9h-3v3h-2V8h-6V6h3V4z'/%3E%3C/svg%3E")}
34
43
  .plane-card-facts{display:flex;flex-wrap:wrap;margin:0;padding:12px 16px}
35
44
  .plane-card-facts div{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%;padding:8px;min-width:0}
36
45
  @media (min-width:880px){.plane-card-facts div{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}}
@@ -50,7 +59,7 @@
50
59
 
51
60
  /* switches: counts that turn a list on and off; list-tools: the row holding them, the sort button and the word search */
52
61
  .switches{display:flex;flex-wrap:wrap;align-items:center;margin:0 -6px;padding:0;list-style:none}
53
- .switches li{margin:6px;padding:5px 8px;border-radius:12px;font-weight:600}
62
+ .switches li{margin:6px;padding:5px 8px;border-radius:6px;font-weight:600}
54
63
  .switches .ok{background:var(--color-bad-bg);color:var(--color-bad)}
55
64
  .switches .warn{background:var(--color-warn-bg);color:var(--color-warn)}
56
65
  .switches .all{background:var(--color-surface-2);color:var(--color-text)}
@@ -133,7 +142,7 @@ ol.ad-card-list li.ad-card.superseded{display:none}
133
142
  ol.ad-card-list.js-live li.ad-card.superseded{display:block}
134
143
  .ad-card-top{position:relative;display:flex;flex-wrap:wrap;align-items:center}
135
144
  .ad-card-top > *{margin:0 10px 6px 0}
136
- .level-chip{display:inline-block;font-weight:700;font-size:14px;padding:5px 10px;border-radius:999px}
145
+ .level-chip{display:inline-block;font-weight:700;font-size:14px;padding:5px 10px;border-radius:6px}
137
146
  .level-chip .i{margin-right:5px}
138
147
  .level-chip.applies{background:var(--color-bad-bg);color:var(--color-bad)}
139
148
  .level-chip.may_apply{background:var(--color-warn-bg);color:var(--color-warn)}
@@ -281,3 +290,66 @@ a.tooltip-trigger:hover,a.tooltip-trigger:focus{box-shadow:0 0 0 2px currentColo
281
290
  .step-cards li::before{counter-increment:step;content:counter(step);position:absolute;left:20px;top:12px;color:var(--color-sky);font:700 34px/1 "Outfit","Helvetica Neue",Arial,sans-serif}
282
291
  .step-cards h2{font-size:18px;margin:0 0 6px;padding-left:38px;line-height:34px}
283
292
  .step-cards p{margin:0;color:var(--color-text-2);font-size:15px}
293
+
294
+ /* pill: danger, for what can't be undone; disabled, until a form is complete; note bad: an alert line in the danger colour */
295
+ .pill[disabled]{opacity:.45;cursor:not-allowed}
296
+ .pill.danger{background:var(--color-bad);border-color:var(--color-bad);color:var(--color-bg)}
297
+ /* soft danger: destroys something, always after a confirmation; never the main step */
298
+ .pill.soft.danger{background:var(--color-bg);border-color:var(--color-bad);color:var(--color-bad)}
299
+ .pill.soft.danger:hover{-webkit-filter:none;filter:none;background:var(--color-bad);color:var(--color-bg)}
300
+ .note.bad{color:var(--color-bad);font-weight:600;margin:0 0 12px}
301
+
302
+ /* flow-card: a form page's card, its title, line and actions (narrow: one column, for a short form); field-list: labels, fields and their help (wide and side items: the whole row, side a heading) */
303
+ .flow-card{margin:24px 0 40px;padding:12px 0 0}
304
+ .flow-card h1,.flow-card h2{font-size:26px;margin:0 0 8px}
305
+ @media (max-width:600px){.flow-card h1,.flow-card h2{font-size:20px;margin-bottom:4px}}
306
+ .flow-card h2 > span[aria-hidden="true"]:first-child{margin-right:.35em}
307
+ .flow-card > p{color:var(--color-text-2);margin:0 0 16px}
308
+ .field-list{margin:8px -12px 0;padding:0;list-style:none;display:flex;flex-wrap:wrap}
309
+ .field-list li{flex:1 1 22rem;margin:0 12px;border-top:1px solid var(--color-line);padding:16px 0 14px}
310
+ .field-list label{display:block;font-weight:600}
311
+ .field-list input{display:block;width:100%;margin-top:6px;height:46px;padding:0 12px;border:1px solid var(--color-line);border-radius:10px;background:var(--color-bg);color:var(--color-text);font:inherit;font-size:16px}
312
+ .field-list input[readonly]{background:var(--color-surface-1);color:var(--color-text-2)}
313
+ .field-list li.side{flex-basis:100%;border-top:0;padding-bottom:0}
314
+ .field-list li.side h2{margin:12px 0 0;font-size:1.15rem}
315
+ .field-list .field-help{margin:6px 0 0;font-size:14px;color:var(--color-text-muted)}
316
+ .flow-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:18px}
317
+ .flow-card-actions .pill{height:50px;line-height:48px;font-size:17px;padding:0 24px}
318
+ .field-list .side h2{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between}
319
+ .flow-card.narrow{max-width:30rem;margin:24px auto 40px}
320
+ .flow-card.narrow .field-list li{flex-basis:100%}
321
+ .flow-card-actions .pill{text-decoration:none;text-align:center}
322
+ .field-list li.wide{flex-basis:100%}
323
+ .field-list li.side{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
324
+ .field-list select{display:block;width:100%;margin-top:6px;height:46px;padding:0 12px;border:1px solid var(--color-line);border-radius:10px;background:var(--color-bg);color:var(--color-text);font:inherit;font-size:16px}
325
+
326
+ /* steps-bar: a job's steps, the one it's at (is-on), the ones done (is-past), each a link back while open; on a phone, the step's number alone but the current one's */
327
+ .steps-bar{display:flex;flex-wrap:wrap;list-style:none;margin:16px 0 0;padding:0;border-bottom:1px solid var(--color-line)}
328
+ .steps-bar li{margin:0 4px -1px 0}
329
+ .steps-bar span{display:block;padding:10px 14px;color:var(--color-text-2);font-weight:600;border-bottom:3px solid transparent}
330
+ .steps-bar b{display:inline-block;width:22px;height:22px;line-height:22px;margin-right:6px;border-radius:50%;background:var(--color-surface-2);text-align:center;font-size:13px}
331
+ .steps-bar .is-on{color:var(--color-text);border-bottom-color:var(--color-primary)}
332
+ .steps-bar .is-on b{background:var(--color-primary);color:var(--color-on-primary)}
333
+ .steps-bar .is-past b{background:var(--color-ok-bg);color:var(--color-ok)}
334
+ .steps-bar a{display:block;padding:10px 14px;color:var(--color-text-2);font-weight:600;text-decoration:none;border-bottom:3px solid transparent}
335
+ .steps-bar a:hover{color:var(--color-text)}
336
+ .steps-bar .steps-bar-name{display:inline;padding:0;border:0}
337
+ @media(max-width:480px){.steps-bar{flex-wrap:nowrap;justify-content:space-between}.steps-bar li>span,.steps-bar a{padding:10px 2px;white-space:nowrap}.steps-bar b{margin-right:4px}.steps-bar li{margin-right:0}.steps-bar li>a>.steps-bar-name,.steps-bar li>span:not(.is-on)>.steps-bar-name{display:none}}
338
+
339
+ /* record-table: an AD record's table in the format of AC 43-9D, one part (record-table-part) for the airframe and each engine, propeller and appliance, scrolling sideways on a phone; an open row grey, one not complied with red */
340
+ .record-table-part{border:1px solid var(--color-line);border-radius:14px;padding:18px 18px 12px;margin-top:14px}
341
+ .record-table-part>h2{font-size:22px;margin:0 0 10px}
342
+ .record-table tr.is-open td{background:var(--color-surface-1)}.record-table tr.is-not-complied td{background:var(--color-bad-bg)}
343
+ .record-table-scroll{overflow-x:auto;margin-top:10px}
344
+ .record-table{width:100%;border-collapse:collapse;font-size:14px}
345
+ .record-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted);text-align:left;padding:6px 8px;border-bottom:2px solid var(--color-line)}
346
+ .record-table td{padding:8px;border-bottom:1px solid var(--color-line);vertical-align:top}
347
+
348
+ /* logbook-entry: a logbook entry to print on label paper and stick in, its signature line (-sign), and while a draft, a line saying so (-draft) */
349
+ .logbook-entry-draft{display:block;margin-top:10px;color:var(--color-bad);font-weight:600}
350
+ .logbook-entry{border:1px solid var(--color-line);border-radius:14px;padding:16px 18px;margin:14px 0 0;background:var(--color-surface-1);white-space:pre-line}
351
+ .logbook-entry-sign{display:block;margin-top:22px;border-top:1px solid var(--color-text-2);max-width:26rem;padding-top:4px;font-size:14px;color:var(--color-text-2);white-space:normal}
352
+
353
+ /* record-table and logbook-entry, printed: each row and entry whole on its page, the entry cut out along its dashed line, a row not complied with striped red on paper too */
354
+ @media print{.logbook-entry{break-inside:avoid;background:none;width:6.5in;max-width:100%;border:1px dashed #000;border-radius:0;color:#000}.record-table tr{break-inside:avoid}.record-table-part{border:0;padding:0}}
355
+ @media print{.record-table tr.is-not-complied td{background:#fbe1e1 repeating-linear-gradient(135deg,transparent 0 7px,rgba(170,20,20,.22) 7px 9px)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#000;font-weight:700;border-top:2px solid #a11}.record-table tr.is-not-complied td:first-child{border-left:5px solid #a11}}
@@ -29,10 +29,11 @@
29
29
  .sky-band.slim{padding:6px 0;margin:0 0 14px}
30
30
 
31
31
  /* The page: its width, or the whole window (wide) for content that lays out its own (.page-width). */
32
- .page{max-width:68rem;margin:0 auto;padding:0 16px;flex:1 0 auto;align-self:stretch;width:100%}
32
+ /* It grows to fill the window's height, so the footer under it is at the window's bottom (easy/base.css, body). */
33
+ .page{max-width:68rem;margin:0 auto;padding:0 16px;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-item-align:stretch;align-self:stretch;width:100%}
33
34
  .page.wide{max-width:none;padding:0}
34
35
 
35
- .site-footer{background:var(--color-surface-1);border-top:1px solid var(--color-line);font-size:15px;color:var(--color-text-2)}
36
+ .site-footer{-ms-flex-negative:0;flex-shrink:0;background:var(--color-surface-1);border-top:1px solid var(--color-line);font-size:15px;color:var(--color-text-2)}
36
37
  .site-footer-inner{max-width:68rem;margin:0 auto;padding:0 16px}
37
38
  .site-footer a{color:var(--color-text-2)}
38
39
  .site-footer a:hover{color:var(--color-primary)}
@@ -6,6 +6,7 @@
6
6
  - :site_brand_url and :site_brand, where its logo goes and the logo;
7
7
  - :site_nav, its links, sign in or out;
8
8
  - :sky_band, "full" or "slim", for the band under the header; then the page is wide;
9
+ - :page_class, the page's own classes beside page ("wide" for one that lays out its own widths);
9
10
  - :site_footer, its footer's lines and links;
10
11
  - :body_end, its scripts. -%>
11
12
  <!doctype html>
@@ -36,7 +37,7 @@
36
37
  <% if content_for?(:sky_band) %>
37
38
  <div class="sky-band<%= " slim" if content_for(:sky_band) == "slim" %>"></div>
38
39
  <% end %>
39
- <main id="main" class="page<%= " wide" if content_for?(:sky_band) %>">
40
+ <main id="main" class="page<%= " wide" if content_for?(:sky_band) %><%= " #{content_for(:page_class)}" if content_for?(:page_class) %>">
40
41
  <%= yield %>
41
42
  </main>
42
43
  <footer id="footer" class="site-footer">
data/lib/drive/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Drive
2
2
  # Version of the gem, read by the gemspec.
3
- VERSION = '0.8.0'.freeze
3
+ VERSION = '0.10.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob
@@ -37,6 +37,7 @@ files:
37
37
  - app/assets/fonts/easy/outfit-latin-ext.woff2
38
38
  - app/assets/fonts/easy/outfit-latin.woff2
39
39
  - app/assets/images/easy/sprite.svg
40
+ - app/assets/javascripts/easy/rotating_placeholder.js
40
41
  - app/assets/stylesheets/easy/base.css
41
42
  - app/assets/stylesheets/easy/components.css
42
43
  - app/assets/stylesheets/easy/layout.css