Skip to content

Commit

Permalink
Standardize heading font size options, add larger size (#3498)
Browse files Browse the repository at this point in the history
* Add gigantic heading size.

* Use global translations in multirow.

* Standardize heading font size offerings.

* Change "Gigantic" to "Giant"

* Set line height for new font size.

* Update 10 translation files

* Decrease Giant font size, update line height too.

* Define line height for hxl.

* Fix incorrect reference.

* Set large line height to 1.1 all the time.

* Adjust `vw` value in clamp so that the Giant font size is always larger than the Extra Large.

* Change string to "Extra Extra Large"

* Change text case.

* Update 13 translation files

* Update 4 translation files

* Update 2 translation files

* Update 1 translation file

---------

Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com>
  • Loading branch information
kjellr and translation-platform[bot] authored Jun 7, 2024
1 parent 7a917b8 commit 4b7a19b
Show file tree
Hide file tree
Showing 40 changed files with 213 additions and 256 deletions.
6 changes: 6 additions & 0 deletions assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,14 @@ h5,
word-break: break-word;
}

.hxxl {
font-size: clamp(calc(var(--font-heading-scale) * 5.6rem), 14vw, calc(var(--font-heading-scale) * 7.2rem));
line-height: 1.1;
}

.hxl {
font-size: calc(var(--font-heading-scale) * 5rem);
line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale)));
}

