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
19 changes: 16 additions & 3 deletions assets/css/doors/article.css
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,8 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px
.ac-link::after{content:"";position:absolute;inset:0}
.announcement-card:hover .ac-link{color:var(--ink)}
@supports selector(:has(*)){.ac-link:focus-visible{outline:none}.announcement-card:has(.ac-link:focus-visible){outline:3px solid var(--ink);outline-offset:3px}}
/* The start of the summary: four lines; the card leads to the rest. */
.ac-summary{margin:0;overflow-wrap:anywhere;font-size:17px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
/* The start of the summary: four lines, breaking between words rather than mid-word; the card leads to the rest. */
.ac-summary{margin:0;overflow-wrap:break-word;font-size:17px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
/* Articles (news, Educators' Corner, Pedagogies). The side card names the authors, with their photos, and leads
back to the section; Educators' Corner and Pedagogies are education's, on its pale ground (DESIGN.md §6). */
.article-layout .article-card-edu{background:var(--edu-bg);box-shadow:inset 0 6px 0 var(--edu);padding-top:26px}
Expand All @@ -775,6 +775,10 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px
.article-layout .card-authors .network-icon li{flex:none;margin:0}
.article-layout .card-authors .network-icon a{display:flex;align-items:center;justify-content:center;width:34px;height:34px;color:var(--link);font-size:17px}
.article-layout .card-authors .network-icon a:hover{color:var(--ink)}
.article-layout .card-authors .network-icon .ai-google-scholar{font-size:21px;line-height:1;-webkit-text-stroke:.35px currentColor}
.article-layout .article-card .card-contact{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.article-layout .article-card .card-contact-email{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--link);font-size:16px;text-decoration:none}
.article-layout .article-card .card-contact-email:hover{color:var(--ink)}
.article-layout .card-more{margin:0 0 4px}
.article-layout .card-more a{display:inline-block;padding:11px 0;font-weight:600;color:var(--link);text-decoration:underline;text-underline-offset:3px}
.article-layout .card-more a::after{content:"\2192";margin-inline-start:6px;text-decoration:none}
Expand Down Expand Up @@ -809,17 +813,26 @@ html:has(.list-filter-section){scroll-padding-top:calc(var(--list-filter-bar,0px
.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))}
.read-next-edu .announcement-card{background:var(--edu-bg)}
.read-next .ac-panel{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.read-next .ac-panel-title{margin:0;font-size:inherit;line-height:1.1}
.read-next .ac-panel-title .ac-link,.read-next .announcement-card:hover .ac-panel-title .ac-link{display:flex;flex-direction:column;gap:2px;color:#fff;text-decoration:none}
.read-next .ac-panel-title span{font:600 15px/1.25 var(--text)}
.read-next .ac-panel-title strong{font:var(--display-weight) 28px/1.1 var(--display);text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.read-next .announcement-card:hover .ac-panel-title strong{text-decoration-thickness:2.5px}
.read-next .ac-issue .ac-summary{font-size:16px;-webkit-line-clamp:3;line-clamp:3}
@media(max-width:760px){
.read-next{padding-bottom:32px}
.read-next h2{font-size:26px}
.read-next .announcements-grid{gap:12px}
.read-next .announcement-card{flex-direction:row}
.read-next .ac-thumb{display:flex;flex:0 0 112px}
.read-next .ac-thumb:not(.ec-thumb-whole) img{width:112px;height:100%;min-height:112px;aspect-ratio:auto}
.read-next-edu .ac-thumb:not(.ec-thumb-whole,.ac-panel){align-items:center;padding:6px;box-sizing:border-box;background:#fff}
.read-next-edu .ac-thumb:not(.ec-thumb-whole,.ac-panel) img{width:100%;height:auto;min-height:0;object-fit:contain}
.read-next .ec-thumb-whole{aspect-ratio:auto;min-height:112px}
.read-next .ac-panel{aspect-ratio:auto;padding:12px}
.read-next .ac-panel span{font-size:15px;line-height:1.2}
.read-next .ac-panel strong{font-size:19px}
.read-next .ac-panel strong,.read-next .ac-panel-title strong{font-size:19px}
.read-next .ac-body{padding:12px 14px 14px}
.read-next .ac-body h3{font-size:19px}
}
Expand Down
35 changes: 23 additions & 12 deletions assets/css/doors/clusters.css
Original file line number Diff line number Diff line change
Expand Up @@ -552,12 +552,12 @@
}

.sc-description a {
color: #1c7ed6;
color: var(--link);
word-break: break-word;
}

.sc-description a:hover {
color: #1264ab;
color: var(--ink);
}

/* ---- Publication list ---- */
Expand All @@ -574,12 +574,12 @@
}

.publication-item a {
color: #1c7ed6;
color: var(--link);
word-break: break-all;
}

.publication-item a:hover {
color: #1264ab;
color: var(--ink);
}

/* ---- Responsive ---- */
Expand Down Expand Up @@ -1199,7 +1199,7 @@ h1.clusters-site-heading.clusters-hub-page__title {
}

.clusters-back-to-top:focus {
outline: 2px solid #1c7ed6;
outline: 2px solid var(--link);
outline-offset: 2px;
}

Expand Down Expand Up @@ -1851,11 +1851,12 @@ h1.clusters-site-heading.clusters-hub-page__title {
font-size: 0.75rem;
}
.ref-doi-link {
color: #1c7ed6;
color: var(--link);
word-break: break-all;
text-decoration: none;
text-decoration: underline;
text-underline-offset: 3px;
}
.ref-doi-link:hover { text-decoration: underline; }
.ref-doi-link:hover { color: var(--ink); }

.ref-oa-badge {
display: inline-flex;
Expand Down Expand Up @@ -2214,8 +2215,9 @@ h1.clusters-site-heading.clusters-hub-page__title {
font-size: 15px;
}
.rl-detail-doi-link {
color: #006080 !important;
text-decoration: none;
color: var(--link) !important;
text-decoration: underline;
text-underline-offset: 3px;
word-break: break-all;
}
.rl-detail-doi-link:hover { text-decoration: underline; }
Expand Down Expand Up @@ -2384,9 +2386,19 @@ body.clusters-mobile-nav-open .clusters-back-to-top{display:none}
.clusters-head h1.clusters-site-heading{font-weight:var(--display-weight);letter-spacing:-.01em;text-wrap:balance}
/* The closed reading-list panel cast its shadow back onto the page edge. */
.rl-panel:not(.open){box-shadow:none}
/* Keep the reading-list pill and its count badge at legible UI sizes (DESIGN.md §7). */
.rl-pill{font-size:15px;padding:7px 14px 7px 12px}
.rl-pill-count{font-size:14px;min-width:1.5em;height:1.5em}
/* Introductions keep to a reading measure; the explorer and diagram keep the full width. */
.clusters-intro .intro-paragraph{max-width:70ch}
/* On a phone the sponsor is a small credit line, so the search follows the introduction closely. */
/* Closing attribution row on /disciplines/: form + citation beside the UKRN credit on wide screens, stacked on phones. */
.disciplines-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:20px 40px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.disciplines-foot__main{flex:1 1 380px;min-width:0}
.disciplines-foot__main .disciplines-form{margin:0 0 10px}
.disciplines-foot__main .disciplines-attribution{margin:0;max-width:none}
.disciplines-foot .disciplines-partner{display:flex;align-items:center;gap:12px;max-width:none;margin:0;text-align:start}
.disciplines-partner img{width:64px;height:64px;flex:none}
.disciplines-foot .disciplines-partner__caption{margin:0;font-size:15px}
@media (max-width:768px){
.disciplines-partner{display:flex;align-items:center;gap:12px;align-self:flex-start;max-width:none}
.disciplines-partner img{width:56px;height:56px}
Expand Down Expand Up @@ -2611,7 +2623,6 @@ summary.clusters-overview__heading::before{content:"";width:0;height:0;border-le
.disciplines-areas{gap:6px 18px}
.disc-key{display:inline-flex;align-items:center;gap:7px;font:600 16px/1.3 var(--text);color:var(--ink)}
.disc-key::before{content:"";width:14px;height:14px;border-radius:3px;background:var(--k);-webkit-print-color-adjust:exact;print-color-adjust:exact}
#disciplines-layout .cluster-number{background:var(--ink);color:#fff;font-size:15px;width:1.8em;height:1.8em}

/* Disciplines: a bar of each field's and discipline's resources by kind, in the key's colours (kinds_bar.html). */
/* A row's bar sits in a fixed track and runs to its share of the largest discipline; the field's bar has its own line. */
Expand Down
2 changes: 0 additions & 2 deletions assets/css/doors/hub.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
.tool:hover h3 a{text-decoration-thickness:2px}
.tool:focus-within{outline:3px solid var(--ink);outline-offset:2px;background:var(--tint)}
.tool h3 a:focus-visible{outline:none}
/* Each stage's starting point keeps its emphasis as a title in the stage colour. */
.tool:first-child h3 a{color:var(--tone)}
@media(max-width:600px){
.tool{grid-template-columns:1fr;padding:12px 4px}
.tool p.tool-format,.tool h3,.tool p:not(.tool-format){grid-column:1;grid-row:auto}
Expand Down
2 changes: 2 additions & 0 deletions assets/css/doors/inner.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ ul.network-icon{display:flex;flex-wrap:wrap;gap:6px 10px;margin:6px 0 0;padding:
ul.network-icon li{margin:0}
ul.network-icon a{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:18px;color:var(--link)}
ul.network-icon a:hover{color:var(--ink)}
/* Academicons' Google Scholar glyph is drawn narrower and thinner than Font Awesome's icons; scale and weight it to match. */
ul.network-icon .ai-google-scholar{font-size:1.24em;line-height:1;-webkit-text-stroke:.35px currentColor}
.cite-dialog{width:min(640px,calc(100% - 32px));padding:22px;border:0;border-radius:var(--r-large);background:var(--page);color:var(--ink)}
.cite-dialog::backdrop{background:rgba(38,45,53,.55)}
.cite-dialog h2{font-size:26px}
Expand Down
10 changes: 9 additions & 1 deletion assets/css/doors/resources.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@
.filters{background:var(--surface);border-radius:var(--r-large);padding:22px 20px;min-width:0}
.filter-drawer>summary{list-style:none;font-weight:700;line-height:1.35}
.filter-drawer>summary::-webkit-details-marker{display:none}
/* When open, the three facet legends are right below, so don't repeat them in the summary. */
.filter-drawer[open] .filter-summary-detail{display:none}
.filter-badge{font-weight:600}
.facet{border:0;margin:18px 0 0;padding:0;min-width:0}
.filter-title{padding:0;font:var(--display-weight) 20px/1.2 var(--display);margin:0 0 10px;color:var(--ink)}
.chips{display:flex;flex-wrap:wrap;gap:7px}
.chip{display:inline-flex;align-items:baseline;gap:7px;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:7px 12px;font:400 15px/1.3 var(--text);color:var(--ink);text-align:start;max-width:100%;cursor:pointer}
.chip:hover{border-color:var(--ink)}
.chip[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.chip-count{color:var(--soft);font-size:15px;font-weight:600}
.chip-count{color:var(--soft);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.chip[aria-pressed=true] .chip-count{color:inherit}
/* Cluster filters have multi-word names: stack as uniform full-width rows (two-line height at normal text size, expanding for longer labels or enlarged text) with colour swatch left and count right. */
.facet[data-facet="cluster"] .chips{flex-direction:column;gap:6px}
.facet[data-facet="cluster"] .chip{width:100%;min-height:56px;box-sizing:border-box;align-items:center;border-radius:var(--r-small);padding:8px 12px;gap:9px}
.facet[data-facet="cluster"] .chip-label{flex:1 1 auto;min-width:0;line-height:1.3}
.facet[data-facet="cluster"] .chip-count{margin-inline-start:auto;flex:none}
.filter-note{margin:12px 0 0;font-size:16px}
.catalogue{min-width:0}
.search-label{display:block;font:var(--display-weight) 22px/1.2 var(--display);margin:0 0 10px}
Expand Down Expand Up @@ -47,6 +54,7 @@
.collection-note{margin-top:64px;max-width:44em}
.collection-note h2{font-size:clamp(28px,2.6vw,36px);margin:0 0 10px}
.collection-note p{margin:0 0 12px}
.collection-history{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);max-width:44em}
.collection-about p{font-size:16px;line-height:1.55;margin-top:16px}
.collection-about a{color:var(--link);text-decoration:underline;text-underline-offset:3px}

Expand Down
1 change: 1 addition & 0 deletions assets/css/doors/sections.css
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ html:has(.contributor-az:not([hidden])){scroll-padding-top:calc(var(--contributo
.lesson-plan-pair>div>:is(h2,h3):first-child{margin-top:48px}
}
.article-layout .article-style .lesson-plan-sheet>h3{margin-top:36px}
@media(min-width:761px){.narrow-screen-only{display:none}}
.lesson-plan-motivation{display:flex;flex-direction:column}
/* The note on the article about the plans is a pale side panel, so it reads as an aside to the motivation. */
.article-layout .article-style .lesson-plan-article{order:1;margin:8px 0 0;padding:20px 22px;background:var(--edu-bg);border-radius:var(--r-large)}
Expand Down
29 changes: 19 additions & 10 deletions assets/js/doors/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const PER_OPTIONS = [...perSelect.options].map((option) => Number(option.value))

// What the page shows with nothing chosen, restored when the last filter goes.
const serverCards = [...results.children];
const serverCount = countLine.textContent;
const serverCount = countLine.innerHTML;
const serverCountText = countLine.textContent;

let data = null;
let searchText = null;
Expand All @@ -43,7 +44,7 @@ let page = serverPage;
let orders = null;

const chipsOf = (facet) => [...facet.querySelectorAll('.chip')];
const labelOf = (chip) => chip.firstChild.textContent.trim();
const labelOf = (chip) => (chip.querySelector('.chip-label') || chip.firstChild).textContent.trim();

function chosen() {
const picks = {};
Expand Down Expand Up @@ -210,24 +211,32 @@ function draw() {
});
});

// The order is part of the line, so a new sort is announced even when the range stays the same.
// The order stays in a visually-hidden span so screen readers still hear sort changes without repeating the sort menu.
const order = sort === 'newest' ? 'newest first' : 'A to Z';
const setCount = (visible, hiddenOrder) => {
countLine.textContent = visible;
if (hiddenOrder) {
const sr = document.createElement('span');
sr.className = 'visually-hidden';
sr.textContent = `, ${hiddenOrder}`;
countLine.append(sr);
}
};
if (asServed) {
results.replaceChildren(...serverCards);
countLine.textContent = serverCount;
countLine.innerHTML = serverCount;
} else {
const first = (page - 1) * per;
const shown = hits.slice(first, first + per);
results.replaceChildren(...shown.map(drawCard));
const noun = filtering ? 'matching resources' : 'resources';
const from = filtering ? `, from ${total}` : '';
if (!hits.length) countLine.textContent = `No matching resources, from ${total}`;
if (!hits.length) setCount(`No matching resources, from ${total}`);
else if (pages === 1) {
countLine.textContent = hits.length === 1
? `Showing 1 matching resource, from ${total}`
: `Showing all ${fmt(hits.length)} ${noun}, ${order}${from}`;
if (hits.length === 1) setCount(`Showing 1 matching resource, from ${total}`);
else setCount(`Showing all ${fmt(hits.length)} ${noun}${from}`, order);
} else {
countLine.textContent = `Showing ${fmt(first + 1)}–${fmt(first + shown.length)} of ${fmt(hits.length)} ${noun}, ${order}${from}`;
setCount(`Showing ${fmt(first + 1)}–${fmt(first + shown.length)} of ${fmt(hits.length)} ${noun}${from}`, order);
}
}
if (pager) pager.hidden = !asServed;
Expand Down Expand Up @@ -386,5 +395,5 @@ fetch(root.dataset.directoryUrl)
draw();
})
.catch(() => {
countLine.textContent = `${serverCount}. Filters could not be loaded, so please use the page links below.`;
countLine.textContent = `${serverCountText}. Filters could not be loaded, so please use the page links below.`;
});
15 changes: 13 additions & 2 deletions assets/js/doors/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,17 @@ if (termFilter && termGrid) {
window.addEventListener('hashchange', openAbout);
openAbout();
} else if (termFilter) {
if (!termFilter.placeholder) {
const lang = (document.documentElement.lang || 'en').slice(0, 2).toLowerCase();
const placeholders = {
en: 'e.g. replication',
de: 'z. B. Replikation',
ar: 'اكتب مصطلحًا',
tr: 'Bir terim yazın',
zh: '输入术语',
};
termFilter.placeholder = placeholders[lang] || placeholders.en;
}
const terms = [...document.querySelectorAll('.term-list li')];
// A count, a no-results line and a clear button under the filter.
const status = document.createElement('p');
Expand All @@ -912,14 +923,14 @@ if (termFilter && termGrid) {
status.textContent = !query ? '' : shown ? `${shown} ${shown === 1 ? 'term' : 'terms'}` : 'No matching terms.';
clearTerms.hidden = !query;
});
// On a phone the list moves up, into a "Find another term" disclosure right after the definition.
// On a phone the list moves up, into a disclosure right after the definition, keeping the same label as desktop.
const card = document.getElementById('glossary-terms');
const definition = document.querySelector('.term-definition');
if (card && definition && window.matchMedia('(max-width: 1000px)').matches) {
const finder = document.createElement('details');
finder.className = 'term-finder';
const summary = document.createElement('summary');
summary.textContent = document.documentElement.lang.startsWith('en') ? 'Find another term' : (card.querySelector('h2')?.textContent || 'Find another term');
summary.textContent = card.querySelector('h2')?.textContent || 'List of terms';
finder.append(summary, card);
definition.after(finder);
document.querySelector('.term-list-jump')?.remove();
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[[main]]
name = "About FORRT"
url = ""
url = "about/us"
weight = 10
identifier = "about"

Expand Down
2 changes: 1 addition & 1 deletion content/about/booklet/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ summary = "Learn more about FORRT in the interactive flipbook below: If you pref
]
[[inside]]
key = "res"
title = "Metascience & Research"
title = "Meta-Science & Research"
pages = [
{ title = "Replications: FReD and the Annotator", page = 7, url = "replication-hub/" },
{ title = "Handbook for reproduction and replication studies", page = 8, url = "https://forrt.org/replication-handbook/" },
Expand Down
2 changes: 1 addition & 1 deletion content/about/get-involved/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ classtitle = ""
+++

{{< action_cards >}}
Join our Slack | Where most of FORRT's work and conversation happens | https://join.slack.com/t/forrt/shared_invite/zt-alobr3z7-NOR0mTBfD1vKXn9qlOKqaQ
Join FORRT's Slack | Where most of FORRT's work and conversation happens | https://join.slack.com/t/forrt/shared_invite/zt-alobr3z7-NOR0mTBfD1vKXn9qlOKqaQ
Find a project | Initiatives looking for collaborators right now | #get-involved
Get the newsletter | News, events and opportunities, in your inbox | #newsletter
{{< /action_cards >}}
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ To get a handle on how my students are doing, and if there are issues in the lab

{{< gform src="1FAIpQLScGCi7iACgmVBhFcE7G90oPwuTs-g9CQkrDmOUoQ4FvoT9CfA" width="100%" height="700px" alt="Loading..." >}}

<br><br>

If you would like the direct link to the Google Forms, [please follow this link.](https://docs.google.com/forms/d/e/1FAIpQLScGCi7iACgmVBhFcE7G90oPwuTs-g9CQkrDmOUoQ4FvoT9CfA/viewform)

Over time, I forget which new students I’ve given ‘key advice’ and expectations. So I made a document that I give to all new students. There is a different document for undergraduate Honours Thesis, MSc, and Ph.D. students, since my advice and expectations for those students differ. The document has basic things such as how many weeks ahead to give me drafts and that all students are expected to attend group meetings, and life things like you will work long hours sometimes, but this should be the exception, not the rule.
Expand All @@ -54,7 +52,5 @@ Reading papers is important but not urgent, so gets delayed. Every 6 months I re

Lastly, don't be afraid to try out new ways of mentoring, and toss things that don't work. I've tried a lot of things that just didn't work for my group, or didn't work for *this* group. I touch base frequently to see what works and doesn't, and student's like that I ask and it's adaptable.

<br>

----
*Editor's note*: The present text is an adapted version of a widely shared [Twitter thread](https://twitter.com/FlyBehaviour/status/1435285335743864835) that resonated with so many of us. We thought it was of general interest and deserved to be memorialized, and hence we approached Amanda to adapt the thread to post it here.
Loading
Loading