Skip to content

Commit 8261fed

Browse files
authored
Merge pull request #351 from processing/text-styles
Text style fixes
2 parents d58dea8 + b484d2f commit 8261fed

15 files changed

Lines changed: 110 additions & 33 deletions

File tree

src/components/Footer/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const t = await getUiTranslator(currentLocale);
77
---
88

99
<footer
10-
class="border-t border-black grid-cols-3 lg:grid-cols-4 grid gap-x-[40px] text-xl lg:text-xl pt-md pb-5 px-lg bg-accent-color text-accent-type-color content-start"
10+
class="text-body border-t border-black grid-cols-3 lg:grid-cols-4 grid gap-x-[40px] pt-md pb-5 px-lg bg-accent-color text-accent-type-color content-start"
1111
>
1212
<div class="grid lg:row-span-2 grid-rows-subgrid">
1313
<div>

src/components/Nav/JumpToLinks.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const JumpToLinks = ({
2626
tabIndex={-1}
2727
>
2828
<span>{heading}</span>
29-
<div class="pt-xs">
29+
<div class="pt-[6px]">
3030
<Icon kind={isOpen ? "chevron-up" : "chevron-down"} />
3131
</div>
3232
</button>
@@ -35,10 +35,7 @@ export const JumpToLinks = ({
3535
{links?.map((link) => (
3636
<li
3737
key={link.label}
38-
class={`
39-
${link.size === "small" ? "text-body-caption" : "text-body capitalize"}
40-
${link.current ? "underline" : ""}
41-
`}
38+
class={`${styles.linklabel} ${link.size ?? ""} ${link.current ? "current" : ""}`}
4239
>
4340
<a href={link.url}>{link.label}</a>
4441
</li>

src/components/Nav/MainNavLinks.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ export const MainNavLinks = ({
4242
<Logo />
4343
</a>
4444

45-
<button
46-
class={styles.toggle}
47-
onClick={handleToggle}
48-
aria-hidden="true"
49-
tabIndex={-1}
50-
>
45+
<button onClick={handleToggle} aria-hidden="true" tabIndex={-1}>
5146
<div class={styles.mobileMenuLabel}>
5247
{isOpen ? (
5348
<Icon kind="close" />

src/components/Nav/styles.module.scss

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "/styles/variables.scss";
2+
@import "/styles/global.scss";
23

34
.container {
45
height: fit-content;
@@ -39,6 +40,13 @@
3940
height: unset;
4041
}
4142

43+
ul {
44+
font-size: 1.5rem;
45+
line-height: 1.167;
46+
-webkit-text-stroke-width: 0.15px;
47+
margin-bottom: var(--spacing-xs);
48+
}
49+
4250
@media (min-width: $breakpoint-tablet) {
4351
display: grid;
4452
grid-auto-flow: column;
@@ -58,11 +66,14 @@
5866
display: flex;
5967
gap: var(--spacing-xs);
6068
padding: 0;
61-
margin-bottom: var(--spacing-xs);
69+
margin-bottom: 10px;
6270
}
6371

6472
ul {
6573
grid-column: 1 / 2;
74+
font-size: 1.25rem;
75+
line-height: 1.2;
76+
-webkit-text-stroke-width: 0.15px;
6677
}
6778

6879
&:global(.open),
@@ -81,13 +92,14 @@
8192
top: -0.25rem;
8293

8394
svg {
84-
height: 1.25rem;
85-
width: 1.25rem;
95+
height: 1rem;
96+
width: 1rem;
8697
}
8798
@media (min-width: $breakpoint-tablet) {
8899
display: none !important;
89100
}
90101
}
102+
91103
.desktopMenuLabel {
92104
display: none;
93105
@media (min-width: $breakpoint-tablet) {
@@ -130,6 +142,10 @@
130142
display: grid;
131143
grid-template-columns: 1fr 1fr;
132144
padding: var(--spacing-sm) 1.25rem;
145+
font-size: 1.5rem;
146+
line-height: 1.167;
147+
-webkit-text-stroke-width: 0.15px;
148+
max-height: 300px;
133149

134150
/* Hide scrollbar */
135151
// Chrome, Safari, Edge, Opera
@@ -165,10 +181,17 @@
165181
ul {
166182
padding-bottom: var(--spacing-md);
167183
display: inline-block;
184+
font-size: 1rem;
185+
line-height: 1.25;
186+
-webkit-text-stroke-width: 0.05px;
168187
}
169188
}
170189
}
171190

191+
:global(.reference-item) .jumpto ul {
192+
grid-template-columns: 1fr;
193+
}
194+
172195
.buttonlink {
173196
display: flex;
174197
width: 100%;
@@ -182,6 +205,38 @@
182205
color: var(--sidebar-bg-color);
183206
text-decoration: none;
184207
}
208+
font-size: 1.5rem;
209+
line-height: 1.167;
210+
-webkit-text-stroke-width: 0.15px;
211+
212+
@media (min-width: $breakpoint-tablet) {
213+
font-size: 1.25rem;
214+
line-height: 1.2;
215+
-webkit-text-stroke-width: 0.15px;
216+
}
217+
}
218+
219+
.linklabel {
220+
&:global(.current) {
221+
text-decoration-line: underline;
222+
}
223+
224+
&:not(:global(.small)) {
225+
font-size: 1.5rem;
226+
line-height: 1.167;
227+
-webkit-text-stroke-width: 0.15px;
228+
}
229+
&:global(.small) {
230+
@extend .text-body;
231+
}
232+
233+
@media (min-width: $breakpoint-tablet) {
234+
&:not(&:global(.small)) {
235+
font-size: 1.25rem;
236+
line-height: 1.2;
237+
-webkit-text-stroke-width: 0.15px;
238+
}
239+
}
185240
}
186241

187242
/* Interaction */

src/components/PageHeader/ItemPage.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ const { title, topic, subtitle } = Astro.props;
2525
<span>{title}</span>
2626
</div>
2727
<h1 class="whitespace-pre-line my-sm">{title}</h1>
28-
{subtitle && <p class="text-2xl">{subtitle}</p>}
28+
{subtitle && <p class="text-h3">{subtitle}</p>}
2929
</div>

src/components/PageHeader/RootPage.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ const borderStyle = isFilterRoute ? "" : "border-b border-sidebar-type-color";
1515
class=`min-h-[350px] h-[50vh] pt-5xl lg:pt-4xl bg-accent-color text-accent-type-color pb-md px-5 md:px-lg ${borderStyle}`
1616
>
1717
<h1 class="whitespace-pre-line">{title}</h1>
18-
<p class="text-xl md:text-2xl mb-3xl">{subtitle}</p>
18+
<p class="text-h3 mt-0 mb-3xl">{subtitle}</p>
1919
</div>

src/content/text-detail/en/about.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@ import LinkButton from '../../../components/LinkButton/index.astro'
55

66
## What is p5.js
77

8+
<div class='text-body-large'>
89
p5.js is a friendly tool for learning to code and make art. It is a free and open-source JavaScript library built by an inclusive, nurturing community. p5.js welcomes artists, designers, beginners, educators, and anyone else!
910

1011
p5.js prioritizes accessibility, inclusivity, community, and joy. It makes sketching with code as intuitive as sketching in a notebook. p5.js supports audio-visual, interactive, and experimental works for the web. It is accessible in many languages and has expansive documentation with visual examples. You can start coding right now in the web editor, and there are lots of tutorials to help. You can also expand p5.js with many community-created libraries. p5.js is always looking for contributors and appreciates involvement in all forms.
1112

1213
p5.js encourages iterative coding for creative expression. We value open source and access for all. Our community provides inspiration and support to learn, create, imagine, design, share, and code freely.
14+
</div>
1315

1416
<hr/>
1517

1618
## Community Statement
1719

20+
<div class='text-body-large'>
1821
The p5.js community shares an interest in exploring the creation of art and design with technology. We are a community of, and in solidarity with, people from every gender identity and expression, sexual orientation, race, ethnicity, language, neuro-type, size, disability, class, caste, religion, culture, subculture, immigration status, age, skill level, occupation, and background. We stand in solidarity with justice and liberation movements. We work to acknowledge, dismantle, and prevent barriers to access p5.js code and the p5.js community.
1922

2023
Community values:
@@ -23,7 +26,7 @@ Community values:
2326
- We always try to offer help or guidance when we can, and we engage actively with feedback.
2427
- We acknowledge that not everyone has the time, financial means, or capacity to participate actively, but we recognize and encourage contributions of all kinds.
2528
- We approach conflict as a natural part of community and an invitation to re-align with our values. We collectively uphold and follow our Code of Conduct to ensure accountability in our community.
26-
29+
</div>
2730

2831
<div class='mt-xl'>
2932
<LinkButton variant='link' url='/access'>Access Statement</LinkButton>

src/content/text-detail/es/about.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ import LinkButton from '../../../components/LinkButton/index.astro'
55

66
## ¿Qué es p5.js?
77

8+
<div class='text-body-large'>
89
p5.js es una herramienta amigable para aprender a programar y hacer arte. Es una biblioteca de JavaScript libre y de código abierto construida por una comunidad inclusiva y solidaria. ¡p5.js da la bienvenida a artistas, diseñadores, principiantes, educadores y cualquier otra persona!
910

1011
p5.js prioriza la accesibilidad, la inclusión, la comunidad y la alegría. Hace que dibujar con código sea tan intuitivo como dibujar en un cuaderno. p5.js admite obras audiovisuales, interactivas y experimentales para la web. Es accesible en muchos idiomas y tiene una documentación expansiva con ejemplos visuales. Puedes comenzar a programar ahora mismo en el editor web, ahí encontrarás muchos tutoriales para ayudarte. También puedes ampliar p5.js con muchas bibliotecas creadas por la comunidad. p5.js siempre está buscando colaboradores y aprecia la participación en todas sus formas.
1112

1213
p5.js fomenta la programación iterativa para la expresión creativa. Valoramos el código abierto y el acceso para todos. Nuestra comunidad proporciona inspiración y apoyo para aprender, crear, imaginar, diseñar, compartir y programar libremente.
14+
</div>
1315

1416
## Declaración de la comunidad
1517

18+
<div class='text-body-large'>
1619
La comunidad de p5.js comparte un interés en explorar la creación de arte y diseño con tecnología. Somos una comunidad de, y en solidaridad con, personas de todas las identidades y expresiones de género, orientaciones sexuales, razas, etnias, idiomas, neurotipos, tamaños, discapacidades, clases, castas, religiones, culturas, subculturas, estatus migratorio, edades, niveles de habilidad, ocupaciones y antecedentes. Nos solidarizamos con los movimientos de justicia y liberación. Trabajamos para reconocer, desmantelar y prevenir barreras de acceso al código de p5.js y a la comunidad de p5.js.
1720

1821
Valores de la comunidad:
@@ -21,6 +24,7 @@ Valores de la comunidad:
2124
- Siempre intentamos ofrecer ayuda o orientación cuando podemos, y nos comprometemos activamente con los comentarios.
2225
- Reconocemos que no todos tienen el tiempo, los medios financieros o la capacidad para participar activamente, pero reconocemos y alentamos contribuciones de todo tipo.
2326
- Abordamos el conflicto como una parte natural de la comunidad y una invitación a realinearnos con nuestros valores. Colectivamente mantenemos y seguimos nuestro Código de Conducta para garantizar la rendición de cuentas en nuestra comunidad.
27+
</div>
2428

2529
<div class='mt-xl'>
2630
<LinkButton variant='link' url='/access'>Access Statement</LinkButton>

src/content/text-detail/hi/about.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ import LinkButton from '../../../components/LinkButton/index.astro'
55

66
## p5.js क्या है
77

8+
<div class='text-body-large'>
89
p5.js कोड करना और कला बनाना सीखने के लिए एक अनुकूल उपकरण है। यह एक नि:शुल्क और ओपन-सोर्स जावास्क्रिप्ट लाइब्रेरी है जो एक समावेशी, पोषित समुदाय द्वारा बनाई गई है। p5.js कलाकारों, डिज़ाइनरों, नौसिखिया, शिक्षकों और किसी अन्य का भी स्वागत करता है!
910

1011
p5.js अभिगम्यता, समावेशिता, समुदाय और आनंद को प्राथमिकता देता है। यह कोड के साथ स्केचिंग को नोटबुक में स्केचिंग के समान सहज बनाता है। p5.js वेब के लिए ऑडियो-विज़ुअल, इंटरैक्टिव और प्रयोगात्मक कार्यों का समर्थन करता है। यह कई भाषाओं में उपलब्ध है और इसमें दृश्य उदाहरणों के साथ विस्तृत दस्तावेज़ीकरण है। आप अभी वेब संपादक में कोडिंग शुरू कर सकते हैं, और मदद के लिए बहुत सारे ट्यूटोरियल हैं। आप कई समुदाय-निर्मित पुस्तकालयों के साथ p5.js का विस्तार भी कर सकते हैं। p5.js हमेशा योगदानकर्ताओं की तलाश में रहता है और सभी रूपों में भागीदारी की सराहना करता है।
1112

1213
p5.js रचनात्मक अभिव्यक्ति के लिए पुनरावृत्त कोडिंग को प्रोत्साहित करता है। हम सभी के लिए ओपन-सोर्स और पहुंच को महत्व देते हैं। हमारा समुदाय स्वतंत्र रूप से सीखने, बनाने, कल्पना करने, डिज़ाइन करने, साझा करने और कोड करने के लिए प्रेरणा और नि:शुल्क सहायता प्रदान करता है।
14+
</div>
1315

1416
## सामुदायिक वक्तव्य
1517

18+
<div class='text-body-large'>
1619
P5.js समुदाय प्रौद्योगिकी के साथ कला और डिज़ाइन के निर्माण की खोज में रुचि रखता है। हम हर लिंग पहचान और अभिव्यक्ति, यौन अभिविन्यास, नस्ल, जातीयता, भाषा, न्यूरो-प्रकार, आकार, विकलांगता, वर्ग, जाति, धर्म, संस्कृति, उपसंस्कृति, आप्रवास स्थिति, उम्र, कौशल स्तर, पेशा और पृष्ठभूमि के लोगों का एक समुदाय हैं और उनके साथ एकजुटता रखते हैं। हम न्याय और मुक्ति आंदोलनों के साथ एकजुटता से खड़े हैं। हम p5.js कोड और p5.js समुदाय तक पहुँचने में आने वाली बाधाओं को स्वीकार करने, ख़त्म करने और रोकने के लिए काम करते हैं।
1720

1821
सामुदायिक मूल्य:
@@ -21,6 +24,7 @@ P5.js समुदाय प्रौद्योगिकी के साथ
2124
- जब भी संभव हो हम सहायता या मार्गदर्शन देने का प्रयास करते हैं और हम प्रतिक्रिया के साथ सक्रिय रूप से जुड़े रहते हैं।
2225
- हम स्वीकार करते हैं कि हर किसी के पास सक्रिय रूप से भाग लेने के लिए समय, वित्तीय साधन या क्षमता नहीं है, लेकिन हम सभी प्रकार के योगदानों को पहचानते हैं और प्रोत्साहित करते हैं।
2326
- हम संघर्ष को समुदाय का एक स्वाभाविक हिस्सा मानते हैं और इसे अपने मूल्यों के साथ फिर से जुड़ने का निमंत्रण मानते हैं। हम अपने समुदाय में जवाबदेही सुनिश्चित करने के लिए सामूहिक रूप से अपनी आचार संहिता का पालन करते हैं।
27+
</div>
2428

2529
<div class='mt-xl'>
2630
<LinkButton variant='link' url='/access'>प्रवेश विवरण</LinkButton>

src/content/text-detail/ko/about.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ import LinkButton from '../../../components/LinkButton/index.astro'
55

66
## p5.js란
77

8+
<div class='text-body-large'>
89
p5.js는 코딩을 배우고 예술을 만드는 친근한 도구입니다. 이는 포용적이고 육성적인 커뮤니티에 의해 만들어진 무료 오픈소스 자바스크립트 라이브러리입니다. p5.js는 예술가, 디자이너, 초심자, 교육자 및 여러분 모두를 환영합니다!
910

1011
p5.js는 접근성, 포용성, 커뮤니티 및 즐거움을 추구합니다. 이것은 코드로 스케치하는 것을 노트에 스케치하는 것과 같이 직관적으로 만들어줍니다. p5.js는 웹을 위한 오디오-비주얼, 대화형 및 실험적 작업을 지원합니다. 많은 언어권에서 접근 가능한 풍부한 시각적 예제 문서를 제공합니다. 웹 에디터에서 지금 코딩을 시작할 수 있으며 도움이 필요한 경우 많은 튜토리얼을 참조할 수 있습니다. 또한 많은 커뮤니티에서 만든 라이브러리로 p5.js를 확장할 수 있습니다. p5.js는 언제나 기여자를 찾고 모든 형태의 참여를 환영합니다.
1112

1213
p5.js는 창의적 표현을 위한 반복적인 코딩을 장려합니다. 우리는 오픈소스와 모든 이의 접근성을 중요시합니다. 우리 커뮤니티는 자유롭게 배우고, 만들고, 상상하고, 디자인하고, 공유하고, 코딩할 수 있는 영감과 지원을 제공합니다.
14+
</div>
1315

1416
## 커뮤니티 성명서
1517

18+
<div class='text-body-large'>
1619
p5.js 커뮤니티는 기술을 통해 예술과 디자인에 관련된 탐구와 관심을 공유합니다. 우리는 성 정체성과 표현, 성적 지향, 인종, 민족, 언어, 신경 유형, 체형, 장애, 계급, 카스트, 종교, 문화, 하위 문화, 이민자, 연령, 기술 수준, 직업 및 다양한 배경의 사람들로 이루어진 커뮤니티이며, 정의와 해방에 연대합니다. 우리는 p5.js 코드 및 p5.js 커뮤니티에 대한 진입 장벽을 인지하고 있으며 접근성 향상을 위해 노력합니다.
1720

1821
커뮤니티 가치:
@@ -21,6 +24,7 @@ p5.js 커뮤니티는 기술을 통해 예술과 디자인에 관련된 탐구
2124
- 우리는 가능한한 언제나 도움이나 지침을 제공하려 노력하고, 피드백에 적극적으로 응합니다.
2225
- 우리는 모든 사람들이 적극적으로 참여할 시간, 재정적 수단 또는 능력을 가지고 있지 않을 수 있음을 인정하고, 모든 기여를 인정하며 격려합니다.
2326
- 우리는 갈등을 커뮤니티의 자연스러운 부분으로 생각하며 우리의 가치를 재조정할 수 있는 기회로 생각합니다. 우리의 행동 강령을 준수하여 공동 커뮤니티에서 책임을 보장합니다.
27+
</div>
2428

2529
<div class='mt-xl'>
2630
<LinkButton variant='link' url='/access'>접근성 성명서</LinkButton>

0 commit comments

Comments
 (0)