Skip to content

Commit

Permalink
Merge pull request #1722 from Princeton-CDH/bugfix/1714-hebrew-script
Browse files Browse the repository at this point in the history
Use FrankRuhl for Hebrew translations (#1714)
  • Loading branch information
blms authored Jan 15, 2025
2 parents ce83c92 + 36c9353 commit d03cc7b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sitemedia/css/admin-local.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ a#needsreview:target {
}
/* need to apply these manually for overriding purposes */
.form-row .transcription p,
.form-row .transcription li {
.form-row .transcription li,
.form-row .translation[lang="he"] p,
.form-row .translation[lang="he"] li {
font-family: "FrankRuhl 1924 MF Medium", "Amiri", "Times New Roman", serif;
box-sizing: border-box;
}
Expand Down
10 changes: 9 additions & 1 deletion sitemedia/scss/components/_results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,21 @@ section#document-list {

.transcription {
@include typography.transcription-search;

}
.transcription,
.translation {
// arabic script
&[lang="ar"],
&[data-lang-script="arabic"],
span[lang="ar"] {
@include typography.arabic-transcription-search;
}
// hebrew script
&[lang="he"],
&[data-lang-script="hebrew"],
span[lang="he"] {
@include typography.transcription-search;
}
}

// related documents and entities
Expand Down
10 changes: 9 additions & 1 deletion sitemedia/scss/components/_transcription.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1498,13 +1498,21 @@
}
.transcription {
@include typography.transcription;

}
.transcription,
.translation {
// arabic script
&[lang="ar"],
&[data-lang-script="arabic"],
span[lang="ar"] {
@include typography.arabic-transcription;
}
// hebrew script
&[lang="he"],
&[data-lang-script="hebrew"],
span[lang="he"] {
@include typography.transcription;
}
}

// Manual (body-class based) theme overrides
Expand Down

0 comments on commit d03cc7b

Please sign in to comment.