drive 0.7.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: ba84684bcb7ceb627421453571e0976616e77b7756ef5677ae79f7837b23945b
4
- data.tar.gz: 2068762d2e4c2ec3c94eee70b35cc14b6270d74504c55d02d4be4bc2ccf7b280
3
+ metadata.gz: 2aaf1ee05071b95077188eb65355172c7fdf87a0028d869819a41ca34be1f762
4
+ data.tar.gz: 1413f2baba3cfaea8db2b438574b960cf8fc1986ad4e3cc542254f7a56ed61cc
5
5
  SHA512:
6
- metadata.gz: 15717e1c2263a8335350fe3d6bcba8d9807df283f6c72180b4e273d6912ef39a1f82172798e7265f189ae92c39b5689ba6cbdf3fd25e08c0be09b1a0aa4b21c0
7
- data.tar.gz: 881c0fdbefb2d8466f1443d6d867c1965964b52f68801fd1000cf4117e5c300086f05b1a8cef048558ced13eae2398c4ed38dcb84e4f0cb5663d6e671d5f2541
6
+ metadata.gz: 76ed8b784c06490e9e94f04d266c5b8bc06b0022ed51a2225f4c98490ef46177e88d21abfa78ab17c0abaa75da66ebdd568a5757ece3023e3d34dfe50f943164
7
+ data.tar.gz: 731cf6829d8268a2819b9a5e18c40693e481f1eea320b10284eebb7080f638cd0999ef11945955d3c642419b1ae8c0a487e5ff219881eaaf924bfc2b691fb2f6
data/CHANGELOG.md CHANGED
@@ -6,6 +6,43 @@ 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
+
29
+ ## 0.8.0 - 2026-11-06
30
+
31
+ * [FEATURE] The easy design system's components, in `easy/components`, which `layouts/easy/site` loads after
32
+ the layout: pills, notes (`note bad`, `note warn`, `note info`, `small-note`), the share bar, the plane card,
33
+ switches, list tools, part tabs, AD cards and their chips, the sign-in modal, tooltips, the pin code, the
34
+ search hero and field, results, latest lists, bands, columns, placeholder bars and step cards. States are
35
+ `is-on`, `is-off`, `is-open`. The dummy app's `/guide` shows every token and component with its markup.
36
+
37
+ * [FEATURE] The easy design system's tokens, base and layout, which every easy app draws its pages with
38
+
39
+ `stylesheet_link_tag "easy/tokens", "easy/base", "easy/layout"` (the colours light and dark,
40
+ Outfit, the reset and utilities, the header, sky band, page and footer), and
41
+ `layouts/easy/site`, which an app's own layout fills with `content_for` (`:easy_head`,
42
+ `:easy_stylesheets`, `:body_class`, `:site_brand_url`, `:site_brand`, `:site_nav`, `:sky_band`,
43
+ `:site_footer`, `:body_end`) and then renders. `easy_icon` and `easy_icon_href` draw the icons of
44
+ one shared sprite, `easy/sprite.svg`.
45
+
9
46
  ## 0.7.0 - 2026-10-16
10
47
 
11
48
  * [BREAKING] `Mirrored`, `Counted`, `Run`, `AccessFile` and `Drive::TestHelper` are the `mirroring` gem's
