1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-11 21:15:44 +02:00

Fix broken Arial font override

This commit is contained in:
chylex 2018-11-07 00:26:22 +01:00
parent 4476edb6c3
commit c251603e1e
2 changed files with 4 additions and 3 deletions
Core/Notification
Resources/Plugins/edit-design

View File

@ -59,7 +59,7 @@ public string GenerateHtml(string bodyClasses, Control sync){
build.Append("<style type='text/css'>").Append(customCSS).Append("</style>");
}
build.Append("</head><body class='scroll-styled-v system-font-stack");
build.Append("</head><body class='scroll-styled-v");
if (!string.IsNullOrEmpty(bodyClasses)){
build.Append(' ').Append(bodyClasses);

View File

@ -432,7 +432,8 @@ enabled(){
}
if (this.config.forceArialFont){
this.css.insert("#tduck .system-font-stack { font-family: Arial, sans-serif; font-weight: 400 }");
this.css.insert("#tduck { font-family: Arial, sans-serif; font-weight: 400 }");
this.css.insert("#tduck input, #tduck label, #tduck select, #tduck textarea { font-family: Arial }")
}
if (this.config.increaseQuoteTextSize){
@ -603,7 +604,7 @@ html[data-td-font] { font-size: ${this.config.fontSize} !important }
.avatar { border-radius: ${this.config.avatarRadius}% !important }
${this.config.forceArialFont ? `
#tduck .system-font-stack { font-family: Arial, sans-serif; font-weight: 400 }
#tduck { font-family: Arial, sans-serif; font-weight: 400 }
` : ``}
${this.config.increaseQuoteTextSize ? `