@media only screen and (min-width: 750px) {
Expand Down
15 changes: 3 additions & 12 deletions locales/cs.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Extra velká"
},
"options__5": {
"label": "Extra extra velká"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Šířka obrázku v počítači",
"info": "Obrázek se automaticky optimalizuje pro mobilní prostředí."
},
"heading_size": {
"options__1": {
"label": "Malý"
},
"options__2": {
"label": "Střední"
},
"options__3": {
"label": "Velký"
},
"label": "Velikost nadpisu"
},
"text_style": {
"options__1": {
"label": "Hlavní část"
Expand Down
15 changes: 3 additions & 12 deletions locales/da.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Ekstra stor"
},
"options__5": {
"label": "Ekstra, ekstra stor"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Billedbredde på computer",
"info": "Billedet er automatisk optimeret til mobiltelefoner."
},
"heading_size": {
"options__1": {
"label": "Lille"
},
"options__2": {
"label": "Mellem"
},
"options__3": {
"label": "Stor"
},
"label": "Størrelse for overskrift"
},
"text_style": {
"options__1": {
"label": "Brødtekst"
Expand Down
15 changes: 3 additions & 12 deletions locales/de.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Extra groß"
},
"options__5": {
"label": "Extra, extra groß"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Desktop-Bildbreite",
"info": "Bild wird automatisch für die mobile Nutzung optimiert."
},
"heading_size": {
"options__1": {
"label": "Klein"
},
"options__2": {
"label": "Mittel"
},
"options__3": {
"label": "Groß"
},
"label": "Größe der Überschrift"
},
"text_style": {
"options__1": {
"label": "Nachricht"
Expand Down
15 changes: 3 additions & 12 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@
},
"options__4": {
"label": "Extra large"
},
"options__5": {
"label": "Extra extra large"
}
},
"image_shape": {
Expand Down Expand Up @@ -1544,18 +1547,6 @@
"label": "Desktop image width",
"info": "Image is automatically optimized for mobile."
},
"heading_size": {
"options__1": {
"label": "Small"
},
"options__2": {
"label": "Medium"
},
"options__3": {
"label": "Large"
},
"label": "Heading size"
},
"text_style": {
"options__1": {
"label": "Body"
Expand Down
15 changes: 3 additions & 12 deletions locales/es.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Extra grande"
},
"options__5": {
"label": "Superextragrande"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Ancho de la imagen en la computadora",
"info": "La imagen se optimiza automáticamente para el celular."
},
"heading_size": {
"options__1": {
"label": "Pequeña"
},
"options__2": {
"label": "Mediana"
},
"options__3": {
"label": "Grande"
},
"label": "Tamaño del título"
},
"text_style": {
"options__1": {
"label": "Cuerpo"
Expand Down
15 changes: 3 additions & 12 deletions locales/fi.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Erittäin suuri"
},
"options__5": {
"label": "XXL"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Työpöytäkuvan leveys",
"info": "Kuva optimoidaan automaattisesti mobiililaitteille."
},
"heading_size": {
"options__1": {
"label": "Pieni"
},
"options__2": {
"label": "Keskisuuri"
},
"options__3": {
"label": "Suuri"
},
"label": "Otsikon koko"
},
"text_style": {
"options__1": {
"label": "Leipäteksti"
Expand Down
15 changes: 3 additions & 12 deletions locales/fr.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Très grand"
},
"options__5": {
"label": "Très très grand"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Largeur de l’image sur ordinateur",
"info": "L’image est automatiquement optimisée pour les mobiles."
},
"heading_size": {
"options__1": {
"label": "Petit"
},
"options__2": {
"label": "Moyenne"
},
"options__3": {
"label": "Grand"
},
"label": "Taille du titre"
},
"text_style": {
"options__1": {
"label": "Corps"
Expand Down
15 changes: 3 additions & 12 deletions locales/it.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Extra large"
},
"options__5": {
"label": "Extra extra large"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Larghezza immagine su desktop",
"info": "L'immagine viene automaticamente ottimizzata per il mobile."
},
"heading_size": {
"options__1": {
"label": "Piccola"
},
"options__2": {
"label": "Media"
},
"options__3": {
"label": "Grande"
},
"label": "Dimensione titolo"
},
"text_style": {
"options__1": {
"label": "Corpo"
Expand Down
15 changes: 3 additions & 12 deletions locales/ja.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "特大"
},
"options__5": {
"label": "4L"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "デスクトップ画像の幅",
"info": "画像はモバイル用に自動で最適化されます。"
},
"heading_size": {
"options__1": {
"label": ""
},
"options__2": {
"label": ""
},
"options__3": {
"label": ""
},
"label": "見出しのサイズ"
},
"text_style": {
"options__1": {
"label": "本文"
Expand Down
15 changes: 3 additions & 12 deletions locales/ko.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "특대"
},
"options__5": {
"label": "매우 매우 크게"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "데스크톱 이미지 너비",
"info": "이미지는 자동으로 모바일에 최적화됩니다."
},
"heading_size": {
"options__1": {
"label": "작게"
},
"options__2": {
"label": "보통"
},
"options__3": {
"label": "크게"
},
"label": "제목 크기"
},
"text_style": {
"options__1": {
"label": "본문"
Expand Down
15 changes: 3 additions & 12 deletions locales/nb.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Ekstra stort"
},
"options__5": {
"label": "Ekstra ekstra stor"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Bildebredde på datamaskiner",
"info": "Bildet optimaliseres automatisk for mobil."
},
"heading_size": {
"options__1": {
"label": "Liten"
},
"options__2": {
"label": "Medie"
},
"options__3": {
"label": "Stor"
},
"label": "Overskriftsstørrelse"
},
"text_style": {
"options__1": {
"label": "Brødtekst"
Expand Down
15 changes: 3 additions & 12 deletions locales/nl.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Extra groot"
},
"options__5": {
"label": "Extra extra groot"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Breedte van bureaubladafbeelding",
"info": "De afbeelding wordt automatisch geoptimaliseerd voor mobiel."
},
"heading_size": {
"options__1": {
"label": "Klein"
},
"options__2": {
"label": "Gemiddeld"
},
"options__3": {
"label": "Groot"
},
"label": "Grootte koptekst"
},
"text_style": {
"options__1": {
"label": "Hoofdtekst"
Expand Down
15 changes: 3 additions & 12 deletions locales/pl.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
},
"options__4": {
"label": "Bardzo duży"
},
"options__5": {
"label": "Bardzo, bardzo duży"
}
},
"image_shape": {
Expand Down Expand Up @@ -3289,18 +3292,6 @@
"label": "Szerokość obrazu na komputerze",
"info": "Obraz jest automatycznie optymalizowany dla urządzeń mobilnych."
},
"heading_size": {
"options__1": {
"label": "Mały"
},
"options__2": {
"label": "Średni"
},
"options__3": {
"label": "Duży"
},
"label": "Rozmiar nagłówka"
},
"text_style": {
"options__1": {
"label": "Tekst podstawowy"
Expand Down
Loading

0 comments on commit 4b7a19b

Please sign in to comment.