Prevent code with Ubuntu or Ubuntu Mono font from being uppercased

* Ubuntu or Ubuntu Mono fonts were being uppercased when in combination
  with a font-feature-setting called 'case'.

* Set the font feature settings to for <code> tags to 'normal' so
  that the Ubuntu Mono font is not being uppercased

* Put back in the 'case' font-feature setting for the body
This commit is contained in:
Mario Blokland 2018-09-04 08:51:27 +02:00
parent c974919076
commit 37e6fba1bd
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@ body {
color: var(--light-color); color: var(--light-color);
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-feature-settings: "liga", "tnum", "calt", "zero", "ss01", "locl"; font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
@ -83,6 +83,7 @@ img {
code { code {
font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace; font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
font-feature-settings: normal;
background: var(--light-background-secondary); background: var(--light-background-secondary);
padding: 1px 6px; padding: 1px 6px;
margin: 0 2px; margin: 0 2px;

File diff suppressed because one or more lines are too long