drive 0.8.0 → 0.9.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: 2aaf1ee05071b95077188eb65355172c7fdf87a0028d869819a41ca34be1f762
4
+ data.tar.gz: 1413f2baba3cfaea8db2b438574b960cf8fc1986ad4e3cc542254f7a56ed61cc
5
5
  SHA512:
6
- metadata.gz: 198e74f24bf24952331f9b4a851e85feaf7e18b2d616048607d43908b1c1526e1f12c25e28739975030ab677078f496cb44b4b2d75df6ef08f43a73dbfa28c5a
7
- data.tar.gz: 1b606b86c1855d367a71aca17e4be91c3c2144ff32994ceedd5f4417f25e5bc45c3c185dcacad18494d04c219d4650343a8ed17264b80aa9d63578b741d015d8
6
+ metadata.gz: 76ed8b784c06490e9e94f04d266c5b8bc06b0022ed51a2225f4c98490ef46177e88d21abfa78ab17c0abaa75da66ebdd568a5757ece3023e3d34dfe50f943164
7
+ data.tar.gz: 731cf6829d8268a2819b9a5e18c40693e481f1eea320b10284eebb7080f638cd0999ef11945955d3c642419b1ae8c0a487e5ff219881eaaf924bfc2b691fb2f6
data/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 0.9.0 - 2026-11-06
10
+
11
+ * [FEATURE] `engine-card`: a `plane-card` about an engine, its head the same navy patterned with engine icons
12
+
13
+ * [FEATURE] easyAnnual's pieces, shared in `easy/components` and the style guide: `steps-bar` (`steps-bar-name`,
14
+ `is-on`, `is-past`), `flow-card` (`narrow`, `flow-card-actions`), `field-list` (`wide` and `side` items,
15
+ `field-help`), `record-table` (`record-table-part`, `record-table-scroll`, rows `is-open` and `is-not-complied`),
16
+ `logbook-entry` (`logbook-entry-sign`, `logbook-entry-draft`), each printed as they were, and `note bad`,
17
+ `pill danger` and a disabled `pill`.
18
+
19
+ * [FEATURE] `easy/rotating_placeholder.js`: a search box's placeholder types the examples its
20
+ `data-rotating-placeholder` lists (JSON), one after another, until something is typed, and holds still where
21
+ motion is turned off. ES5, for every app's own examples.
22
+
23
+ * [FEATURE] `layouts/easy/site` takes `:page_class`, the page's own classes beside `page` (`wide` for one that lays
24
+ out its own widths).
25
+
26
+ * [ENHANCEMENT] The footer is always at the bottom of the window, on a short page too: the page fills the window's
27
+ height and grows, the footer last, in old WebKits' flex syntax as well.
28
+
9
29
  ## 0.8.0 - 2026-11-06
10
30
 
11
31
  * [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,7 +13,10 @@ 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)}
