Web version displays italicized words as monospace, without italics

Aperta
#2,002 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
css
Ambito
documentation

Direzione di ricerca

Locate the #documentation #main p em CSS rule shown in the issue and inspect how it affects em elements in the HTML documentation. Adjust the styling so italicized terms render as italics rather than monospace, then compare the HTML examples with the PDF presentation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Several jargon terms are marked with italics in the PDF version. For example, staged in section The Three States, or remote in section The Refspec.

In the HTML version though, these terms are <em> elements which are formatted as monospace rather than italics. This is due to the following CSS rule, which overrides UA stylesheets:

#documentation #main p em {
  font-family: Courier,monospace !important;
  font-variant-ligatures: none;
  font-style: normal;
  font-weight: 700;
  color: #4e443c;
}

In several cases (jargon terms), it might be sensible to use monospace, but "disabling" italics seems misguided, making the format both less common and harder to distinguish from code fragments. For sure, the format would better be consistent regardless of the version.

Lingua principale
CSS
Stelle
6.6k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di progit/progit2

Tutte le issue di progit/progit2

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.