Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion 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.
- 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.
- 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 Down
23 changes: 12 additions & 11 deletions assets/css/doors/article.css
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti
.article-layout .article-style .btn-primary,.article-layout .article-style .btn-lg{padding:10px 22px!important;border-radius:999px!important;font-size:17px!important;line-height:1.3!important}
.article-layout .article-style .btn-block{display:inline-block;width:auto}
.booklet-open .btn{margin-inline-end:10px}
@media(max-width:760px){.booklet-open{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.booklet-open .btn{margin-inline-end:0}}
@media(max-width:1000px){.profile-head .profile-org{font-weight:400}.profile-head ul.network-icon{margin:4px 0 0}.profile-head ul.network-icon a{text-decoration:none}}
.article-layout .article-style .btn.btn-primary,.article-layout .article-style .btn.btn-lg{padding:10px 22px!important;font-size:17px!important}
.byline-date{display:none}
Expand All @@ -376,24 +377,24 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti
.article-layout .article-style .awop-material .spoiler>summary{padding:4px 0;font-size:16px}

/* Starting points (the action_cards shortcode and the Replication Hub's Start here): solid bricks with studs,
laid edge to edge like a short wall. The bricks are for a handful of actions; long lists are rows (hub.css).
laid edge to edge like a short wall. The bricks are for a handful of actions; long lists are rows (hub.css). The welcome page numbers its bricks as steps (welcome.css).
A row runs through the four brick colours (--brick1 to --brick4 in tokens.css), which stay clear of the
area colours and carry no meaning. The Replication Hub's bricks take their stages' colours instead (hub.css).
Outside an article, a container with the class brick-row takes the same bricks (the resources directory, Tags). */
.action-cards li:nth-child(4n+1){--tone:var(--brick1)}.action-cards li:nth-child(4n+2){--tone:var(--brick2)}
.action-cards li:nth-child(4n+3){--tone:var(--brick3)}.action-cards li:nth-child(4n+4){--tone:var(--brick4)}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:16px 5px;list-style:none;margin:26px 0 32px;padding:0;max-width:none}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards li{position:relative;margin:0;--brick:var(--tone)}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:16px 5px;list-style:none;margin:26px 0 32px;padding:0;max-width:none}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards li{position:relative;margin:0;--brick:var(--tone)}
/* The studs: short blocks along the top edge, on a pseudo-element so the text sits on a plain fill. */
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards li::before{content:"";position:absolute;left:14px;right:14px;top:-8px;height:8px;background:linear-gradient(90deg,transparent 6px,var(--brick) 6px 28px,transparent 28px) left top/34px 8px space no-repeat;border-radius:3px 3px 0 0;pointer-events:none}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards a{display:flex;flex-direction:column;gap:4px;height:100%;box-sizing:border-box;min-height:96px;padding:16px 18px 22px;background:var(--brick);border-radius:3px;box-shadow:inset 0 -6px 0 rgb(0 0 0/.24);color:#fff;text-decoration:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards strong{font:500 24px/1.15 var(--display);color:#fff}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards span{font:400 17px/1.4 var(--text);color:#fff}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards a:hover strong{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards li::before{content:"";position:absolute;left:14px;right:14px;top:-8px;height:8px;background:linear-gradient(90deg,transparent 6px,var(--brick) 6px 28px,transparent 28px) left top/34px 8px space no-repeat;border-radius:3px 3px 0 0;pointer-events:none}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards a{display:flex;flex-direction:column;gap:4px;height:100%;box-sizing:border-box;min-height:96px;padding:16px 18px 22px;background:var(--brick);border-radius:3px;box-shadow:inset 0 -6px 0 rgb(0 0 0/.24);color:#fff;text-decoration:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards strong{font:500 24px/1.15 var(--display);color:#fff}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards span{font:400 17px/1.4 var(--text);color:#fff}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards a:hover strong{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
@media(prefers-reduced-motion:no-preference){
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards li{transition:transform .15s}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.brick-row) .action-cards li:hover{transform:translateY(-3px)}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards li{transition:transform .15s}
:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards li:hover{transform:translateY(-3px)}
}
/* A disclosure inside a list item (the effects on /reversals/) is a small toggle under the entry, not a full-width bar. */
.article-layout .article-style li .spoiler{margin:4px 0 12px;background:none;border-radius:0}
Expand Down
4 changes: 3 additions & 1 deletion assets/css/doors/hub.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* The Replication Hub. Loaded only on /replication-hub/. */
.heading-plate-plain{margin:0;justify-self:end;width:100%;max-width:400px}
.heading-plate-plain img{display:block;width:100%;height:auto}
@media(max-width:760px){.heading-plate-plain{display:none}}
/* On a phone the diagram follows the standfirst, smaller: it shows how the four stages below fit together. */
@media(max-width:760px){.heading-plate-plain{justify-self:start;max-width:280px;margin:18px 0 0}}
.stage-jumps{display:none;--tone:#44598c}
@media(max-width:760px){
.stage-jumps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
Expand Down Expand Up @@ -49,3 +50,4 @@
.tool p.tool-format{padding:0;margin:0 0 2px}
}
@media(prefers-reduced-motion:no-preference){.tool{transition:background-color .15s}}

37 changes: 37 additions & 0 deletions assets/css/doors/map.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* The community map page (layouts/community-map/single.html). */
.map-page{padding:32px 0 56px}
.map-head .crumbs{margin-bottom:18px}
.map-head h1{font-size:clamp(36px,4.2vw,58px);line-height:1.06;margin:0 0 12px}
.map-head .standfirst{font:500 clamp(19px,1.6vw,22px)/1.35 var(--display);max-width:30em;margin:0;color:var(--ink)}
.map-head-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 48px;align-items:end}
/* The figures in the community colour, as text rather than a box: the map is part of Community & Sustainability. */
.map-figures{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 28px}
.map-figures p{margin:0;font-size:17px;color:var(--ink)}
.map-figures strong{display:block;font:var(--display-weight) clamp(34px,3.4vw,46px)/1.05 var(--display);color:var(--com)}
.map-figures .map-date{flex-basis:100%;font-size:15px;color:var(--soft)}
.map-frame{margin:24px 0 0;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-large)}
.map-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:10px 0 0}
.map-legend-title{margin:0;font-size:15px;font-weight:600}
.map-legend ul{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;list-style:none}
.map-legend li{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:15px}
.map-swatch{width:14px;height:14px;border:1px solid #444;border-radius:50%}
.map-after{display:grid;grid-template-columns:minmax(0,580px) minmax(0,420px);justify-content:space-between;gap:28px 56px;align-items:start;margin-top:40px}
/* The page's own layout sits outside .article-layout, so its text takes the article's type here. */
.map-text{font-size:18px;line-height:1.6;color:var(--ink)}
.map-text p{max-width:none;margin:0 0 16px}
.map-text a:not([class]){color:var(--link);text-decoration:underline;text-underline-offset:3px}
.map-text a:not([class]):hover{color:var(--ink)}
.map-text>:first-child{margin-top:0}
.map-join{padding-top:4px}
.map-join h2{margin:0 0 14px;font:var(--display-weight) 30px/1.15 var(--display)}
.map-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:0!important}
@media(max-width:1000px){.map-after{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
.map-page{padding:20px 0 36px}
.map-head-grid{grid-template-columns:minmax(0,1fr)}
.map-figures{justify-self:start}
.map-frame{margin-top:18px}
.map-after{margin-top:28px}
}
/* 44 px targets at every width: tablets are touch screens too. */
.map-buttons .btn{display:inline-flex;align-items:center;min-height:44px}
59 changes: 58 additions & 1 deletion assets/css/doors/sections.css
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ html:has(.contributor-az){scroll-padding-top:calc(var(--contributor-az,72px) + 1
.get-involved-card .get-involved-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px}
/* Get Involved is a wide page: its projects fill the width, as many to a row as fit. */
.article-layout-wide .article-style .get-involved-projects{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));max-width:none}
.article-layout-wide .article-style .action-cards{max-width:960px}
.article-layout-wide .article-style .action-cards{max-width:none}
.get-involved-card[hidden]{display:none}
.get-involved-card .get-involved-link{display:inline-flex;align-items:center;min-height:40px;padding:0;color:var(--link);font-weight:600;text-decoration:underline;text-underline-offset:3px}