@@ -0,0 +1,27 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <symbol id="i-check" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="currentColor"/><path d="M4.5 8.2l2.3 2.3 4.7-4.9" fill="none" stroke="#fff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></symbol>
3
+ <symbol id="i-applies" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="currentColor"/><path d="M8 4.2v4.6" stroke="#fff" stroke-width="2" stroke-linecap="round"/><circle cx="8" cy="11.6" r="1.2" fill="#fff"/></symbol>
4
+ <symbol id="i-maybe" viewBox="0 0 16 16"><circle cx="8" cy="8" r="7" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8 4.2v4.6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="8" cy="11.6" r="1.2" fill="currentColor"/></symbol>
5
+ <symbol id="i-none" viewBox="0 0 16 16"><circle cx="8" cy="8" r="7" fill="none" stroke="currentColor" stroke-width="2"/><path d="M4.8 8h6.4" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol>
6
+ <symbol id="i-alert" viewBox="0 0 16 16"><path d="M8 1.6L14.8 13.8H1.2Z" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/><path d="M8 6v3.6" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/><circle cx="8" cy="11.6" r="1" fill="currentColor"/></symbol>
7
+ <symbol id="i-superseded" viewBox="0 0 16 16"><path d="M3.5 1.75h5.75l3.25 3.25v9.25h-9z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M9.25 1.75v3.25h3.25" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M1.5 14.5L14.5 1.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></symbol>
8
+ <symbol id="i-engine" viewBox="0 0 24 24"><path fill="currentColor" d="M7 4v2h3v2H7l-2 2v3H3v-3H1v8h2v-3h2v3h3l2 2h8v-4h2v3h3V9h-3v3h-2V8h-6V6h3V4z"/></symbol>
9
+ <symbol id="i-propeller" viewBox="0 0 16 16"><g fill="currentColor"><path d="M8 7.4C5.4 6 5.3 2.1 8 .5c2.7 1.6 2.6 5.5 0 6.9z"/><path d="M8 7.4C5.4 6 5.3 2.1 8 .5c2.7 1.6 2.6 5.5 0 6.9z" transform="rotate(120 8 8)"/><path d="M8 7.4C5.4 6 5.3 2.1 8 .5c2.7 1.6 2.6 5.5 0 6.9z" transform="rotate(240 8 8)"/><circle cx="8" cy="8" r="2.1"/></g></symbol>
10
+ <symbol id="i-appliance" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13.07 6.45L15.31 6.84L15.31 9.16L13.07 9.55L12.68 10.49L13.99 12.35L12.35 13.99L10.49 12.68L9.55 13.07L9.16 15.31L6.84 15.31L6.45 13.07L5.51 12.68L3.65 13.99L2.01 12.35L3.32 10.49L2.93 9.55L0.69 9.16L0.69 6.84L2.93 6.45L3.32 5.51L2.01 3.65L3.65 2.01L5.51 3.32L6.45 2.93L6.84 0.69L9.16 0.69L9.55 2.93L10.49 3.32L12.35 2.01L13.99 3.65L12.68 5.51Z M8 5.6a2.4 2.4 0 1 0 0 4.8a2.4 2.4 0 1 0 0-4.8Z"/></symbol>
11
+ <symbol id="i-newest" viewBox="0 0 16 16"><path d="M4 2.5v10M1.5 10l2.5 2.5L6.5 10M9 4h5.5M9 7.5h4M9 11h2.5" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></symbol>
12
+ <symbol id="i-oldest" viewBox="0 0 16 16"><path d="M4 13.5v-10M1.5 6L4 3.5 6.5 6M9 4h2.5M9 7.5h4M9 11h5.5" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></symbol>
13
+ <symbol id="i-search" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="6.5" fill="none" stroke="currentColor" stroke-width="2.4"/><path d="M15.5 15.5l5 5" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"/></symbol>
14
+ <symbol id="i-bookmark" viewBox="0 0 16 16"><path d="M4 1.5h8a.5.5 0 0 1 .5.5v12.3L8 11.2l-4.5 3.1V2a.5.5 0 0 1 .5-.5z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></symbol>
15
+ <symbol id="i-share" viewBox="0 0 16 16"><circle cx="12" cy="3.5" r="2" fill="none" stroke="currentColor" stroke-width="1.5"/><circle cx="4" cy="8" r="2" fill="none" stroke="currentColor" stroke-width="1.5"/><circle cx="12" cy="12.5" r="2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M5.8 7l4.4-2.5M5.8 9l4.4 2.5" stroke="currentColor" stroke-width="1.5"/></symbol>
16
+ <symbol id="i-link" viewBox="0 0 16 16"><path d="M6.6 9.4l2.8-2.8M7 4.6l1.2-1.2a2.8 2.8 0 0 1 4 4L11 8.6M9 11.4l-1.2 1.2a2.8 2.8 0 0 1-4-4L5 7.4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></symbol>
17
+ <symbol id="i-out" viewBox="0 0 16 16"><path d="M9 2.5h4.5V7M13.5 2.5L7.5 8.5M11.5 9.5v3a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h3" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></symbol>
18
+ <symbol id="i-sun" viewBox="0 0 16 16"><circle cx="8" cy="8" r="3.2" fill="currentColor"/><path d="M8 .8v2M8 13.2v2M.8 8h2M13.2 8h2M2.9 2.9l1.4 1.4M11.7 11.7l1.4 1.4M2.9 13.1l1.4-1.4M11.7 4.3l1.4-1.4" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></symbol>
19
+ <symbol id="i-moon" viewBox="0 0 16 16"><path d="M13.5 10.2A6 6 0 0 1 5.8 2.5a6 6 0 1 0 7.7 7.7z" fill="currentColor"/></symbol>
20
+ <symbol id="i-plane" viewBox="0 0 24 24"><path d="M21 15.5v-2l-8-5V3.2a1.5 1.5 0 0 0-3 0V8.5l-8 5v2l8-2.5v5.2l-2 1.5V21l3.5-1 3.5 1v-1.3l-2-1.5V13z" fill="currentColor"/></symbol>
21
+ <symbol id="s-x" viewBox="0 0 24 24"><path fill="currentColor" d="M17.8 3h3.1l-6.8 7.8L22 21h-6.2l-4.9-6.4L5.3 21H2.2l7.3-8.3L1.9 3h6.3l4.4 5.9zm-1.1 16.2h1.7L7.4 4.7H5.6z"/></symbol>
22
+ <symbol id="s-fb" viewBox="0 0 24 24"><path fill="currentColor" d="M13.6 22v-8.2h2.8l.4-3.3h-3.2V8.4c0-.9.3-1.6 1.6-1.6h1.7V3.9c-.3 0-1.3-.1-2.5-.1-2.5 0-4.2 1.5-4.2 4.3v2.4H7.4v3.3h2.8V22z"/></symbol>
23
+ <symbol id="s-li" viewBox="0 0 24 24"><path fill="currentColor" d="M3.6 8.6h3.7V20.5H3.6zM5.45 2.8a2.15 2.15 0 110 4.3 2.15 2.15 0 010-4.3zM9.6 8.6h3.5v1.6h.1c.5-.9 1.7-1.9 3.5-1.9 3.8 0 4.5 2.5 4.5 5.7v6.5h-3.7v-5.8c0-1.4 0-3.2-1.9-3.2s-2.3 1.5-2.3 3.1v5.9H9.6z"/></symbol>
24
+ <symbol id="s-rd" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M19.7 5.3a1.6 1.6 0 11-1.5 2l-3.3-.7-1 4.4c2.2.1 4.2.8 5.6 1.9a2.2 2.2 0 113 3 4.3 4.3 0 010 .6c0 3.4-4 6.1-8.5 6.1S5.5 19.9 5.5 16.5v-.6a2.2 2.2 0 113-3c1.4-1 3.3-1.7 5.4-1.8l1.2-5.3 4 .9a1.6 1.6 0 01.6-1.4zM9.3 14.2a1.4 1.4 0 100 2.8 1.4 1.4 0 000-2.8zm5.4 0a1.4 1.4 0 100 2.8 1.4 1.4 0 000-2.8zm-5.2 4.3a.5.5 0 00-.3.9c.9.7 2 1 2.8 1s1.9-.3 2.8-1a.5.5 0 10-.6-.8c-.6.5-1.4.8-2.2.8s-1.6-.3-2.2-.8a.5.5 0 00-.3-.1z"/></symbol>
25
+ <symbol id="s-wa" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2a10 10 0 00-8.6 15.1L2 22l5-1.3A10 10 0 1012 2zm0 1.8a8.2 8.2 0 11-4.2 15.3l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 0112 3.8zM8.6 7.2c-.2 0-.5 0-.8.3-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.2.2 2.1 3.3 5.2 4.5 2.6 1 3.1.8 3.7.8.6-.1 1.8-.7 2-1.5.3-.7.3-1.3.2-1.5l-.6-.4-2-1c-.3-.1-.5-.1-.7.1l-.9 1.2c-.2.2-.3.2-.6.1-.3-.2-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.5-.6.3-.5v-.5l-.9-2.3c-.2-.6-.5-.5-.7-.5z"/></symbol>
26
+ <symbol id="s-em" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round" d="M3 5.5h18v13H3zM3.5 6l8.5 7 8.5-7"/></symbol>
27
+ </svg>
@@ -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
+ })();
@@ -0,0 +1,32 @@
1
+ /* The easy design system's base: Outfit (the headings' face, served from here, one variable file
2
+ for every weight as Google Fonts serves it, ranges and all), the reset, type and utilities. */
3
+ @font-face{font-family:"Outfit";font-style:normal;font-weight:500;font-display:swap;src:url("outfit-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
4
+ @font-face{font-family:"Outfit";font-style:normal;font-weight:500;font-display:swap;src:url("outfit-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
5
+ @font-face{font-family:"Outfit";font-style:normal;font-weight:600;font-display:swap;src:url("outfit-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
6
+ @font-face{font-family:"Outfit";font-style:normal;font-weight:600;font-display:swap;src:url("outfit-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
7
+ @font-face{font-family:"Outfit";font-style:normal;font-weight:700;font-display:swap;src:url("outfit-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
8
+ @font-face{font-family:"Outfit";font-style:normal;font-weight:700;font-display:swap;src:url("outfit-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
9
+
10
+ *,*::before,*::after{box-sizing:border-box}
11
+ a,button{-webkit-tap-highlight-color:rgba(0,0,0,0)}
12
+ html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
13
+ html,body{overflow-x:hidden}
14
+ /* hidden makes the body its own scroller, where nothing can stick: clip keeps the page from scrolling sideways without that */
15
+ @supports (overflow-x:clip){html,body{overflow-x:clip}}
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}
20
+ img,svg{max-width:100%}
21
+ .i{width:1em;height:1em;vertical-align:-.125em;fill:currentColor;flex-shrink:0}
22
+ a{color:var(--color-primary)}
23
+ a:focus,button:focus,input:focus,summary:focus{outline:3px solid var(--color-focus);outline-offset:2px}
24
+ @media (prefers-reduced-motion: reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
25
+ .no-wrap{white-space:nowrap}
26
+ .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}
27
+ [hidden]{display:none!important}
28
+
29
+ body{font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
30
+ h1,h2,h3,.site-brand{font-family:"Outfit","Helvetica Neue",Arial,sans-serif;font-weight:600;line-height:1.2}
31
+ .phone-only{display:none}
32
+ @media (max-width:560px){.phone-hidden{display:none}.phone-only{display:inline}}
@@ -0,0 +1,346 @@
1
+ /* The easy design system's components, each under its name (inventory.md): its parts start with
2
+ its name, its variants are one more word, its states start with is-. */
3
+
4
+ /* pill: every action button (primary, soft); share-bar: bookmark, share to networks, copy link */
5
+ /* As much room above the buttons as below them: 8px under each, then the status line (4px + 1.5em of 14px). */
6
+ .share-bar{margin:28px 0 0;padding:33px 0 0;border-top:1px solid var(--color-line);text-align:center;max-width:100%}
7
+ .share-bar-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center}
8
+ .share-bar-list li{margin:0 8px 8px 0}
9
+ .share-bar-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:0;background:transparent;color:var(--color-text-2);cursor:pointer;padding:0;font:inherit;text-decoration:none}
10
+ .share-bar-button .i{width:22px;height:22px;display:block}
11
+ .share-bar-button.x{color:#000}.share-bar-button.fb{color:#1877f2}.share-bar-button.li{color:#0a66c2}.share-bar-button.rd{color:#ff4500}.share-bar-button.wa{color:#1fa855}.share-bar-button.em{color:var(--color-text-2)}
12
+ :root[data-theme="dark"] .share-bar-button.x{color:#f1f2f3}
13
+ @media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .share-bar-button.x{color:#f1f2f3}}
14
+ .share-bar-button.cp{border:1px solid var(--color-line);background:transparent;color:var(--color-text-2)}
15
+ .share-bar-button:focus-visible{-webkit-filter:brightness(1.12);filter:brightness(1.12)}
16
+ @media (hover:hover){.share-bar-button:hover{-webkit-filter:brightness(1.12);filter:brightness(1.12)}.share-bar-button.cp:hover{background:var(--color-surface-2)}}
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
+ .pill .i{margin-right:7px;vertical-align:-2px}
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)}
21
+ .share-bar-list .share-bar-sep{width:1px;height:28px;background:var(--color-line);margin:0 12px 8px 4px}
22
+ @media (max-width:480px){.share-bar-list .share-bar-sep{display:none}}
23
+ .share-bar-status{min-height:1.5em;margin:4px 0 0;font-size:14px;color:var(--color-text-2)}
24
+
25
+ /* plane-card: the navy card with the big title and its facts (glance: the facts alone, boxed); title-row: a title with something beside it; key-values: label and value rows */
26
+ .plane-card{border:1px solid var(--color-line);border-radius:18px;overflow:hidden;background:var(--color-bg);box-shadow:0 1px 3px rgba(0,0,0,.06)}
27
+ .plane-card-head{background-color:var(--color-midnight);color:var(--color-bg);padding:24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
28
+ .plane-card-head .plane-card-cta{margin:8px 0 8px 16px}
29
+ @media (max-width:640px){.plane-card-head .plane-card-cta{flex:1 1 100%;margin:20px 0 0;text-align:center}.plane-card-cta .alert-cta{display:block;padding:12px 16px}}
30
+ :root[data-theme="dark"] .plane-card-head{background-color:#0c2338;color:#f1f2f3}
31
+ @media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .plane-card-head{background-color:#0c2338;color:#f1f2f3}}
32
+ .plane-card-head h1{margin:0;font-size:40px;letter-spacing:.02em}
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")}
36
+ .plane-card-facts{display:flex;flex-wrap:wrap;margin:0;padding:12px 16px}
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}
38
+ @media (min-width:880px){.plane-card-facts div{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}}
39
+ @media (max-width:380px){.plane-card-facts div{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}
40
+ .plane-card-facts dt{font-size:13px;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em}
41
+ .plane-card-facts dd{margin:2px 0 0;font-weight:600}
42
+ .plane-card-facts.glance{border:1px solid var(--color-line);border-radius:12px;margin:16px 0 0}.plane-card-foot{border-top:1px solid var(--color-line);padding:14px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;background:var(--color-surface-1)}
43
+ .plane-card-foot p{margin:4px 0}
44
+ .title-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
45
+ .title-row h1{margin:0 12px 0 0}
46
+ .title-row p{margin:0;color:var(--color-text-2);text-align:right}
47
+ .key-values{margin:0}
48
+ .key-values div{display:flex;justify-content:space-between;border-bottom:1px solid var(--color-surface-3);padding:8px 0}
49
+ .key-values div:last-child{border-bottom:0}
50
+ .key-values dt{color:var(--color-text-muted);margin-right:12px}
51
+ .key-values dd{margin:0;font-weight:600;text-align:right}
52
+
53
+ /* switches: counts that turn a list on and off; list-tools: the row holding them, the sort button and the word search */
54
+ .switches{display:flex;flex-wrap:wrap;align-items:center;margin:0 -6px;padding:0;list-style:none}
55
+ .switches li{margin:6px;padding:5px 8px;border-radius:12px;font-weight:600}
56
+ .switches .ok{background:var(--color-bad-bg);color:var(--color-bad)}
57
+ .switches .warn{background:var(--color-warn-bg);color:var(--color-warn)}
58
+ .switches .all{background:var(--color-surface-2);color:var(--color-text)}
59
+ .switches .none{background:var(--color-surface-2);color:var(--color-text-muted);font-weight:500}
60
+ .switches .none a{color:inherit;text-decoration:none}
61
+ .switches .none a:hover{text-decoration:underline}
62
+ .switches .i{margin-right:6px}
63
+ .switches .switches-toggle{cursor:pointer;user-select:none;-webkit-user-select:none;border:2px solid transparent}
64
+ .switches .switches-toggle:focus{outline:0}
65
+ .switches .switches-toggle:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}
66
+ /* Each badge a switch, drawn as Bootstrap 6 draws one: a track, gray and bordered when off, filled
67
+ when on, with a white knob that slides across. The parts are gray; the levels keep their colors,
68
+ the good news ("do not apply", "superseded") in green. */
69
+ .switches li.switches-toggle{position:relative;padding-left:52px;border:1px solid var(--color-line)}
70
+ .switches li.switches-toggle::before{content:"";position:absolute;left:9px;top:50%;margin-top:-10px;width:35px;height:20px;box-sizing:border-box;border:1px solid var(--color-primary);border-radius:10rem;background:var(--color-primary);box-shadow:inset 0 1px 2px rgba(0,0,0,.05);transition:background-color .15s ease-in-out}
71
+ .switches li.switches-toggle::after{content:"";position:absolute;left:26px;top:50%;margin-top:-8px;width:16px;height:16px;border-radius:10rem;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.1);transition:left .15s ease-in-out}
72
+ .switches li.switches-toggle.is-off{background:transparent;color:var(--color-text-muted)}
73
+ .switches li.switches-toggle.is-off::before{background:var(--color-surface-3);border-color:var(--color-line)}
74
+ .switches li.switches-toggle.is-off::after{left:11px}
75
+ .switches.parts li{background:var(--color-surface-1);color:var(--color-text)}
76
+ .switches.levels .none{background:var(--color-ok-bg);color:var(--color-ok);font-weight:600}
77
+ .switches-line{display:flex;align-items:center;justify-content:space-between}
78
+ .switches-line .switches{flex:1 1 auto}
79
+ .list-tools{margin:6px 0 6px}
80
+ .list-tools[hidden]{display:none}
81
+ .word-search{display:flex;align-items:center;border:1px solid var(--color-line);border-radius:8px;background:var(--color-bg);padding:0 10px}
82
+ .word-search:focus-within{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-soft)}
83
+ .word-search .i{color:var(--color-text-muted);margin-right:8px;flex:none}
84
+ .word-search input{flex:1;min-width:0;border:0;background:transparent;color:var(--color-text);font:inherit;font-size:16px;padding:5px 0;outline:0}
85
+ .switches li.sort-button-item{margin:0 0 0 auto;padding:0;border:0;background:none}
86
+ .sort-button{flex:none;margin:6px 0 6px 12px;display:inline-flex;align-items:center;border:0;border-radius:8px;background:none;color:var(--color-text);font:inherit;font-size:15px;font-weight:600;padding:8px 4px;cursor:pointer;white-space:nowrap}
87
+ .sort-button .i{margin-right:8px}
88
+ .sort-button:hover{color:var(--color-primary)}
89
+
90
+ /* report: a list with its sticky head; part-tabs: Airframe, Engine, Propeller, Appliances, each with its panel */
91
+ .report-head{background:var(--color-bg);margin:24px -16px 8px;padding:12px 16px 24px;border-bottom:1px solid var(--color-line)}
92
+ .report-head h2{font-size:26px;margin:0 0 8px}
93
+ @media (max-width:600px){.report-head h2{font-size:20px;margin-bottom:4px}}
94
+ .report-head .switches{margin-bottom:6px}
95
+ .report-head p{margin:6px 0 0;color:var(--color-text-2)}
96
+ .part-tabs{display:flex;flex-wrap:wrap;align-items:flex-end;margin:24px 0 0;padding:0;list-style:none;border-bottom:1px solid var(--color-line)}
97
+ .part-tabs li{margin:0 4px -1px 0}
98
+ .part-tabs a{display:block;padding:12px 16px;border:1px solid transparent;border-bottom:0;border-radius:12px 12px 0 0;color:var(--color-text-2);text-decoration:none;font-weight:600}
99
+ .part-tabs a .i{margin-right:7px}
100
+ .part-tabs a:hover{color:var(--color-text);background:var(--color-surface-1)}
101
+ .part-tabs .n{font-weight:400;color:var(--color-text-muted);margin-left:5px}
102
+ .part-tabs a.is-on{background:var(--color-bg);border-color:var(--color-line);border-top:3px solid var(--color-text-2);padding-top:10px;color:var(--color-text)}
103
+ /* A clicked tab shows it's chosen without the focus ring, which a keyboard still gets. */
104
+ .part-tabs a:focus{outline:0}
105
+ .part-tabs a:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}
106
+ .part-tabs .part-tabs-records{margin:0 0 -1px auto}
107
+ @media (max-width:640px){.part-tabs a{padding:10px 9px;font-size:15px}.part-tabs a.is-on{padding-top:8px}.part-tabs .n{display:none}}
108
+ .part-tabs-panel{border:1px solid var(--color-line);border-top:0;border-radius:0 0 14px 14px;padding:18px 18px 4px;margin-bottom:16px}
109
+ .has-js .part-tabs-panel.is-off{display:none}
110
+ .part-tabs-panel > h2{font-size:22px;margin:0 0 10px}
111
+ .has-js .part-tabs-panel > h2{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
112
+ .report .report-head{position:-webkit-sticky;position:sticky;top:0;z-index:10}
113
+ @media (min-width:601px){.report .report-head{top:61px}}
114
+
115
+ /* ad-card: one AD in a list, its edge the level's colour, its icon the part's; level-chip; tie-chip; why-box; chip-list */
116
+ .ad-card-list{list-style:none;margin:16px 0 0;padding:0}
117
+ .ad-card{position:relative;border:1px solid var(--color-line);border-left-width:6px;border-radius:14px;padding:18px 20px;margin:0 0 14px;background:var(--color-bg)}
118
+ .ad-card.applies{border-left-color:var(--color-bad)}
119
+ .ad-card.may_apply{border-left-color:var(--color-warn-line)}
120
+ .ad-card.not_applying{border-left-color:var(--color-ok-line);background:var(--color-surface-1)}
121
+ .ad-card.not_applying h4 a{color:var(--color-text-2)}
122
+ /* What of the aircraft an AD reaches it through: its icon, repeated down the card's left side,
123
+ so the edge's color is the level's alone. */
124
+ .ad-card.airframe,.ad-card.engine,.ad-card.propeller,.ad-card.appliance{padding-left:44px;background-repeat:repeat-y;background-position:14px 20px;background-size:16px auto}
125
+ .ad-card.airframe{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 44'%3E%3Cpath fill='%238c96a0' fill-opacity='.45' d='M21 15.5v-2l-8-5V3.2a1.5 1.5 0 0 0-3 0V8.5l-8 5v2l8-2.5v5.2l-2 1.5V21l3.5-1 3.5 1v-1.3l-2-1.5V13z'/%3E%3C/svg%3E")}
126
+ .ad-card.engine{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 44'%3E%3Cpath fill='%238c96a0' fill-opacity='.45' d='M7 4v2h3v2H7l-2 2v3H3v-3H1v8h2v-3h2v3h3l2 2h8v-4h2v3h3V9h-3v3h-2V8h-6V6h3V4z'/%3E%3C/svg%3E")}
127
+ .ad-card.propeller{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 29'%3E%3Cg fill='%238c96a0' fill-opacity='.45'%3E%3Cpath d='M8 7.4C5.4 6 5.3 2.1 8 .5c2.7 1.6 2.6 5.5 0 6.9z'/%3E%3Cpath d='M8 7.4C5.4 6 5.3 2.1 8 .5c2.7 1.6 2.6 5.5 0 6.9z' transform='rotate(120 8 8)'/%3E%3Cpath d='M8 7.4C5.4 6 5.3 2.1 8 .5c2.7 1.6 2.6 5.5 0 6.9z' transform='rotate(240 8 8)'/%3E%3Ccircle cx='8' cy='8' r='2.1'/%3E%3C/g%3E%3C/svg%3E")}
128
+ .ad-card.appliance{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 29'%3E%3Cpath fill='%238c96a0' fill-opacity='.45' fill-rule='evenodd' d='M13.07 6.45L15.31 6.84L15.31 9.16L13.07 9.55L12.68 10.49L13.99 12.35L12.35 13.99L10.49 12.68L9.55 13.07L9.16 15.31L6.84 15.31L6.45 13.07L5.51 12.68L3.65 13.99L2.01 12.35L3.32 10.49L2.93 9.55L0.69 9.16L0.69 6.84L2.93 6.45L3.32 5.51L2.01 3.65L3.65 2.01L5.51 3.32L6.45 2.93L6.84 0.69L9.16 0.69L9.55 2.93L10.49 3.32L12.35 2.01L13.99 3.65L12.68 5.51Z M8 5.6a2.4 2.4 0 1 0 0 4.8a2.4 2.4 0 1 0 0-4.8Z'/%3E%3C/svg%3E")}
129
+ .ad-card.superseded{border-left-color:var(--color-ok-line);background:var(--color-surface-1)}
130
+ .ad-card.superseded h4 a{color:var(--color-text-2)}
131
+ .ad-card-replaced-by{font-family:"Outfit","Helvetica Neue",Arial,sans-serif;font-weight:400;font-size:19px;line-height:1.2;margin:10px 0 2px;color:var(--color-text-2)}
132
+ .ad-card-replaced-by a{font-weight:600;text-decoration:none}
133
+ .ad-card-replaced-by a:hover{text-decoration:underline}
134
+ ol.ad-card-list li.ad-card.superseded{display:none}
135
+ ol.ad-card-list.js-live li.ad-card.superseded{display:block}
136
+ .ad-card-top{position:relative;display:flex;flex-wrap:wrap;align-items:center}
137
+ .ad-card-top > *{margin:0 10px 6px 0}
138
+ .level-chip{display:inline-block;font-weight:700;font-size:14px;padding:5px 10px;border-radius:999px}
139
+ .level-chip .i{margin-right:5px}
140
+ .level-chip.applies{background:var(--color-bad-bg);color:var(--color-bad)}
141
+ .level-chip.may_apply{background:var(--color-warn-bg);color:var(--color-warn)}
142
+ .level-chip.not_applying{background:var(--color-ok-bg);color:var(--color-ok)}
143
+ .level-chip.superseded{background:var(--color-ok-bg);color:var(--color-ok)}
144
+ .ad-card-top .ad-card-kind{font-size:14px;padding:5px 10px;border-radius:999px;background:var(--color-surface-2)}
145
+ .tie-chip{font-size:13px;color:var(--color-text-2);border:1px solid var(--color-line);border-radius:999px;padding:4px 10px}
146
+ .ad-card-effective{font-size:14px;color:var(--color-text-muted);margin-left:auto!important}
147
+ .ad-card h3,.ad-card h4{font-family:"Outfit","Helvetica Neue",Arial,sans-serif;font-weight:600;font-size:19px;line-height:1.2;margin:4px 0 6px}
148
+ .ad-card h3 a,.ad-card h4 a{text-decoration:none}
149
+ .ad-card h3 a:hover,.ad-card h4 a:hover{text-decoration:underline}
150
+ .ad-card h3 .t,.ad-card h4 .t{display:block;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-weight:400;color:var(--color-text-2);font-size:16px;margin-top:2px}
151
+ .why-box{margin:8px 0 0;padding:12px 14px;border-radius:10px;background:var(--color-surface-1)}
152
+ .why-box b{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);margin-bottom:2px}
153
+ .chip-list{list-style:none;margin:0 -4px 16px;padding:0;display:flex;flex-wrap:wrap}
154
+ .chip-list li{margin:4px;padding:6px 12px;border-radius:999px;background:var(--color-surface-2);font-size:14px}
155
+ .chip-list .in{background:var(--color-ok-bg);color:var(--color-ok);font-weight:600}
156
+ .chip-list .part .i{margin-right:6px}
157
+ .level-chip.reaches{background:var(--color-surface-2);color:var(--color-text)}
158
+ .ad-card.reaches{border-left-color:var(--color-surface-3)}
159
+
160
+ /* ad-card and level-chip, the accidents' level */
161
+ .ad-card.accident{border-left-color:var(--color-warn-line)}
162
+ .level-chip.event{background:var(--color-warn-bg);color:var(--color-warn)}
163
+
164
+ /* modal: a dialog; tooltip: a hover or tap explanation; pin-code: the six-digit code */
165
+ .modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:rgba(11,30,58,.55);align-items:center;justify-content:center;padding:16px}
166
+ .modal:target,.modal.is-open{display:flex}
167
+ .modal-box{position:relative;width:100%;max-width:760px;max-height:100%;overflow:auto;background:var(--color-bg);color:var(--color-text);border-radius:18px;padding:28px 24px 24px;box-shadow:0 20px 50px rgba(0,0,0,.3)}
168
+ .modal-box h2{font-size:22px;margin:0 32px 6px 0}
169
+ .modal-box h2 > span[aria-hidden="true"]:first-child{margin-right:.35em}
170
+ .modal-x{position:absolute;top:10px;right:14px;font-size:28px;line-height:1;color:var(--color-text-muted);text-decoration:none}
171
+ /* The dialog gives the ✕ focus when it opens: ringed only for a keyboard, as a clicked link is not */
172
+ .modal-x:focus{outline:0}
173
+ .modal-x:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}
174
+ .tooltip{display:inline-block;margin:0 10px 6px 0}
175
+ a.tooltip-trigger{text-decoration:none;cursor:help}
176
+ a.tooltip-trigger:hover,a.tooltip-trigger:focus{box-shadow:0 0 0 2px currentColor}
177
+ .tooltip-pop{display:none;position:absolute;left:0;top:100%;z-index:5;margin-top:4px;width:100%;max-width:28rem;padding:12px 14px;border-radius:10px;background:var(--color-text);color:var(--color-bg);font-size:14px;line-height:1.45;box-shadow:0 6px 20px rgba(0,0,0,.25)}
178
+ .tooltip-pop strong{color:inherit}
179
+ .tooltip:hover .tooltip-pop,.tooltip-trigger:focus + .tooltip-pop,.tooltip.is-open .tooltip-pop{display:block}
180
+ .tooltip.is-shut .tooltip-pop{display:none!important}
181
+ .modal-lede{margin:0 0 4px;color:var(--color-text-2)}
182
+ .modal-fine{margin:14px 0 0;font-size:13px;color:var(--color-text-muted)}
183
+ /* The sign-in code: one real field over six slots (shared/_sign_in), as bh's pin_field draws
184
+ one. Until the script has drawn them, the field shows as any other. */
185
+ .pin-code{position:relative;max-width:380px;margin:14px auto 4px}
186
+ .pin-code-slots{display:none}
187
+ .pin-code.is-drawn .pin-code-slots{display:flex}
188
+ .pin-code-slots span{flex:1 1 0;min-width:0;height:56px;margin:0 4px;border:1px solid var(--color-line);border-radius:10px;background:var(--color-bg);display:flex;align-items:center;justify-content:center;font:600 26px/1 "Outfit","Helvetica Neue",Arial,sans-serif}
189
+ .pin-code-slots span.is-active{border-color:var(--color-focus);box-shadow:0 0 0 3px var(--color-primary-soft)}
190
+ .pin-code-input{display:block;width:100%;box-sizing:border-box;height:56px;padding:0 12px;border:1px solid var(--color-line);border-radius:10px;font-family:inherit;font-weight:600;font-size:24px;line-height:1;letter-spacing:.3em;text-align:center;background:var(--color-bg);color:var(--color-text)}
191
+ .pin-code.is-drawn .pin-code-input{position:absolute;top:0;left:0;height:100%;opacity:0;font-size:16px;cursor:text}
192
+
193
+ /* pin-code, refused */
194
+ .pin-code.is-invalid .pin-code-slots span,.pin-code.is-invalid .pin-code-input{border-color:var(--color-bad)}
195
+ .pin-code.is-invalid .pin-code-slots span.is-active{box-shadow:0 0 0 3px var(--color-bad-bg)}
196
+
197
+ /* note (warn, info): a boxed message; small-note: small grey text beside what it explains */
198
+ .note.warn{border:1px solid var(--color-warn-line);background:var(--color-warn-bg);color:var(--color-warn);padding:12px 16px;border-radius:12px;margin:16px 0}
199
+ .small-note,.note.info{font-size:14px;color:var(--color-text-muted)}
200
+ .note.info{background:var(--color-surface-1);border-left:4px solid var(--color-warn-line);padding:12px 16px;border-radius:0 8px 8px 0;margin:16px 0 32px 0}
201
+
202
+ /* search-hero: the home page's big search, its lede and figures; search-form and search-field: a labelled search box (mini: the small one); search-hint: the tries and recent pages under it; results: search results */
203
+ .search-hero{background:var(--color-sky-band-top);background:linear-gradient(180deg,var(--color-sky-band-top),var(--color-sky-band-bottom));padding:20px 0 12px;text-align:center}
204
+ .search-hero h1{font-size:30px;margin:0 auto 0px;color:var(--color-midnight)}
205
+ @media (min-width:720px){.search-hero h1{font-size:44px}}
206
+ .search-hero-lede{font-size:18px;color:var(--color-text-2);max-width:43rem;margin:0 auto 18px}
207
+ .search-form{max-width:40rem;margin:0 auto;text-align:left}
208
+ .search-form label{display:block;font-weight:600;margin-bottom:8px;text-align:center}
209
+ @media (max-width:430px){.search-form label{font-size:13px}}
210
+ .search-field{display:flex;background:var(--color-bg);border:2px solid var(--color-primary);border-radius:14px;box-shadow:0 6px 24px rgba(11,30,58,.12);overflow:hidden}
211
+ .search-field input{flex:1;min-width:0;width:100%;border:0;background:transparent;color:var(--color-text);font-size:20px;padding:16px 18px;font-family:inherit}
212
+ /* The field, rounded, shows where typing goes: the input's own outline would be square inside it. */
213
+ .search-field input:focus{outline:0}
214
+ .search-field:focus-within{box-shadow:0 0 0 4px var(--color-primary-soft);border-color:var(--color-focus)}
215
+ .search-field button{border:0;background:var(--color-primary);color:var(--color-on-primary);font:600 18px/1 inherit;font-family:inherit;padding:0 22px;cursor:pointer;min-width:56px}
216
+ .search-field button .i{width:22px;height:22px;vertical-align:-5px}
217
+ /* A click on the button draws no ring over the field; a keyboard's focus is ringed inside it. */
218
+ .search-field button:focus{outline:0}
219
+ .search-field button:focus-visible{outline:3px solid var(--color-on-primary);outline-offset:-6px}
220
+ @media (max-width:480px){.search-field button .t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}}
221
+ .search-hint{color:var(--color-text-2);font-size:15px;margin:4px 0 0;text-align:center}
222
+ .search-hint a{display:inline-block;margin:12px 6px 0;padding:6px 12px;border-radius:999px;background:var(--color-primary-soft);color:var(--color-on-primary-soft);text-decoration:none;font-variant-numeric:tabular-nums}
223
+ .search-hint a:hover{text-decoration:underline}
224
+ .search-form + .search-hint{margin-left:auto;margin-right:auto}
225
+ /* A page the member opened, in place of a Try pill: its link and its × share one pill, which takes
226
+ the focus ring for either. */
227
+ .search-hint .search-hint-recent{display:inline-flex;align-items:center;margin:12px 6px 0;padding:0 3px 0 0;border-radius:999px;background:var(--color-primary-soft);color:var(--color-on-primary-soft)}
228
+ .search-hint .search-hint-recent a{margin:0;padding:6px 4px 6px 12px;background:none}
229
+ .search-hint .search-hint-recent a:focus{outline:0;text-decoration:underline}
230
+ .search-hint .search-hint-recent form{display:inline}
231
+ .search-hint .search-hint-recent .x-button{width:26px;height:26px}
232
+ .search-hint .search-hint-recent .x-button:focus{outline:0}
233
+ .search-hint .search-hint-recent:focus-within{outline:3px solid var(--color-focus);outline-offset:2px}
234
+ .mini label{display:block;font-weight:600;margin-bottom:6px}
235
+ .mini .search-field{border-width:1px;box-shadow:none;border-radius:10px}
236
+ .mini .search-field:focus-within{box-shadow:0 0 0 3px var(--color-primary-soft)}
237
+ .mini .search-field input{font-size:17px;padding:12px}
238
+ .mini .search-field button{font-size:16px;padding:0 14px}
239
+ .results{padding-bottom:48px}
240
+ .results h2{font-size:20px;margin:32px 0 8px}
241
+ .results ul{list-style:none;margin:0;padding:0}
242
+ .results li{margin:0 0 8px}
243
+ .results li a{display:flex;align-items:center;gap:8px;padding:12px 16px;border:1px solid var(--color-line);border-radius:12px;background:var(--color-bg);text-decoration:none;color:var(--color-primary);font-weight:600}
244
+ .results li a::after{content:"\203A";margin-left:auto;padding-left:12px;font-size:24px;line-height:1;color:var(--color-text-muted)}
245
+ .results li a:hover{background:var(--color-surface-1);border-color:var(--color-primary)}
246
+ .results li a:hover .results-name{text-decoration:underline}
247
+ .results .results-meta{color:var(--color-text-muted);font-weight:400;font-size:15px;white-space:nowrap}
248
+ .results .results-pick{color:var(--color-text-2);margin:4px 0 0}
249
+
250
+ /* search-hint, recent pages; search-hero's figures */
251
+ .search-hint.recent-pages{margin:14px 0 0}
252
+ .search-hint.recent-pages[hidden]{display:none}
253
+ .search-hero-stats{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;margin:22px auto 0;padding:0;max-width:56rem}
254
+ .search-hero-stats li{flex:1 1 12rem;margin:6px;color:var(--color-text-2);font-size:15px}
255
+ .search-hero-stats strong{display:block;color:var(--color-midnight);font:700 30px/1.1 "Outfit","Helvetica Neue",Arial,sans-serif;font-variant-numeric:tabular-nums}
256
+
257
+ /* band: a section with a heading; latest-list: a dated list; columns: main and side */
258
+ .band{padding-top:20px;padding-bottom:20px}
259
+ .band h2{font-size:22px;margin:0 0 12px}
260
+ .band .latest-list + h2{margin-top:32px}
261
+ .latest-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--color-line)}
262
+ .latest-list li{border-bottom:1px solid var(--color-line)}
263
+ .latest-list a{display:flex;flex-wrap:wrap;align-items:baseline;padding:9px 4px;text-decoration:none;color:var(--color-text)}
264
+ .latest-list a:hover .latest-list-num{text-decoration:underline}
265
+ .latest-list-num{font-variant-numeric:tabular-nums;font-weight:600;color:var(--color-primary);margin-right:12px;white-space:nowrap}
266
+ .latest-list .latest-list-title{overflow-wrap:anywhere;min-width:0}
267
+ .latest-list .latest-list-when{margin-left:auto;color:var(--color-text-muted);font-size:14px;padding-left:12px}
268
+ @media (max-width:560px){.latest-list a{flex-direction:column;align-items:flex-start}.latest-list .latest-list-when{margin-left:0;padding-left:0}}
269
+ .columns{display:flex;flex-wrap:wrap;margin:24px -12px 0}
270
+ .columns > *{padding:0 12px}
271
+ .columns-main{flex:2 1 28rem;min-width:0}
272
+ .columns-side{flex:1 1 16rem;min-width:0}
273
+
274
+ /* placeholder-bar (b1 to b4): grey bars standing in for hidden text */
275
+ .placeholder-bar{display:block;height:10px;border-radius:5px;background:var(--color-surface-3);margin:0 0 8px}
276
+ .placeholder-bar.b1{width:22%}.placeholder-bar.b2{width:68%;height:14px}.placeholder-bar.b3{width:84%}.placeholder-bar.b4{width:46%}
277
+
278
+ /* step-cards: numbered cards, one per step (steps-bar stays easyAnnual's progress bar) */
279
+ .step-cards{list-style:none;margin:28px auto 0;padding:0;display:flex;flex-wrap:wrap;max-width:56rem;text-align:left;counter-reset:step}
280
+ .step-cards{margin-left:-8px;margin-right:-8px}
281
+ .step-cards li{flex:1 1 14rem;margin:8px;padding:14px 20px 18px;position:relative;border:1px solid var(--color-line);border-radius:14px;background:var(--color-bg)}
282
+ /* The step's number beside its title, the line under both. */
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}
284
+ .step-cards h2{font-size:18px;margin:0 0 6px;padding-left:38px;line-height:34px}
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}}
@@ -0,0 +1,44 @@
1
+ /* The easy design system's layout (layouts/easy/site): the skip link, the header with the app's
2
+ brand and nav, the theme toggle, the sky band, the page and its width, and the footer. */
3
+ .skip-link{position:absolute;left:-9999px;top:0;z-index:10;background:var(--color-bg);color:var(--color-primary);padding:12px 16px}
4
+ .skip-link:focus{left:8px;top:8px}
5
+ .i-moon{display:none}
6
+ :root[data-theme="dark"] .i-sun{display:none}
7
+ :root[data-theme="dark"] .i-moon{display:inline-block}
8
+ @media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .i-sun{display:none}:root:not([data-theme="light"]) .i-moon{display:inline-block}}
9
+ .page-width{max-width:68rem;margin:0 auto;padding:0 16px}
10
+ .site-header{border-bottom:1px solid var(--color-line);background:var(--color-bg)}
11
+ .site-header .page-width{display:flex;align-items:center;justify-content:space-between;min-height:60px}
12
+ .site-header .page-width>div{white-space:nowrap}
13
+ .site-brand{display:inline-block;text-decoration:none;white-space:nowrap;line-height:0}
14
+ .site-nav{display:inline}
15
+ .site-nav a{margin-left:16px;color:var(--color-text-2);text-decoration:none;padding:10px 0;display:inline-block}
16
+ .site-nav a:hover{color:var(--color-primary);text-decoration:underline}
17
+ .site-nav form{display:inline}
18
+ .site-nav form button{margin-left:16px;background:none;border:0;padding:10px 0;font:inherit;color:var(--color-text-2);cursor:pointer;text-decoration:none;display:inline-block}
19
+ .site-nav form button:hover{color:var(--color-primary);text-decoration:underline}
20
+ @media (max-width:560px){.site-nav a.phone-hidden{display:none}}
21
+ .theme-toggle{margin-left:12px;background:transparent;color:var(--color-text-2);border:1px solid var(--color-line);border-radius:999px;padding:8px 12px;font:inherit;font-size:14px;cursor:pointer;min-height:40px}
22
+ .theme-toggle .i{margin:0}
23
+ .theme-toggle-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
24
+ /* On a laptop the header stays at the top as the page scrolls. */
25
+ @media (min-width:601px){.site-header{position:-webkit-sticky;position:sticky;top:0;z-index:20}}
26
+
27
+ /* Blue fading to white under the header, across the whole window; slim on the pages that need room. */
28
+ .sky-band{background:var(--color-sky-band-top);background:linear-gradient(180deg,var(--color-sky-band-top),var(--color-sky-band-bottom));margin:0 0 20px;padding:16px 0}
29
+ .sky-band.slim{padding:6px 0;margin:0 0 14px}
30
+
31
+ /* The page: its width, or the whole window (wide) for content that lays out its own (.page-width). */
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%}
34
+ .page.wide{max-width:none;padding:0}
35
+
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)}
37
+ .site-footer-inner{max-width:68rem;margin:0 auto;padding:0 16px}
38
+ .site-footer a{color:var(--color-text-2)}
39
+ .site-footer a:hover{color:var(--color-primary)}
40
+ .site-footer-note{text-align:center;margin:0 auto;padding:12px 0;line-height:1.7}
41
+ .site-footer-bar{padding:12px;text-align:center;font-size:14px}
42
+ .site-footer-bar ul{list-style:none;margin:0;padding:0}
43
+ .site-footer-bar li{display:inline-block;margin:0 10px}
44
+ .site-footer-bar li a{display:inline-block;padding:6px 0}
@@ -0,0 +1,6 @@
1
+ /* The easy design system's tokens: every colour any easy app draws with, light and dark. The
2
+ dark ones follow the system unless the visitor picks a theme (data-theme on <html>). Plain hex:
3
+ every page has to work on old iPhones, Androids and Windows browsers. */
4
+ :root{color-scheme:light;--color-bg:#ffffff;--color-surface-1:#f6f7f8;--color-surface-2:#f1f2f3;--color-surface-3:#e2e5e7;--color-text:#2c2f32;--color-text-2:#50575d;--color-text-muted:#636c74;--color-line:#c6cbcf;--color-primary:#1a70d0;--color-on-primary:#ffffff;--color-primary-soft:#dfe5ff;--color-on-primary-soft:#215aa5;--color-ok:#19753e;--color-bad:#b3261e;--color-bad-bg:#fbe3e0;--color-bad-line:#ee9b93;--color-ok-bg:#d8f0dd;--color-ok-line:#87d29a;--color-warn:#7e6317;--color-warn-bg:#fff4d5;--color-warn-line:#ffde80;--color-engine-bg:#f3e6d8;--color-engine:#6f4219;--color-engine-line:#c08a57;--color-propeller-bg:#ece4f7;--color-propeller:#5b2a86;--color-propeller-line:#a47fd0;--color-appliance-bg:#d9f0ec;--color-appliance:#1b5e55;--color-appliance-line:#6fb3a8;--color-midnight:#0b1e3a;--color-sky:#5aa9e6;--color-focus:#1a70d0;--color-sky-band-top:#eaf3fb;--color-sky-band-bottom:#ffffff;}
5
+ @media (prefers-color-scheme: dark){:root:not([data-theme="light"]){color-scheme:dark;--color-bg:#131415;--color-surface-1:#202223;--color-surface-2:#2c2f32;--color-surface-3:#3d4347;--color-text:#f1f2f3;--color-text-2:#abb2b8;--color-text-muted:#8c96a0;--color-line:#50575d;--color-primary:#689dff;--color-on-primary:#131415;--color-primary-soft:#1d3155;--color-on-primary-soft:#bccdff;--color-ok:#59c27a;--color-bad:#ff8a80;--color-bad-bg:#4a1d1a;--color-bad-line:#c4453a;--color-ok-bg:#173e24;--color-ok-line:#13924c;--color-warn:#ffd352;--color-warn-bg:#564415;--color-warn-line:#d2a511;--color-engine-bg:#3d2a1a;--color-engine:#e8c29c;--color-engine-line:#9a6a3a;--color-propeller-bg:#2e1f44;--color-propeller:#d6bdf2;--color-propeller-line:#7a55a8;--color-appliance-bg:#16332f;--color-appliance:#9fd9cf;--color-appliance-line:#3f8a7f;--color-midnight:#cfe3f6;--color-sky:#5aa9e6;--color-focus:#689dff;--color-sky-band-top:#0c2338;--color-sky-band-bottom:#131415;}}
6
+ :root[data-theme="dark"]{color-scheme:dark;--color-bg:#131415;--color-surface-1:#202223;--color-surface-2:#2c2f32;--color-surface-3:#3d4347;--color-text:#f1f2f3;--color-text-2:#abb2b8;--color-text-muted:#8c96a0;--color-line:#50575d;--color-primary:#689dff;--color-on-primary:#131415;--color-primary-soft:#1d3155;--color-on-primary-soft:#bccdff;--color-ok:#59c27a;--color-bad:#ff8a80;--color-bad-bg:#4a1d1a;--color-bad-line:#c4453a;--color-ok-bg:#173e24;--color-ok-line:#13924c;--color-warn:#ffd352;--color-warn-bg:#564415;--color-warn-line:#d2a511;--color-engine-bg:#3d2a1a;--color-engine:#e8c29c;--color-engine-line:#9a6a3a;--color-propeller-bg:#2e1f44;--color-propeller:#d6bdf2;--color-propeller-line:#7a55a8;--color-appliance-bg:#16332f;--color-appliance:#9fd9cf;--color-appliance-line:#3f8a7f;--color-midnight:#cfe3f6;--color-sky:#5aa9e6;--color-focus:#689dff;--color-sky-band-top:#0c2338;--color-sky-band-bottom:#131415;}
@@ -0,0 +1,20 @@
1
+ module Drive
2
+ # The easy design system's icons, for every view of every app (Drive::Engine): one sprite every
3
+ # page shares (app/assets/images/easy/sprite.svg), one file the browser keeps for a year rather
4
+ # than a copy in every page.
5
+ module EasyHelper
6
+ # Where an icon is in the sprite: its address, then the icon's id after the #.
7
+ # @param name [String] "sun", "newest": its id in the sprite, without the i-.
8
+ # @param kind ["i", "s"] an icon of the design system's, or a social network's.
9
+ def easy_icon_href(name, kind = 'i') = "#{asset_path 'easy/sprite.svg'}##{kind}-#{name}"
10
+
11
+ # An icon, hidden from screen readers: the text beside it says what it is.
12
+ # @param href [String] easy_icon_href's answer, or a name in the sprite.
13
+ # @param class [String] the svg's classes, "i" for an icon drawn the size of the text around it.
14
+ def easy_icon(href, class: 'i')
15
+ href = easy_icon_href(href) unless href.include?('#')
16
+ # Both hrefs: the old Safaris every page is meant for read only xlink:href.
17
+ tag.svg(tag.use('xlink:href': href, href:), class:, aria: { hidden: true }, focusable: false)
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,50 @@
1
+ <%# The page every easy app draws: an app's own layout fills the slots, then renders this one
2
+ (render template: "layouts/easy/site").
3
+ - :easy_head, its title, metas and links;
4
+ - :easy_stylesheets, its own stylesheets, after the shared ones;
5
+ - :body_class, the body's classes;
6
+ - :site_brand_url and :site_brand, where its logo goes and the logo;
7
+ - :site_nav, its links, sign in or out;
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);
10
+ - :site_footer, its footer's lines and links;
11
+ - :body_end, its scripts. -%>
12
+ <!doctype html>
13
+ <html lang="en">
14
+ <head>
15
+ <meta charset="utf-8">
16
+ <meta name="viewport" content="width=device-width, initial-scale=1">
17
+ <%= yield :easy_head %>
18
+ <%# The headings' face, asked for with the stylesheet rather than once it is read (easy/base.css). -%>
19
+ <%= preload_link_tag asset_path("easy/outfit-latin.woff2"), as: "font", type: "font/woff2", crossorigin: "anonymous" %>
20
+ <%= stylesheet_link_tag "easy/tokens", "easy/base", "easy/layout", "easy/components" %>
21
+ <%= yield :easy_stylesheets %>
22
+ <script>(function(){document.documentElement.className+=' has-js';try{var t=localStorage.getItem('theme');if(t==='dark'||t==='light'){document.documentElement.setAttribute('data-theme',t)}}catch(e){}})();</script>
23
+ </head>
24
+ <body class="<%= content_for(:body_class) %>">
25
+ <a class="skip-link" href="#main">Skip to content</a>
26
+ <header class="site-header">
27
+ <div class="page-width">
28
+ <%= link_to content_for(:site_brand_url) || "/", class: "site-brand" do %><%= yield :site_brand %><% end %>
29
+ <div>
30
+ <nav class="site-nav" aria-label="Site"><%= yield :site_nav %></nav>
31
+ <button type="button" class="theme-toggle js-theme" aria-pressed="false">
32
+ <%= easy_icon "sun", class: "i i-sun" %><%= easy_icon "moon", class: "i i-moon" %><span class="theme-toggle-label">Dark theme</span>
33
+ </button>
34
+ </div>
35
+ </div>
36
+ </header>
37
+ <% if content_for?(:sky_band) %>
38
+ <div class="sky-band<%= " slim" if content_for(:sky_band) == "slim" %>"></div>
39
+ <% end %>
40
+ <main id="main" class="page<%= " wide" if content_for?(:sky_band) %><%= " #{content_for(:page_class)}" if content_for?(:page_class) %>">
41
+ <%= yield %>
42
+ </main>
43
+ <footer id="footer" class="site-footer">
44
+ <div class="site-footer-inner">
45
+ <%= yield :site_footer %>
46
+ </div>
47
+ </footer>
48
+ <%= yield :body_end %>
49
+ </body>
50
+ </html>
data/lib/drive/engine.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Drive
2
- # Lends the host its models (Crawler, NNumber, Designation, Serial), RateLimited and the error
3
- # pages.
2
+ # Lends the host its models (Crawler, NNumber, Designation, Serial), RateLimited, the error
3
+ # pages and the easy design system (layouts/easy/site, easy/*.css, its fonts and icons).
4
4
  class Engine < ::Rails::Engine
5
5
  engine_name 'drive'
6
6
 
@@ -23,5 +23,10 @@ module Drive
23
23
  get 'down.html', to: 'drive/errors#down', format: false
24
24
  end
25
25
  end
26
+
27
+ # The design system's icons in every view, beside its layout (layouts/easy/site).
28
+ initializer 'drive.easy_helper' do
29
+ ActiveSupport.on_load(:action_view) { include Drive::EasyHelper }
30
+ end
26
31
  end
27
32
  end
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.7.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.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob
@@ -34,14 +34,24 @@ files:
34
34
  - CHANGELOG.md
35
35
  - MIT-LICENSE
36
36
  - README.md
37
+ - app/assets/fonts/easy/outfit-latin-ext.woff2
38
+ - app/assets/fonts/easy/outfit-latin.woff2
39
+ - app/assets/images/easy/sprite.svg
40
+ - app/assets/javascripts/easy/rotating_placeholder.js
41
+ - app/assets/stylesheets/easy/base.css
42
+ - app/assets/stylesheets/easy/components.css
43
+ - app/assets/stylesheets/easy/layout.css
44
+ - app/assets/stylesheets/easy/tokens.css
37
45
  - app/controllers/concerns/rate_limited.rb
38
46
  - app/controllers/drive/errors_controller.rb
47
+ - app/helpers/drive/easy_helper.rb
39
48
  - app/models/crawler.rb
40
49
  - app/models/designation.rb
41
50
  - app/models/n_number.rb
42
51
  - app/models/serial.rb
43
52
  - app/views/drive/errors/show.html.erb
44
53
  - app/views/layouts/drive/errors.html.erb
54
+ - app/views/layouts/easy/site.html.erb
45
55
  - lib/drive.rb
46
56
  - lib/drive/cloudflare.rb
47
57
  - lib/drive/engine.rb