diff --git a/DESIGN.md b/DESIGN.md index da7e86d2e1b..130bc233b7f 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -2,7 +2,7 @@ How pages on forrt.org should look and behave, for anyone changing a template, a style or the layout of a page, on any part of the site. The site uses the Doors design, which came out of community feedback on the earlier site and a design brief; this guide holds what still applies from both, together with the principles learnt from applying Doors across the site's templates. -Styles live in `assets/css/doors/`, with colours and type defined once in `tokens.css`. Shared page parts are in `layouts/partials/doors/` and `layouts/shortcodes/`. +Styles live in `assets/css/`, with colours and type defined once in `tokens.css`. Shared page parts are in `layouts/partials/` and `layouts/shortcodes/`. ## 1. Character @@ -67,8 +67,8 @@ Every repeated device has to earn its place. In practice: - No italics anywhere outside references, including menus, captions, labels and quotes. A publication's venue is part of its reference, so a journal name on a publication card is italic. Emphasis is semi-bold. - Headings, buttons and labels are in sentence case. - Paragraphs keep to a measure of about 640 px (`--measure` in `article.css`), so reading lines average about 75 characters, and no rendered line reaches 100. The 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, 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 measure is for the length of lines, not a reason to leave half the screen empty. -- Nor does prose stand alone in the middle of the screen on the reading layout. A page with no contents, dates or contact for its side card gets the other pages of its menu group there instead (`doors/section_nav_card.html`), without those its text already links; phones have the menu for that and leave the card out. Pages outside the menu groups (Submit, Imprint, the authors index, 404), or with fewer than two unlinked peers left to list, stand alone. +- 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 (`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 measure is for the length of lines, not a reason to leave half the screen empty. +- Nor does prose stand alone in the middle of the screen on the reading layout. A page with no contents, dates or contact for its side card gets the other pages of its menu group there instead (`section_nav_card.html`), without those its text already links; phones have the menu for that and leave the card out. Pages outside the menu groups (Submit, Imprint, the authors index, 404), or with fewer than two unlinked peers left to list, stand alone. - Use the FORRT logo as supplied. Century Schoolbook is not a web font here. - On desktop, an open header menu is a card under its button, with its first column beneath the button's label, staying inside the header row. It has at most three columns; four groups sit two by two so headings align. The overview link that heads it is semi-bold. @@ -78,13 +78,13 @@ Before writing a new component, check these: | Need | Use | |---|---| -| A page with a lead image beside its title | `doors/page_hero.html`, through `hero_image` in front matter (AWoP, Citational Justice, AI in Metascience) | +| A page with a lead image beside its title | `page_hero.html`, through `hero_image` in front matter (AWoP, Citational Justice, AI in Metascience) | | A set of actions as cards | `{{< action_cards >}}` | | Search and a count over a long list | `{{< list_filter >}}`, with `noun` for the count ("Showing 12 of 436 effects") | -| Contents on a phone | `doors/toc_phone.html`: an open, labelled list; a list of more than six sections shows the first five, with a button for the rest | -| Names with links | `doors/name_list.html` | -| Keywords on a resource | `doors/resource_keywords.html` | -| Previous and next | `doors/pager.html`: Previous on the left, Next on the right; at the end of an article, `doors/read_next.html` shows them with related articles as the news list's cards | +| Contents on a phone | `toc_phone.html`: an open, labelled list; a list of more than six sections shows the first five, with a button for the rest | +| Names with links | `name_list.html` | +| Keywords on a resource | `resource_keywords.html` | +| Previous and next | `pager.html`: Previous on the left, Next on the right; at the end of an article, `read_next.html` shows them with related articles as the news list's cards | | Information to keep but not lead with | a `details` disclosure with a plain label | Images in the first screen are not lazy-loaded. diff --git a/assets/css/doors/analysis.css b/assets/css/analysis.css similarity index 99% rename from assets/css/doors/analysis.css rename to assets/css/analysis.css index 747c6305c84..242668d0524 100644 --- a/assets/css/doors/analysis.css +++ b/assets/css/analysis.css @@ -1,4 +1,4 @@ -/* The contributor analysis page: figures, charts and the network drawn by doors/network.js. */ +/* The contributor analysis page: figures, charts and the network drawn by network.js. */ .analysis-page{padding:24px 0 56px} .analysis-head h1{font-size:clamp(36px,4.2vw,58px);line-height:1.06;letter-spacing:-.01em;margin:14px 0 0;text-wrap:balance} .analysis-standfirst{font:500 clamp(21px,1.9vw,25px)/1.4 var(--display);margin:18px 0 0;max-width:30em} diff --git a/assets/css/doors/article.css b/assets/css/article.css similarity index 99% rename from assets/css/doors/article.css rename to assets/css/article.css index f58e5bf37c5..c50e4b2ebac 100644 --- a/assets/css/doors/article.css +++ b/assets/css/article.css @@ -143,7 +143,7 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti .article-layout-callouts .doc-section-tinted .callout{margin-inline-end:-344px} } @media(max-width:1000px){.article-layout .article-card{order:1}} -/* The side card listing the other pages of the page's menu group (doors/section_nav_card). Phones and tablets have +/* The side card listing the other pages of the page's menu group (section_nav_card). Phones and tablets have the menu for that, so the card is left out there rather than following the text (DESIGN.md §9). */ .article-layout .section-nav ul{list-style:none;margin:0;padding:0} .article-layout .section-nav li>*{display:block;padding:5px 0;font-size:16px;line-height:1.35} @@ -513,7 +513,7 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti .article-layout .article-style .lesson-reading p:last-child,.article-layout .article-style .lesson-reading ul:last-child{margin-bottom:0} .article-layout .post-nav-lesson{margin-top:12px;padding-top:16px;border-top:1px solid var(--line)} -/* A tool page's direct actions, under its title (doors/page_actions). */ +/* A tool page's direct actions, under its title (page_actions). */ .article-layout .page-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px} .article-layout .page-actions .btn{padding:10px 22px;font-size:17px} /* On phones a tall cover image pushed the page's contents a screen down, so it is held to part of the screen. */ @@ -611,7 +611,7 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti .article-layout .article-style .list-filter-jump{display:flex;align-items:center;gap:8px;margin:10px 0 0;font:600 16px/1.3 var(--text)} .article-layout .article-style .list-filter-jump select{flex:1;padding:8px 10px;border:1.5px solid var(--line);border-radius:var(--r-small);background:#fff;font:400 16px/1.3 var(--text);color:var(--ink)} -/* A page's opening with its picture in view (partials/doors/page_hero.html: the AWoP and citation wheels, a banner): on a +/* A page's opening with its picture in view (partials/page_hero.html: the AWoP and citation wheels, a banner): on a desktop the title, lede and actions sit beside a large image and span the side card and text below; on a phone the image follows the actions at a size that keeps them on the first screen. */ .article-layout .page-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);column-gap:48px;align-items:center} @@ -771,7 +771,7 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px .article-layout .article-style .list-filter-section li:has(>.entry-text)>.spoiler>summary{min-height:44px} .article-layout .article-style .list-filter-section .is-long>.entry-text>.entry-more{min-height:1lh} } -/* News cards with a picture (DESIGN.md §1): the news list (section/post.html) and the end of each article (doors/read_next). */ +/* News cards with a picture (DESIGN.md §1): the news list (section/post.html) and the end of each article (read_next). */ .announcements-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:20px;margin:0;padding:0;list-style:none} .announcements-grid>li[hidden]{display:none} .announcement-card{position:relative;display:flex;flex-direction:column;height:100%;background:var(--surface);border-radius:var(--r-large);overflow:hidden} @@ -839,8 +839,8 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px } /* On the narrowest phones six 44 px links are wider than the card. */ @media(max-width:359px){.article-layout .card-authors>li>div>.network-icon{flex-wrap:wrap;width:auto}} -/* A news post's single action: one brick with studs (doors/reading). A newsletter's takes the colour the news list - gives that issue (doors/post_panels). */ +/* A news post's single action: one brick with studs (reading). A newsletter's takes the colour the news list + gives that issue (post_panels). */ .article-layout .article-style .post-brick{position:relative;display:inline-block;box-sizing:border-box;min-width:min(100%,280px);max-width:100%;min-height:76px;margin-top:10px;padding:20px 26px 26px;background:var(--brick);border-radius:3px;box-shadow:inset 0 -6px 0 rgb(0 0 0/.24);font:500 26px/1.15 var(--display);color:#fff;text-decoration:none;-webkit-print-color-adjust:exact;print-color-adjust:exact} .article-layout .article-style .post-brick::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} .article-layout .article-style .post-brick::after{content:"\2192" / "";margin-inline-start:10px;font-family:var(--text);font-size:22px} @@ -848,7 +848,7 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px .article-layout .article-style .post-brick:focus-visible{outline:3px solid var(--ink);outline-offset:3px} .ac-panel-1{--brick:var(--brick1)}.ac-panel-2{--brick:var(--brick2)}.ac-panel-3{--brick:var(--brick3)}.ac-panel-4{--brick:var(--brick4)} .article-layout .article-style .post-action{margin:24px 0} -/* The end of an article: previous, next and related as the news list's cards, across the page (doors/read_next). */ +/* The end of an article: previous, next and related as the news list's cards, across the page (read_next). */ .read-next{padding:8px 0 48px} .read-next h2{margin:0 0 18px;font-size:30px;line-height:1.15} .read-next .announcements-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))} @@ -908,7 +908,7 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px :is(.article-type-educators-corner,.article-type-pedagogies) .toc-phone{background:var(--edu-bg)} /* In the text column (below 1320 px) a call-out keeps to the text's measure. */ .article-layout:not(.article-layout-wide) .article-style .callout{max-width:calc(var(--measure) + 2.4em)} -/* The end band's heading leads to the whole section (doors/read_next). */ +/* The end band's heading leads to the whole section (read_next). */ .read-next h2 a{color:var(--link);text-decoration:none} .read-next h2 a:is(:hover,:focus-visible){text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)} .read-next h2 a:hover{color:var(--link)} @@ -1084,7 +1084,7 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px .article-layout .article-style .summary-chapter:first-of-type .summary-chapter-head{margin-top:6px} .summary-chapter{scroll-margin-top:16px} .summary-chapter[hidden]{display:none} -/* Questions to start from (doors/summary_questions): each a brick, like those on the summaries overview, with +/* Questions to start from (summary_questions): each a brick, like those on the summaries overview, with studs in the area's colour along its top and a shaded foot; white, so they stand apart from the pale filter panel beside them. The question in display type, the answer, the citation at the foot. All the questions are in the page in an order the script shuffles; three show on a wide screen, one on a phone. */ @@ -1189,7 +1189,7 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px .summaries-layout .summary-entry>summary:hover .summary-title{text-decoration:underline;text-underline-offset:3px} .article-layout.summaries-layout .article-style .summary-entry>summary h3{display:block;margin:0;font-size:22px;line-height:1.25} .article-layout.summaries-layout .article-style .summary-entry>summary>*{grid-column:2} -/* The first takeaway under the citation, cut by length in doors/summary_entries (about two or three lines, a whole +/* The first takeaway under the citation, cut by length in summary_entries (about two or three lines, a whole first sentence where one fits); the open entry gives the takeaways in full. */ .summary-gist{display:block;max-width:29em;text-wrap:pretty;margin-top:6px;font-size:17px;line-height:1.45;color:var(--ink)} .summary-gist-short{display:none} diff --git a/assets/css/doors/base.css b/assets/css/base.css similarity index 100% rename from assets/css/doors/base.css rename to assets/css/base.css diff --git a/assets/css/doors/chatbot.css b/assets/css/chatbot.css similarity index 100% rename from assets/css/doors/chatbot.css rename to assets/css/chatbot.css diff --git a/assets/css/doors/citations.css b/assets/css/citations.css similarity index 100% rename from assets/css/doors/citations.css rename to assets/css/citations.css diff --git a/assets/css/doors/clusters.css b/assets/css/clusters.css similarity index 100% rename from assets/css/doors/clusters.css rename to assets/css/clusters.css diff --git a/assets/css/doors/compat.css b/assets/css/compat.css similarity index 100% rename from assets/css/doors/compat.css rename to assets/css/compat.css diff --git a/assets/css/doors/fonts.css b/assets/css/fonts.css similarity index 100% rename from assets/css/doors/fonts.css rename to assets/css/fonts.css diff --git a/assets/css/doors/games.css b/assets/css/games.css similarity index 100% rename from assets/css/doors/games.css rename to assets/css/games.css diff --git a/assets/css/doors/gform.css b/assets/css/gform.css similarity index 100% rename from assets/css/doors/gform.css rename to assets/css/gform.css diff --git a/assets/css/doors/glossary.css b/assets/css/glossary.css similarity index 100% rename from assets/css/doors/glossary.css rename to assets/css/glossary.css diff --git a/assets/css/doors/home.css b/assets/css/home.css similarity index 100% rename from assets/css/doors/home.css rename to assets/css/home.css diff --git a/assets/css/doors/hub.css b/assets/css/hub.css similarity index 100% rename from assets/css/doors/hub.css rename to assets/css/hub.css diff --git a/assets/css/doors/icons.css b/assets/css/icons.css similarity index 100% rename from assets/css/doors/icons.css rename to assets/css/icons.css diff --git a/assets/css/doors/inner.css b/assets/css/inner.css similarity index 100% rename from assets/css/doors/inner.css rename to assets/css/inner.css diff --git a/assets/css/doors/launcher.css b/assets/css/launcher.css similarity index 100% rename from assets/css/doors/launcher.css rename to assets/css/launcher.css diff --git a/assets/css/doors/lists.css b/assets/css/lists.css similarity index 99% rename from assets/css/doors/lists.css rename to assets/css/lists.css index 638037a43be..d5f92a56b1f 100644 --- a/assets/css/doors/lists.css +++ b/assets/css/lists.css @@ -396,7 +396,7 @@ html:has(.tag-az){scroll-padding-top:84px} .taxonomy-head .standfirst a{text-decoration-line:underline;text-decoration-color:var(--u-rest-color);text-decoration-thickness:var(--u-thick);text-underline-offset:var(--u-offset);text-decoration-skip-ink:auto} .taxonomy-head .standfirst a:is(:hover,:focus-visible){text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover)} -/* /forrt_clusters// (doors/topic_resources.html). The head: a chart of where the resources are now, one row per +/* /forrt_clusters// (topic_resources.html). The head: a chart of where the resources are now, one row per current cluster, its bar in the cluster's colour and laid in bricks; the directory's illustration beside it. */ .article-style.cluster-resources-list{max-width:none} .topic-head{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) 230px;gap:48px;align-items:end;max-width:1240px;margin:4px 0 26px} @@ -415,7 +415,7 @@ html:has(.tag-az){scroll-padding-top:84px} .topic-now__rows a:hover .topic-now__bar{box-shadow:inset 0 -3px 0 rgb(0 0 0/.22)} .topic-now__count{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums} /* The bars lay their bricks once, row after row, within about 1.7 s, when the chart comes into view (the script in - doors/topic_resources.html sets is-waiting, then is-laying). Without the script, or with reduced motion, they stand + topic_resources.html sets is-waiting, then is-laying). Without the script, or with reduced motion, they stand finished (DESIGN.md §11). */ .topic-now.is-waiting .topic-now__bar{clip-path:inset(0 100% 0 0)} .topic-now.is-laying .topic-now__bar{animation:topic-bar-lay .7s steps(9,end) calc(.15s + var(--i,0) * 70ms) both} @@ -445,7 +445,7 @@ html:has(.tag-az){scroll-padding-top:84px} .topic-types .list-filter-reset{display:inline-flex;align-items:center;min-height:44px;margin-top:6px} .topic-types .list-filter-reset[hidden]{display:none} .article-style .topic-types__note{max-width:none;margin:0;font-size:15px;color:var(--soft)} -/* A long group shows its first eight titles until its button or a search shows the rest (doors/topic_resources.html). */ +/* A long group shows its first eight titles until its button or a search shows the rest (topic_resources.html). */ .cluster-resources-list:not(.is-filtering) ul.is-collapsed>li:nth-child(n+9){display:none} .cluster-resources-list .topic-showall{display:inline-flex;align-items:center;min-height:44px;margin:4px 16px 0;text-align:left} /* Readings follow the typed materials, and A to Z starts again with them. */ @@ -494,7 +494,7 @@ html:has(.tag-az){scroll-padding-top:84px} .article-style ol.topic-now__rows>li{break-inside:avoid} } -/* /category// (doors/category_term.html): the news list's head, chips and cards (above, and article.css). */ +/* /category// (category_term.html): the news list's head, chips and cards (above, and article.css). */ .category-nav .ac-chip{display:inline-flex;align-items:center;gap:7px;text-decoration:none} .category-nav .chip-count{color:var(--soft);font-size:15px;font-weight:600} .category-nav .ac-chip.active .chip-count{color:inherit} diff --git a/assets/css/doors/map.css b/assets/css/map.css similarity index 99% rename from assets/css/doors/map.css rename to assets/css/map.css index 3f489386317..91e173883ce 100644 --- a/assets/css/doors/map.css +++ b/assets/css/map.css @@ -1,5 +1,5 @@ /* The community map page (layouts/community-map/single.html) and the map with its ranked cities - (layouts/partials/doors/community_map.html), which may also sit inside an article. The map belongs to Community & + (layouts/partials/community_map.html), which may also sit inside an article. The map belongs to Community & Sustainability, so --com carries magnitude: the stat cards' crenellated tops, the bubbles' steps and the bars. */ .map-page{padding:32px 0 56px} .map-head .crumbs{margin-bottom:18px} diff --git a/assets/css/doors/newsletter.css b/assets/css/newsletter.css similarity index 93% rename from assets/css/doors/newsletter.css rename to assets/css/newsletter.css index 959ee0df14c..fb321caa7fd 100644 --- a/assets/css/doors/newsletter.css +++ b/assets/css/newsletter.css @@ -1,4 +1,4 @@ -/* The newsletter sign-up form (layouts/partials/doors/newsletter.html). The note and status carry +/* The newsletter sign-up form (layouts/partials/newsletter.html). The note and status carry element selectors to outweigh article.css, which loads later and resets paragraph type. */ .newsletter-form{max-width:520px} .newsletter-row{display:flex;flex-wrap:wrap;gap:8px} diff --git a/assets/css/doors/nexus-pages.css b/assets/css/nexus-pages.css similarity index 100% rename from assets/css/doors/nexus-pages.css rename to assets/css/nexus-pages.css diff --git a/assets/css/doors/page.css b/assets/css/page.css similarity index 100% rename from assets/css/doors/page.css rename to assets/css/page.css diff --git a/assets/css/doors/popover.css b/assets/css/popover.css similarity index 100% rename from assets/css/doors/popover.css rename to assets/css/popover.css diff --git a/assets/css/doors/reset.css b/assets/css/reset.css similarity index 100% rename from assets/css/doors/reset.css rename to assets/css/reset.css diff --git a/assets/css/doors/resources.css b/assets/css/resources.css similarity index 100% rename from assets/css/doors/resources.css rename to assets/css/resources.css diff --git a/assets/css/doors/search.css b/assets/css/search.css similarity index 100% rename from assets/css/doors/search.css rename to assets/css/search.css diff --git a/assets/css/doors/sections.css b/assets/css/sections.css similarity index 100% rename from assets/css/doors/sections.css rename to assets/css/sections.css diff --git a/assets/css/doors/shell.css b/assets/css/shell.css similarity index 100% rename from assets/css/doors/shell.css rename to assets/css/shell.css diff --git a/assets/css/doors/tokens.css b/assets/css/tokens.css similarity index 100% rename from assets/css/doors/tokens.css rename to assets/css/tokens.css diff --git a/assets/css/doors/toolkit.css b/assets/css/toolkit.css similarity index 100% rename from assets/css/doors/toolkit.css rename to assets/css/toolkit.css diff --git a/assets/css/doors/visitors.css b/assets/css/visitors.css similarity index 99% rename from assets/css/doors/visitors.css rename to assets/css/visitors.css index 2034a165375..062354a76e0 100644 --- a/assets/css/doors/visitors.css +++ b/assets/css/visitors.css @@ -1,7 +1,7 @@ /* /about/visitors/ (layouts/shortcodes/ga_visitors.html): one switch for the period; each period has a summary row, the map beside its ranked countries, then the most-read pages beside visitors by day. Slate (--brick3) carries magnitude, since it belongs to no area; orange (--hot) marks the single busiest day. Loaded on this page only - (doors/assets.html). Rules sit under .article-style so they outrank the article's own text rules. */ + (assets.html). Rules sit under .article-style so they outrank the article's own text rules. */ .vis{ --vis-ocean:#e8eef3; --vis-step-0:#fffefa;--vis-step-1:#ccd6e0;--vis-step-2:#a7b6c6;--vis-step-3:#8297ad; diff --git a/assets/css/doors/welcome.css b/assets/css/welcome.css similarity index 100% rename from assets/css/doors/welcome.css rename to assets/css/welcome.css diff --git a/assets/images/doors/area-community-bricks.webp b/assets/images/area-community-bricks.webp similarity index 100% rename from assets/images/doors/area-community-bricks.webp rename to assets/images/area-community-bricks.webp diff --git a/assets/images/doors/area-community.webp b/assets/images/area-community.webp similarity index 100% rename from assets/images/doors/area-community.webp rename to assets/images/area-community.webp diff --git a/assets/images/doors/area-education-bricks.webp b/assets/images/area-education-bricks.webp similarity index 100% rename from assets/images/doors/area-education-bricks.webp rename to assets/images/area-education-bricks.webp diff --git a/assets/images/doors/area-education.webp b/assets/images/area-education.webp similarity index 100% rename from assets/images/doors/area-education.webp rename to assets/images/area-education.webp diff --git a/assets/images/doors/area-justice-bricks.webp b/assets/images/area-justice-bricks.webp similarity index 100% rename from assets/images/doors/area-justice-bricks.webp rename to assets/images/area-justice-bricks.webp diff --git a/assets/images/doors/area-justice.webp b/assets/images/area-justice.webp similarity index 100% rename from assets/images/doors/area-justice.webp rename to assets/images/area-justice.webp diff --git a/assets/images/doors/area-research-bricks.webp b/assets/images/area-research-bricks.webp similarity index 100% rename from assets/images/doors/area-research-bricks.webp rename to assets/images/area-research-bricks.webp diff --git a/assets/images/doors/area-research.webp b/assets/images/area-research.webp similarity index 100% rename from assets/images/doors/area-research.webp rename to assets/images/area-research.webp diff --git a/assets/images/doors/castle-still.webp b/assets/images/castle-still.webp similarity index 100% rename from assets/images/doors/castle-still.webp rename to assets/images/castle-still.webp diff --git a/assets/images/doors/just-os-icon.webp b/assets/images/just-os-icon.webp similarity index 100% rename from assets/images/doors/just-os-icon.webp rename to assets/images/just-os-icon.webp diff --git a/assets/images/doors/logo-row.webp b/assets/images/logo-row.webp similarity index 100% rename from assets/images/doors/logo-row.webp rename to assets/images/logo-row.webp diff --git a/assets/images/doors/share/tray-00.webp b/assets/images/share/tray-00.webp similarity index 100% rename from assets/images/doors/share/tray-00.webp rename to assets/images/share/tray-00.webp diff --git a/assets/images/doors/share/tray-01.webp b/assets/images/share/tray-01.webp similarity index 100% rename from assets/images/doors/share/tray-01.webp rename to assets/images/share/tray-01.webp diff --git a/assets/images/doors/share/tray-02.webp b/assets/images/share/tray-02.webp similarity index 100% rename from assets/images/doors/share/tray-02.webp rename to assets/images/share/tray-02.webp diff --git a/assets/images/doors/share/tray-03.webp b/assets/images/share/tray-03.webp similarity index 100% rename from assets/images/doors/share/tray-03.webp rename to assets/images/share/tray-03.webp diff --git a/assets/images/doors/share/tray-04.webp b/assets/images/share/tray-04.webp similarity index 100% rename from assets/images/doors/share/tray-04.webp rename to assets/images/share/tray-04.webp diff --git a/assets/images/doors/share/tray-05.webp b/assets/images/share/tray-05.webp similarity index 100% rename from assets/images/doors/share/tray-05.webp rename to assets/images/share/tray-05.webp diff --git a/assets/images/doors/share/tray-06.webp b/assets/images/share/tray-06.webp similarity index 100% rename from assets/images/doors/share/tray-06.webp rename to assets/images/share/tray-06.webp diff --git a/assets/images/doors/share/tray-07.webp b/assets/images/share/tray-07.webp similarity index 100% rename from assets/images/doors/share/tray-07.webp rename to assets/images/share/tray-07.webp diff --git a/assets/images/doors/share/tray-08.webp b/assets/images/share/tray-08.webp similarity index 100% rename from assets/images/doors/share/tray-08.webp rename to assets/images/share/tray-08.webp diff --git a/assets/images/doors/share/tray-09.webp b/assets/images/share/tray-09.webp similarity index 100% rename from assets/images/doors/share/tray-09.webp rename to assets/images/share/tray-09.webp diff --git a/assets/images/doors/share/tray-10.webp b/assets/images/share/tray-10.webp similarity index 100% rename from assets/images/doors/share/tray-10.webp rename to assets/images/share/tray-10.webp diff --git a/assets/images/doors/share/tray-11.webp b/assets/images/share/tray-11.webp similarity index 100% rename from assets/images/doors/share/tray-11.webp rename to assets/images/share/tray-11.webp diff --git a/assets/images/doors/share/tray-12.webp b/assets/images/share/tray-12.webp similarity index 100% rename from assets/images/doors/share/tray-12.webp rename to assets/images/share/tray-12.webp diff --git a/assets/images/doors/share/tray-13.webp b/assets/images/share/tray-13.webp similarity index 100% rename from assets/images/doors/share/tray-13.webp rename to assets/images/share/tray-13.webp diff --git a/assets/images/doors/share/tray-14.webp b/assets/images/share/tray-14.webp similarity index 100% rename from assets/images/doors/share/tray-14.webp rename to assets/images/share/tray-14.webp diff --git a/assets/images/doors/share/tray-15.webp b/assets/images/share/tray-15.webp similarity index 100% rename from assets/images/doors/share/tray-15.webp rename to assets/images/share/tray-15.webp diff --git a/assets/images/doors/share/tray-16.webp b/assets/images/share/tray-16.webp similarity index 100% rename from assets/images/doors/share/tray-16.webp rename to assets/images/share/tray-16.webp diff --git a/assets/images/doors/share/tray-17.webp b/assets/images/share/tray-17.webp similarity index 100% rename from assets/images/doors/share/tray-17.webp rename to assets/images/share/tray-17.webp diff --git a/assets/images/doors/share/tray-18.webp b/assets/images/share/tray-18.webp similarity index 100% rename from assets/images/doors/share/tray-18.webp rename to assets/images/share/tray-18.webp diff --git a/assets/images/doors/share/tray-19.webp b/assets/images/share/tray-19.webp similarity index 100% rename from assets/images/doors/share/tray-19.webp rename to assets/images/share/tray-19.webp diff --git a/assets/images/doors/share/tray-20.webp b/assets/images/share/tray-20.webp similarity index 100% rename from assets/images/doors/share/tray-20.webp rename to assets/images/share/tray-20.webp diff --git a/assets/images/doors/share/tray-21.webp b/assets/images/share/tray-21.webp similarity index 100% rename from assets/images/doors/share/tray-21.webp rename to assets/images/share/tray-21.webp diff --git a/assets/images/doors/share/tray-22.webp b/assets/images/share/tray-22.webp similarity index 100% rename from assets/images/doors/share/tray-22.webp rename to assets/images/share/tray-22.webp diff --git a/assets/images/doors/share/tray-23.webp b/assets/images/share/tray-23.webp similarity index 100% rename from assets/images/doors/share/tray-23.webp rename to assets/images/share/tray-23.webp diff --git a/assets/images/doors/share/tray-24.webp b/assets/images/share/tray-24.webp similarity index 100% rename from assets/images/doors/share/tray-24.webp rename to assets/images/share/tray-24.webp diff --git a/assets/images/doors/share/tray-25.webp b/assets/images/share/tray-25.webp similarity index 100% rename from assets/images/doors/share/tray-25.webp rename to assets/images/share/tray-25.webp diff --git a/assets/images/doors/share/tray-26.webp b/assets/images/share/tray-26.webp similarity index 100% rename from assets/images/doors/share/tray-26.webp rename to assets/images/share/tray-26.webp diff --git a/assets/images/doors/share/tray-27.webp b/assets/images/share/tray-27.webp similarity index 100% rename from assets/images/doors/share/tray-27.webp rename to assets/images/share/tray-27.webp diff --git a/assets/images/doors/share/tray-28.webp b/assets/images/share/tray-28.webp similarity index 100% rename from assets/images/doors/share/tray-28.webp rename to assets/images/share/tray-28.webp diff --git a/assets/images/doors/share/tray-29.webp b/assets/images/share/tray-29.webp similarity index 100% rename from assets/images/doors/share/tray-29.webp rename to assets/images/share/tray-29.webp diff --git a/assets/images/doors/share/tray-30.webp b/assets/images/share/tray-30.webp similarity index 100% rename from assets/images/doors/share/tray-30.webp rename to assets/images/share/tray-30.webp diff --git a/assets/images/doors/share/tray-31.webp b/assets/images/share/tray-31.webp similarity index 100% rename from assets/images/doors/share/tray-31.webp rename to assets/images/share/tray-31.webp diff --git a/assets/images/doors/share/tray-32.webp b/assets/images/share/tray-32.webp similarity index 100% rename from assets/images/doors/share/tray-32.webp rename to assets/images/share/tray-32.webp diff --git a/assets/images/doors/share/tray-33.webp b/assets/images/share/tray-33.webp similarity index 100% rename from assets/images/doors/share/tray-33.webp rename to assets/images/share/tray-33.webp diff --git a/assets/images/doors/share/tray-34.webp b/assets/images/share/tray-34.webp similarity index 100% rename from assets/images/doors/share/tray-34.webp rename to assets/images/share/tray-34.webp diff --git a/assets/images/doors/share/tray-35.webp b/assets/images/share/tray-35.webp similarity index 100% rename from assets/images/doors/share/tray-35.webp rename to assets/images/share/tray-35.webp diff --git a/assets/images/doors/share/tray-36.webp b/assets/images/share/tray-36.webp similarity index 100% rename from assets/images/doors/share/tray-36.webp rename to assets/images/share/tray-36.webp diff --git a/assets/images/doors/share/tray-37.webp b/assets/images/share/tray-37.webp similarity index 100% rename from assets/images/doors/share/tray-37.webp rename to assets/images/share/tray-37.webp diff --git a/assets/images/doors/share/tray-38.webp b/assets/images/share/tray-38.webp similarity index 100% rename from assets/images/doors/share/tray-38.webp rename to assets/images/share/tray-38.webp diff --git a/assets/images/doors/share/tray-39.webp b/assets/images/share/tray-39.webp similarity index 100% rename from assets/images/doors/share/tray-39.webp rename to assets/images/share/tray-39.webp diff --git a/assets/images/doors/share/tray-40.webp b/assets/images/share/tray-40.webp similarity index 100% rename from assets/images/doors/share/tray-40.webp rename to assets/images/share/tray-40.webp diff --git a/assets/images/doors/share/tray-41.webp b/assets/images/share/tray-41.webp similarity index 100% rename from assets/images/doors/share/tray-41.webp rename to assets/images/share/tray-41.webp diff --git a/assets/images/doors/share/tray-42.webp b/assets/images/share/tray-42.webp similarity index 100% rename from assets/images/doors/share/tray-42.webp rename to assets/images/share/tray-42.webp diff --git a/assets/images/doors/share/tray-43.webp b/assets/images/share/tray-43.webp similarity index 100% rename from assets/images/doors/share/tray-43.webp rename to assets/images/share/tray-43.webp diff --git a/assets/images/doors/share/tray-44.webp b/assets/images/share/tray-44.webp similarity index 100% rename from assets/images/doors/share/tray-44.webp rename to assets/images/share/tray-44.webp diff --git a/assets/images/doors/share/tray-45.webp b/assets/images/share/tray-45.webp similarity index 100% rename from assets/images/doors/share/tray-45.webp rename to assets/images/share/tray-45.webp diff --git a/assets/images/doors/share/tray-46.webp b/assets/images/share/tray-46.webp similarity index 100% rename from assets/images/doors/share/tray-46.webp rename to assets/images/share/tray-46.webp diff --git a/assets/images/doors/share/tray-47.webp b/assets/images/share/tray-47.webp similarity index 100% rename from assets/images/doors/share/tray-47.webp rename to assets/images/share/tray-47.webp diff --git a/assets/js/doors/castle.js b/assets/js/castle.js similarity index 100% rename from assets/js/doors/castle.js rename to assets/js/castle.js diff --git a/assets/js/castle/README.md b/assets/js/castle/README.md index 8956cddf0e4..958bf53b0bf 100644 --- a/assets/js/castle/README.md +++ b/assets/js/castle/README.md @@ -1,6 +1,6 @@ # The home-page castle -The animated brick tower in the home page's arched door. Hugo bundles it with `js.Build` from `layouts/partials/doors/home/scripts.html`, using Three.js 0.186.0 from `assets/three/`. No Node is needed to build the site. +The animated brick tower in the home page's arched door. Hugo bundles it with `js.Build` from `layouts/partials/home/scripts.html`, using Three.js 0.186.0 from `assets/three/`. No Node is needed to build the site. | File | Role | |---|---| @@ -9,8 +9,8 @@ The animated brick tower in the home page's arched door. Hugo bundles it with `j | `castle-piles.js` | Baked resting poses of the two heaps. Generated, see below | | `bake-castle-piles.js` | Offline physics bake for those poses. Never part of the site's bundle | | `illustrations-render.js`, `education-render.js`, `illustrations-harness.html` | Offline renderers for the research and community area plates (`illustrations-render.js`) and the education plate (`education-render.js`); `scripts/rebrand/render_area_illustrations.py` renders them. Never part of the site's bundle | -| `../doors/castle.js` | Loads the bundle after paint and owns playback: pause, hover, tap, off-screen suspension. Also opens the tower game, see `../tower/README.md` | -| `../doors/motion.js` | The pause state the castle shares with the home page's quotes, remembered between visits | +| `../castle.js` | Loads the bundle after paint and owns playback: pause, hover, tap, off-screen suspension. Also opens the tower game, see `../tower/README.md` | +| `../motion.js` | The pause state the castle shares with the home page's quotes, remembered between visits | **Behaviour.** The still image paints first. The bundle loads after that, and not at all under reduced motion, Save-Data or no WebGL, so the home page works if the castle does not. The tower builds once, turns every 120 seconds and takes a colour wave after each change. Hovering dismantles it. The pause button and "Build it yourself" appear on hover, on keyboard focus and after a tap. @@ -22,7 +22,7 @@ The animated brick tower in the home page's arched door. Hugo bundles it with `j ```sh hugo --destination /tmp/castle-build -python3 scripts/rebrand/render_castle_still.py /tmp/castle-build assets/images/doors/castle-still.webp +python3 scripts/rebrand/render_castle_still.py /tmp/castle-build assets/images/castle-still.webp ``` **After changing which bricks move**, re-bake the heaps. This is the one step that needs Node, and only on the machine doing it: diff --git a/assets/js/castle/education-render.js b/assets/js/castle/education-render.js index aca793c63b5..1bf2601e2b3 100644 --- a/assets/js/castle/education-render.js +++ b/assets/js/castle/education-render.js @@ -1,4 +1,4 @@ -/* The education area plate: a stack of brick books under a mortarboard (assets/images/doors/area-education.webp). +/* The education area plate: a stack of brick books under a mortarboard (assets/images/area-education.webp). Rendered offline by scripts/rebrand/render_area_illustrations.py; never part of the site's bundle. Unlike illustrations-render.js, it takes its lights, shadow, materials, stud profile, brick pitch and course height from castle-scene.js and castle-geometry.js, and keeps the castle's camera scale. */ diff --git a/assets/js/doors/citation-matches.js b/assets/js/citation-matches.js similarity index 100% rename from assets/js/doors/citation-matches.js rename to assets/js/citation-matches.js diff --git a/assets/js/doors/citations.js b/assets/js/citations.js similarity index 100% rename from assets/js/doors/citations.js rename to assets/js/citations.js diff --git a/assets/js/doors/community-map.js b/assets/js/community-map.js similarity index 99% rename from assets/js/doors/community-map.js rename to assets/js/community-map.js index 537c3396ec9..4657d19aeb9 100644 --- a/assets/js/doors/community-map.js +++ b/assets/js/community-map.js @@ -1,4 +1,4 @@ -// The community map (layouts/partials/doors/community_map.html): FORRT's contributors by city (or Slack members +// The community map (layouts/partials/community_map.html): FORRT's contributors by city (or Slack members // by time-zone hub) on an SVG world map, with zoom and pan, ranked locations beside it, and a tab switch on // /community-map/ between the two views (drawing each view lazily on first reveal so a hidden map is never measured // at zero width, as on /about/visitors/). Country shapes come from countries.geojson. diff --git a/assets/js/doors/glossary.js b/assets/js/glossary.js similarity index 100% rename from assets/js/doors/glossary.js rename to assets/js/glossary.js diff --git a/assets/js/doors/home.js b/assets/js/home.js similarity index 100% rename from assets/js/doors/home.js rename to assets/js/home.js diff --git a/assets/js/doors/media-dialog.js b/assets/js/media-dialog.js similarity index 100% rename from assets/js/doors/media-dialog.js rename to assets/js/media-dialog.js diff --git a/assets/js/doors/motion.js b/assets/js/motion.js similarity index 100% rename from assets/js/doors/motion.js rename to assets/js/motion.js diff --git a/assets/js/doors/network.js b/assets/js/network.js similarity index 100% rename from assets/js/doors/network.js rename to assets/js/network.js diff --git a/assets/js/doors/popover.js b/assets/js/popover.js similarity index 100% rename from assets/js/doors/popover.js rename to assets/js/popover.js diff --git a/assets/js/doors/quotes.js b/assets/js/quotes.js similarity index 100% rename from assets/js/doors/quotes.js rename to assets/js/quotes.js diff --git a/assets/js/doors/references.js b/assets/js/references.js similarity index 100% rename from assets/js/doors/references.js rename to assets/js/references.js diff --git a/assets/js/doors/resources.js b/assets/js/resources.js similarity index 99% rename from assets/js/doors/resources.js rename to assets/js/resources.js index 87c948852c6..1259155c9f1 100644 --- a/assets/js/doors/resources.js +++ b/assets/js/resources.js @@ -148,7 +148,7 @@ function writeAddress(picks, push) { else history.replaceState(null, '', address); } -// Previous, numbered pages (first, last and two either side) and Next, as doors/pager draws them. +// Previous, numbered pages (first, last and two either side) and Next, as pager draws them. function drawPager(picks, pages) { const parts = []; const link = (n, text, rel) => { diff --git a/assets/js/doors/search.js b/assets/js/search.js similarity index 100% rename from assets/js/doors/search.js rename to assets/js/search.js diff --git a/assets/js/doors/site.js b/assets/js/site.js similarity index 99% rename from assets/js/doors/site.js rename to assets/js/site.js index ca871b11dc1..00943669fe9 100644 --- a/assets/js/doors/site.js +++ b/assets/js/site.js @@ -150,7 +150,7 @@ if (searchDialog) { if (shared) openSearch(shared); } -// Newsletter sign-up (layouts/partials/doors/newsletter.html). Nothing loads from elsewhere until +// Newsletter sign-up (layouts/partials/newsletter.html). Nothing loads from elsewhere until // a visitor presses Subscribe. Then Google reCAPTCHA loads, as EmailOctopus requires, and the form // posts the address to EmailOctopus the way its own embed does. let recaptcha; @@ -867,7 +867,7 @@ if (termFilter && termGrid) { count.textContent = query && shown ? format.replace('%s', shown).replace('%s', terms.length) : ''; }); // Cards or a compact list; the choice is kept for the next visit. - // The reference list (layouts/partials/doors/glossary_references.html) has neither the views nor the about box. + // The reference list (layouts/partials/glossary_references.html) has neither the views nor the about box. const view = document.querySelector('.glossary-view'); const setView = (list) => { if (!view) return; @@ -1443,7 +1443,7 @@ if (hubLobes) { }); } -// Phone contents (doors/toc_phone): a list of more than six sections shows its first five and a button for the rest. +// Phone contents (toc_phone): a list of more than six sections shows its first five and a button for the rest. // A closed contents line (.toc-phone--closed) opens to the whole list, so it is not shortened. document.querySelectorAll('.toc-phone:not(.toc-phone--closed)').forEach((box) => { const items = [...box.querySelectorAll('nav > ul > li')]; diff --git a/assets/js/doors/steering.js b/assets/js/steering.js similarity index 100% rename from assets/js/doors/steering.js rename to assets/js/steering.js diff --git a/assets/js/tower/README.md b/assets/js/tower/README.md index 8fa2b386562..d6d3486fc88 100644 --- a/assets/js/tower/README.md +++ b/assets/js/tower/README.md @@ -1,6 +1,6 @@ # The tower game -A free-building Lego game that opens in a dialog from "Build it yourself" on the home page. `../doors/castle.js` loads it when a visitor presses that button. +A free-building Lego game that opens in a dialog from "Build it yourself" on the home page. `../castle.js` loads it when a visitor presses that button. The site serves two prebuilt files from `static/js/tower/`, which have to stay in the same folder: diff --git a/assets/js/doors/visitors.js b/assets/js/visitors.js similarity index 100% rename from assets/js/doors/visitors.js rename to assets/js/visitors.js diff --git a/config/_default/menus.toml b/config/_default/menus.toml index d18eda1f48a..2b6ba7180ca 100644 --- a/config/_default/menus.toml +++ b/config/_default/menus.toml @@ -1,4 +1,4 @@ -# Main and footer menus, drawn by layouts/partials/doors/header.html and footer.html. +# Main and footer menus, drawn by layouts/partials/header.html and site_footer.html. # `group` sets the column in the opened menu; columns keep the order of their first entry. # An entry with no group goes in a final "More" column, so nothing can drop out of the menu. # `lead = true` marks a menu's overview link, which is set semi-bold. diff --git a/config/_default/params.toml b/config/_default/params.toml index a5f85ec149c..9259ea2f3e5 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -342,7 +342,7 @@ plugins_js = [] castle = true # Pages whose tables, maps, cards or lists need the full width: their paragraphs stay at reading width. wide_pages = ["/about/get-involved", "/about/visitors", "/replication-hub/large-scale-replication-projects", "/citation-politics/toolkit", "/publications", "/about/partnerships", "/contributors", "/about/community", "/about/teams", "/cv", "/about/booklet", "/just-os-chatbot", "/community-map", "/lesson-plans", "/ai-metascience", "/syllabus", "/neurodiversity-lessonbank", "/nowherelab", "/summaries", "/awards", "/testimonials"] - # Direct actions under a tool page's title (layouts/partials/doors/page_actions.html); the first is the main one. + # Direct actions under a tool page's title (layouts/partials/page_actions.html); the first is the main one. [[doors.page_actions]] path = "/awop" links = [{label = "Open the AWoP web app", url = "/awop_app/"}, {label = "Read the paper", url = "https://doi.org/10.31222/osf.io/af4nk_v2"}] diff --git a/content/about/about/about.md b/content/about/about/about.md index bea2cf0223a..efbc67523c0 100644 --- a/content/about/about/about.md +++ b/content/about/about/about.md @@ -63,7 +63,7 @@ In a nutshell, FORRT is a ***F***ramework for ***O***pen and ***R***eproducible {{< youtube XlL54egjSoA >}} - +