Expand Down Expand Up @@ -369,3 +369,60 @@ html:has(.contributor-az){scroll-padding-top:calc(var(--contributor-az,72px) + 1
}
.team-slack-note{margin:14px 0 0;padding:12px 16px;background:var(--surface);border-radius:var(--r-large);font-size:17px}
.team-slack-note a{color:var(--link);text-decoration:underline;text-underline-offset:3px}

/* About us: the FORRT tower in its arched door, as on the home page, beside "Build your own FORRT tower". */
.article-layout .article-style .tower-picture{float:inline-end;width:min(42%,260px);margin:4px 0 16px 28px;padding:18px 10px 6px;background:var(--edu-bg);border-radius:999px 999px var(--r-small) var(--r-small)}
.tower-picture img{display:block;width:100%;height:auto}
.doc-section:has(.tower-picture){display:flow-root}
@media(max-width:760px){.article-layout .article-style .tower-picture{width:min(40%,150px);margin:2px 0 10px 16px;padding:12px 6px 4px}}

/* Lesson plans: an Education & Pedagogy page, so its plans are pale education cards, as many to a row as fit;
each names its plan as a link with what the link opens below it. */
.article-layout .article-style .lesson-plan-list>ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:12px;max-width:none;margin:12px 0 30px;padding:0;list-style:none}
.article-layout .article-style .lesson-plan-list>ul>li{max-width:none;margin:0;padding:14px 18px 16px;background:var(--edu-bg);border-radius:var(--r-large);font-size:16px;line-height:1.45;color:var(--ink)}
.article-layout .article-style .lesson-plan-list>ul>li>a:first-child{font:var(--display-weight) 21px/1.25 var(--display);color:var(--edu);text-decoration-color:color-mix(in srgb,var(--edu) 55%,transparent)}
.article-layout .article-style .lesson-plan-list>ul>li>a:first-child:hover{text-decoration-color:currentColor;text-decoration-thickness:2px}
.article-layout .article-style .lesson-plan-list>ul>li>br+a,.article-layout .article-style .lesson-plan-list>ul>li>a+a{color:var(--edu)}
.article-layout .article-style .lesson-plan-list>h3{margin:26px 0 0;font-size:24px}
/* Beside the prose on a wide screen, after it on a narrow one: the example lesson plan beside the introduction
that lists what each plan gives, and the article about the plans beside the motivation (DESIGN.md §7). */
.lesson-plan-intro,.lesson-plan-motivation{display:flex;flex-direction:column}
.article-layout .article-style .lesson-plan-sample{order:1;width:min(100%,340px);margin:4px 0 8px;padding:14px 14px 10px;background:var(--edu-bg);border-radius:var(--r-large)}
.lesson-plan-sample img{display:block;width:100%;height:auto;aspect-ratio:1218/980;object-fit:cover;object-position:top;background:#fff;border:1px solid var(--line);border-radius:4px}
Comment thread
LukasWallrich marked this conversation as resolved.
Resolved
.lesson-plan-sample figcaption{margin:8px 2px 0;font-size:15px;line-height:1.4;text-align:start}
.lesson-plan-article{order:1;margin:8px 0 0}
.article-layout .article-style .lesson-plan-article p{font-size:17px}
@media(min-width:1001px){
:is(.lesson-plan-intro,.lesson-plan-motivation){display:grid;grid-template-columns:minmax(0,580px) minmax(0,380px);justify-content:start;column-gap:64px;align-items:start}
:is(.lesson-plan-intro,.lesson-plan-motivation)>*{grid-column:1}
.article-layout .article-style :is(.lesson-plan-sample,.lesson-plan-article){grid-column:2;grid-row:1/span 6;width:auto;margin:0}
.lesson-plan-intro>:first-child+p{margin-top:0}
}

/* Get involved: a wide page, so "About FORRT" puts its guide call-out beside the text rather than under it,
and no empty band is left beside the prose (DESIGN.md §7). */
@media(min-width:1001px){
.article-layout-wide .doc-section:has(>aside.callout){display:grid;grid-template-columns:minmax(0,580px) minmax(0,440px);justify-content:start;column-gap:64px;align-items:start}
.article-layout-wide .doc-section:has(>aside.callout)>*{grid-column:1}
.article-layout-wide .article-style .doc-section>aside.callout{grid-column:2;grid-row:1/span 8;max-width:none;margin:6px 0 0}
}

/* The booklet: the flipbook on a pale panel, then what it covers in each area: a heading in the area's colour over a
plain list of links, not a box (DESIGN.md §4). */
.article-style .booklet-frame{background:var(--surface)!important;border-radius:var(--r-large)}
.booklet-inside{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:20px 32px;margin:12px 0 8px}
.booklet-area{--tone:var(--edu);padding-top:10px;border-top:4px solid var(--tone)}
.booklet-area-res{--tone:var(--res)}
.booklet-area-jus{--tone:var(--jus)}
.booklet-area-com{--tone:var(--com)}
.article-layout .article-style .booklet-area h3{margin:0 0 6px;font-size:22px;line-height:1.2;color:var(--tone)}
.article-layout .article-style .booklet-area ul{max-width:none;margin:0;padding:0;list-style:none}
.article-layout .article-style .booklet-area li{max-width:none;margin:0;padding:6px 0;font-size:17px;line-height:1.4}
.article-layout .article-style .booklet-area a{color:var(--ink);text-decoration-color:color-mix(in srgb,var(--tone) 55%,transparent)}
.article-layout .article-style .booklet-area a:hover{color:var(--tone);text-decoration-color:currentColor}
/* 44 px targets on phones for the booklet's and lesson plans' links (DESIGN.md §9). */
@media(max-width:760px){
.article-layout .article-style .booklet-area li{display:flex;align-items:center;min-height:44px;padding:0}
.article-layout .article-style .booklet-area a,.article-layout .article-style .lesson-plan-list>ul>li>a{display:inline-flex;align-items:center;min-height:44px;padding:0}
}
.booklet-area .fa-external-link-alt{margin-inline-start:2px;font-size:13px;color:var(--soft)}
Loading
Loading