Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Every repeated device has to earn its place. In practice:
- Search and filters belong on long lists (the glossary, the resources directory, Reversals). A list of fewer than about twenty items needs neither, and a longer one may do without when another clear route through it exists, such as a contents list.
- Tags: a tag links to the tags page only when at least five pages and at most a quarter of the tagged pages share it (`layouts/partials/functions/tag_counts.html`). Rarer tags are plain keywords; tags on more pages are not shown, because they no longer tell pages apart.
- In directories of cards (§4, About pages), show descriptions in full. Cut one only when it runs past six lines: show four lines and a "more" button. Dense term lists such as the glossary keep their short previews, and break into chapters under large letters on the area's pale ground, so a long run of cards has landmarks. Never hide just a line or two behind "more". Without JavaScript the full text shows.
- Cards for actions are the brick cards of `action_cards`. Lists of tools are rows: a linked title and a sentence, not boxes. A collection of materials that belongs to one area, such as the lesson plans, may be pale cards in that area's colour, as many to a row as fit, each a linked title, with a note on what the link opens only where the cards differ.
- Cards for actions are the brick cards of `action_cards`. Lists of tools are rows: a linked title and a sentence, not boxes. Lists of things a visitor opens and reads, such as posts and articles, are cards with their picture (the news list, Educators' Corner); an education article without a picture of its own gets a plain door on education's colour (§6), which repeats nothing the card already says. Newsletter issues have no pictures of their own, so the archive shows them as month bricks, one brick colour to a year. A collection of materials that belongs to one area, such as the lesson plans, may be pale cards in that area's colour, as many to a row as fit, each a linked title, with a note on what the link opens only where the cards differ.
- Not everything is a card. Cards are for things a visitor picks between or acts on: articles, teams, partners, resources, materials, publications. Running content, such as plans, lists of points and explanations, stays as text, even on an area's pale colour, and so do long uniform lists unless the box carries information: Reversals' effects and Contributors are rows with a hairline between them, so a long entry makes a taller row and leaves no gap beside it.
- A list of more than about thirty items has something to skim by: filters with counts, groups under headings, or, for names and terms people look up by their first letter, letters to jump by. Titles of resources or articles are not looked up that way, so they get filters and search, not letters. One unbroken run of hundreds of links is a wall, however tidy. A colour that carries meaning (an outcome, an area) or a summary at the top (Reversals' outcome bar) also helps a long list to be skimmed. Hairline rules alone are not enough (§1).
- Directories of organisations, teams and projects (Partnerships, Teams, Get involved) are pale cards or pictured entries, two or more to a row on a wide screen, so they are easy to skim. Each ends in a button for its action, such as "Visit website" or "Join the team's Slack channel".
Expand All @@ -62,7 +62,7 @@ Every repeated device has to earn its place. In practice:
- No italics anywhere outside reference lists, including menus, captions, labels and quotes. Emphasis is semi-bold.
- Headings, buttons and labels are in sentence case.
- Reading lines stay under 80 characters, measured on the rendered lines. The narrow reading column is for prose; tables, tools, programmes and directories may use the full width.
- On a wide page, prose never stands alone in the narrow column with an empty band beside it. When a full-width list follows, the list starts beside the prose or flows around it (Community, Teams). Otherwise something useful sits beside the prose, such as a contents card, an image, the article's authors with their photos, or the search of a list long enough to need one (§4). A date alone is not enough: on news, Educators' Corner and Pedagogies articles the card also names the authors (`doors/reading_card.html`). Nothing beside or around the prose says the same thing twice: the card names the authors so the byline beside it does not, and the section is linked by the breadcrumb and the heading of the cards at the end, not again in the card. The 80-character limit is for the length of lines, not a reason to leave half the screen empty.
- On a wide page, prose never stands alone in the narrow column with an empty band beside it. When a full-width list follows, the list starts beside the prose or flows around it (Community, Teams). Otherwise something useful sits beside the prose, such as a contents card, an image, the article's authors with their photos, the ways to take part (Nowhere Lab), or the search of a list long enough to need one (§4). A date alone is not enough: on news, Educators' Corner and Pedagogies articles the card also names the authors (`doors/reading_card.html`). Nothing beside or around the prose says the same thing twice: the card names the authors so the byline beside it does not, and the section is linked by the breadcrumb and the heading of the cards at the end, not again in the card. The 80-character limit is for the length of lines, not a reason to leave half the screen empty.
- Use the FORRT logo as supplied. Century Schoolbook is not a web font here.

## 8. Shared parts to reuse
Expand Down
98 changes: 98 additions & 0 deletions assets/css/doors/article.css
Original file line number Diff line number Diff line change
Expand Up @@ -670,3 +670,101 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px
.cl-item .cl-mark{transform:translateY(-1px)}
/* In print the card keeps the plain print styling above, without the cluster fill or door. */
@media print{.article-layout .article-card--cluster{background:none;padding:0}.article-card__door{display:none}}
/* Nowhere Lab (content/nowherelab/_index.md): on a wide screen, how to take part (the meetings, Slack and the
PhD Survival Guide) is a column beside the introduction and the story; on narrower ones it follows the
introduction. The meetings and Slack are plain text, not boxes: only the two meeting times are set large, in the
community area's colour, and the guide is a brick because it is something to open. */
@media(min-width:1001px){
.article-layout-wide .article-style .nl-layout{display:grid;grid-template-columns:minmax(0,620px) minmax(320px,500px);grid-template-areas:"intro side" "story side";column-gap:64px;align-items:start}
.nl-intro{grid-area:intro}.nl-side{grid-area:side}.nl-story{grid-area:story}
}
.article-layout .article-style .nl-section{margin:0 0 8px}
.article-layout .article-style .nl-section h2{margin:0 0 12px}
.article-layout .article-style .nl-section~.nl-section h2{margin-top:36px}
.article-layout .article-style .nl-times{display:flex;flex-wrap:wrap;gap:8px 36px;margin:0 0 14px}
.nl-times>span{font-size:19px;font-weight:600;line-height:1.25}
.nl-times strong{display:block;font:var(--display-weight) 30px/1.15 var(--display);color:var(--com)}
.article-layout .article-style .nl-side .action-cards{margin:40px 0 8px}
@media(max-width:1000px){.article-layout .article-style .nl-meetings h2{margin-top:36px}}
/* A logo beside a page's title (header_logo, Nowhere Lab): on a wide page the heading runs the full width, so the
logo leads the title instead of sitting alone at the far edge. */
@media(min-width:761px){.article-layout-wide .article-logo{float:inline-start;margin:6px 24px 8px 0}}
/* Summaries overview (content/summaries/_index.md, a wide page): the two collections as a hero of two large bricks
in their areas' colours, each led by its count; then the overview and "Join and help us" on the left, and the
folded background and the feedback ask, as plain text, beside them. */
.article-layout .article-style .summary-hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:24px 6px;max-width:none;margin:34px 0 48px;padding:0;list-style:none}
.article-layout .article-style .summary-hero li{position:relative;max-width:none;margin:0}
.summary-hero-res{--tone:var(--res)}.summary-hero-jus{--tone:var(--jus)}
.summary-hero li::before{content:"";position:absolute;left:18px;right:18px;top:-10px;height:10px;background:linear-gradient(90deg,transparent 7px,var(--tone) 7px 34px,transparent 34px) left top/41px 10px space no-repeat;border-radius:3px 3px 0 0;pointer-events:none}
.article-layout .article-style .summary-hero a{display:flex;flex-direction:column;align-items:flex-start;height:100%;box-sizing:border-box;padding:24px 30px 36px;background:var(--tone);border-radius:3px;box-shadow:inset 0 -8px 0 rgb(0 0 0/.24);color:#fff;text-decoration:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.summary-hero-count{font:var(--display-weight) clamp(64px,7vw,104px)/.95 var(--display);letter-spacing:-.02em}
.article-layout .article-style .summary-hero strong{margin:10px 0 8px;font:var(--display-weight) clamp(26px,2.4vw,34px)/1.12 var(--display);color:#fff}
.summary-hero-text{max-width:28em;font-size:18px;line-height:1.45}
.article-layout .article-style .summary-hero a:hover strong{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:5px}
.article-layout .article-style .summary-hero a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
@media(prefers-reduced-motion:no-preference){.summary-hero li{transition:transform .15s}.summary-hero li:hover{transform:translateY(-3px)}}
@media(min-width:901px){
.article-layout-wide .article-style .sm-layout{display:grid;grid-template-columns:minmax(0,620px) minmax(340px,1fr);grid-template-areas:"overview side" "join side";grid-template-rows:auto 1fr;column-gap:40px;align-items:start}
.sm-overview{grid-area:overview}.sm-join{grid-area:join}.sm-side{grid-area:side}
.article-layout .article-style .sm-overview>h2:first-child{margin-top:0}
}
@media(min-width:1001px){.article-layout-wide .article-style .sm-layout{column-gap:64px}}
.article-layout .article-style .sm-side .spoiler{max-width:none}
.article-layout .article-style .sm-feedback h3{margin-top:32px}
/* Inline, not the icon font's inline-block, so the icon never wraps away from the last word of its link. */
.sm-feedback .fa-external-link-alt{display:inline;margin-inline-start:4px;font-size:.72em}
@media(max-width:900px){.article-layout .article-style .sm-side{margin-top:28px}}
@media(max-width:760px){.article-layout .article-style .summary-hero{margin:28px 0 36px}.article-layout .article-style .summary-hero a{padding:20px 20px 30px}}
/* A collection of summaries (layouts/_default/summaries.html): the header on the pale ground of the collection's
area with its count; the filter and the routes to the other collection beside the list on a wide screen (on a phone the
filter above the list and the routes after it); and each entry a
title with its citation below it. An open entry takes the area's pale ground. */
.summaries-res{--area:var(--res);--area-bg:var(--res-bg)}
.summaries-jus{--area:var(--jus);--area-bg:var(--jus-bg)}
.summaries-band{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 40px;padding:26px 32px 30px;background:var(--area-bg);border-radius:var(--r-large)}
.summaries-band .article-head{flex:1 1 520px;margin:0}
.article-layout .summaries-band .article-head h1{font-size:clamp(34px,3.6vw,52px)}
.article-layout .summaries-band .standfirst{max-width:34em}
.summaries-band .byline:empty{display:none}
.summaries-count{margin:0;font-size:18px;font-weight:600;line-height:1.1}
.summaries-count strong{display:block;font:var(--display-weight) clamp(48px,5vw,72px)/1 var(--display);color:var(--area)}
.article-layout.summaries-layout{row-gap:28px}
.summaries-body{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.summaries-side .summary-tools{margin:0}
.summaries-side:empty{display:none}
.summaries-side .summary-tools p.summary-count{margin:8px 0 0;font-size:16px}
.summaries-side .summary-tools p.summary-count:empty{margin:0}
.summaries-routes ul{margin:0;padding:0;list-style:none;font-size:17px;line-height:1.35}
/* The link is inline, so the count follows its last word; the padding keeps the tap target 44 px high. */
.summaries-routes li{margin:0 0 4px;padding:11px 0}
.summaries-routes a{padding:11px 0;color:var(--link);text-decoration:underline;text-underline-offset:3px}
.summaries-routes span{color:var(--soft);font-size:15px}
@media(min-width:1001px){
.summaries-body{grid-template-columns:300px minmax(0,780px);grid-template-rows:auto 1fr;column-gap:56px;row-gap:16px}
.summaries-body>.reading{grid-column:2;grid-row:1/span 2}
.summaries-side{grid-column:1;grid-row:1}
.summaries-routes{grid-column:1;grid-row:2;align-self:start}
}
.summaries-layout .article-style>p:first-child{max-width:none;margin-bottom:12px;color:var(--soft);font-size:16px}
.article-layout.summaries-layout .article-style .summary-entry{margin:0;padding:0 14px;border-bottom:1px solid var(--line);border-radius:var(--r-small)}
.article-layout.summaries-layout .article-style .summary-entry>summary{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:start;padding:14px 0;list-style:none}
.summaries-layout .summary-entry>summary::-webkit-details-marker{display:none}
.summaries-layout .summary-entry>summary::before{content:"+";display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin-top:1px;background:var(--area-bg);border-radius:50%;color:var(--area);font:700 20px/1 var(--text)}
.summaries-layout .summary-entry[open]>summary::before{content:"−";background:#fff}
.summaries-layout .summary-entry>summary:hover .summary-title{text-decoration:underline;text-underline-offset:3px}
.article-layout.summaries-layout .article-style .summary-entry>summary h2{display:block;font-size:22px;line-height:1.25}
.summary-title,.summary-cite{display:block}
.summary-tail{white-space:nowrap}
/* The section's previous and next links would repeat the link to the other collection (.summaries-routes), which on
a phone sits right after them. */
.summaries-layout .article-foot .post-nav{display:none}
.summaries-layout .summary-cite{margin-top:3px;font:400 16px/1.35 var(--text);color:var(--soft)}
.article-layout.summaries-layout .article-style .summary-entry[open]{margin:6px 0;padding-bottom:14px;background:var(--area-bg);border-bottom-color:transparent}
.summaries-layout .summary-entry[open]>:not(summary){margin-inline-start:42px}
@media(max-width:760px){
.summaries-band{padding:20px 18px 22px}
.summaries-count{display:flex;align-items:baseline;gap:8px}
.summaries-count strong{display:inline;font-size:40px}
.article-layout.summaries-layout .article-style .summary-entry{padding:0 8px}
.summaries-layout .summary-entry[open]>:not(summary){margin-inline-start:0}
}
Loading
Loading