@@ -31,6 +31,8 @@
31
31
  @media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .plane-card-head{background-color:#0c2338;color:#f1f2f3}}
32
32
  .plane-card-head h1{margin:0;font-size:40px;letter-spacing:.02em}
33
33
  .plane-card-head p{margin:4px 0 0;font-size:18px;opacity:.9}
34
+ /* engine-card: a plane card about an engine, its head patterned with engines */
35
+ .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
36
  .plane-card-facts{display:flex;flex-wrap:wrap;margin:0;padding:12px 16px}
35
37
  .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
38
  @media (min-width:880px){.plane-card-facts div{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}}
@@ -281,3 +283,64 @@ a.tooltip-trigger:hover,a.tooltip-trigger:focus{box-shadow:0 0 0 2px currentColo
281
283
  .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
284
  .step-cards h2{font-size:18px;margin:0 0 6px;padding-left:38px;line-height:34px}
283
285
  .step-cards p{margin:0;color:var(--color-text-2);font-size:15px}
286
+
287
+ /* pill: danger, for what can't be undone; disabled, until a form is complete; note bad: an alert line in the danger colour */
288
+ .pill[disabled]{opacity:.45;cursor:not-allowed}
289
+ .pill.danger{height:36px;line-height:34px;font-size:14px;background:var(--color-bad);border-color:var(--color-bad);color:var(--color-bg)}
290
+ .pill.danger:hover{text-decoration:underline}
291
+ .note.bad{color:var(--color-bad);font-weight:600;margin:0 0 12px}
292
+
293
+ /* 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) */
294
+ .flow-card{margin:24px 0 40px;padding:12px 0 0}
295
+ .flow-card h1,.flow-card h2{font-size:26px;margin:0 0 8px}
296
+ @media (max-width:600px){.flow-card h1,.flow-card h2{font-size:20px;margin-bottom:4px}}
297
+ .flow-card h2 > span[aria-hidden="true"]:first-child{margin-right:.35em}
298
+ .flow-card > p{color:var(--color-text-2);margin:0 0 16px}
299
+ .field-list{margin:8px -12px 0;padding:0;list-style:none;display:flex;flex-wrap:wrap}
300
+ .field-list li{flex:1 1 22rem;margin:0 12px;border-top:1px solid var(--color-line);padding:16px 0 14px}
301
+ .field-list label{display:block;font-weight:600}
302
+ .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}
303
+ .field-list input[readonly]{background:var(--color-surface-1);color:var(--color-text-2)}
304
+ .field-list li.side{flex-basis:100%;border-top:0;padding-bottom:0}
305
+ .field-list li.side h2{margin:12px 0 0;font-size:1.15rem}
306
+ .field-list .field-help{margin:6px 0 0;font-size:14px;color:var(--color-text-muted)}
307
+ .flow-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:18px}
308
+ .flow-card-actions .pill{height:50px;line-height:48px;font-size:17px;padding:0 24px}
309
+ .field-list .side h2{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between}
310
+ .flow-card.narrow{max-width:30rem;margin:24px auto 40px}
311
+ .flow-card.narrow .field-list li{flex-basis:100%}
312
+ .flow-card-actions .pill{text-decoration:none;text-align:center}
313
+ .field-list li.wide{flex-basis:100%}
314
+ .field-list li.side{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
315
+ .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}
316
+
317
+ /* 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 */
318
+ .steps-bar{display:flex;flex-wrap:wrap;list-style:none;margin:16px 0 0;padding:0;border-bottom:1px solid var(--color-line)}
319
+ .steps-bar li{margin:0 4px -1px 0}
320
+ .steps-bar span{display:block;padding:10px 14px;color:var(--color-text-2);font-weight:600;border-bottom:3px solid transparent}
321
+ .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}
322
+ .steps-bar .is-on{color:var(--color-text);border-bottom-color:var(--color-primary)}
323
+ .steps-bar .is-on b{background:var(--color-primary);color:var(--color-on-primary)}
324
+ .steps-bar .is-past b{background:var(--color-ok-bg);color:var(--color-ok)}
325
+ .steps-bar a{display:block;padding:10px 14px;color:var(--color-text-2);font-weight:600;text-decoration:none;border-bottom:3px solid transparent}
326
+ .steps-bar a:hover{color:var(--color-text)}
327
+ .steps-bar .steps-bar-name{display:inline;padding:0;border:0}
328
+ @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}}
329
+
330
+ /* 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 */
331
+ .record-table-part{border:1px solid var(--color-line);border-radius:14px;padding:18px 18px 12px;margin-top:14px}
332
+ .record-table-part>h2{font-size:22px;margin:0 0 10px}
333
+ .record-table tr.is-open td{background:var(--color-surface-1)}.record-table tr.is-not-complied td{background:var(--color-bad-bg)}
334
+ .record-table-scroll{overflow-x:auto;margin-top:10px}
335
+ .record-table{width:100%;border-collapse:collapse;font-size:14px}
336
+ .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)}
337
+ .record-table td{padding:8px;border-bottom:1px solid var(--color-line);vertical-align:top}
338
+
339
+ /* 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) */
340
+ .logbook-entry-draft{display:block;margin-top:10px;color:var(--color-bad);font-weight:600}
341
+ .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}
342
+ .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}
343
+
344
+ /* 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 */
345
+ @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}}
346
+ @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.9.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.9.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