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
2 changes: 1 addition & 1 deletion assets/css/inner.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ html.media-dialog-gutter{scrollbar-gutter:stable}

/* Forced colours drop backgrounds, so filled buttons need an edge, and the dark logo needs a light plate. */
@media (forced-colors:active){
.head-join,.cc-window.cc-window .cc-btn,.newsletter-submit,.btn,.tower-entry,.motion-toggle{border:2px solid ButtonText!important}
.head-join,.cc-window.cc-window .cc-btn,.newsletter-submit,.gform-submit,.btn,.tower-entry,.motion-toggle{border:2px solid ButtonText!important}
.media-dialog,.media-dialog-close{border:2px solid CanvasText}
.brand img{background:#fff;padding:2px;border-radius:4px;forced-color-adjust:none}
}
Expand Down
2 changes: 1 addition & 1 deletion assets/data/community_map_slack.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Anchorage,2,61.2163129,-149.894852
Athens,22,37.98381,23.72754
Auckland,3,-36.852095,174.7631803
Baghdad,2,33.3061701,44.3872213
Bahia,2,-12.285251,-41.9294776
Bahia,2,-12.9714,-38.5014
Bangkok,10,13.7524938,100.4935089
Belgrade,38,44.8153318,20.4456588
Bogota,19,4.6533817,-74.0836331
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/area_plate.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/* An area plate without its ground shadow, so the bricks centre in their door.
Context: dict "image" (name in assets/images/), "alt", optional "lazy".
Context: dict "image" (base name in assets/images/, such as "area-education", which needs a -bricks copy), "alt", optional "lazy".
The -bricks copies come from scripts/area_plate_bricks.py. */}}
{{ $image := resources.Get (printf "images/%s-bricks.webp" .image) }}
<div class="area-plate"><img src="{{ $image.RelPermalink }}" alt="{{ .alt }}" width="{{ $image.Width }}" height="{{ $image.Height }}"{{ if .lazy }} loading="lazy"{{ end }}></div>
{{ $alt := .alt }}{{ $lazy := .lazy }}{{ $name := .image }}
{{ with resources.Get (printf "images/%s-bricks.webp" .image) }}<div class="area-plate"><img src="{{ .RelPermalink }}" alt="{{ $alt }}" width="{{ .Width }}" height="{{ .Height }}"{{ if $lazy }} loading="lazy"{{ end }}></div>{{ else }}{{ errorf "area_plate: no images/%s-bricks.webp" $name }}{{ end }}
2 changes: 1 addition & 1 deletion layouts/partials/clusters/rich_text.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- /* Publication titles from Crossref: plain text plus <i>, <em> and <scp> markup, sometimes
with HTML entities. Escape everything, then restore only those tags (scp as small caps).
static/js/featured-resources.js has the same rule (richText). */ -}}
static/js/featured-resources.js has the same rule for markup that is not nested (richText). */ -}}
{{- $s := . | default "" | htmlUnescape | replaceRE `[\s\x{00A0}]+` " " | strings.TrimSpace | htmlEscape -}}
{{- $s = replaceRE `&lt;i&gt;(.*?)&lt;/i&gt;` "<i>$1</i>" $s -}}
{{- $s = replaceRE `&lt;em&gt;(.*?)&lt;/em&gt;` "<i>$1</i>" $s -}}
Expand Down
Loading