From 2fce80b347db16e79f2fff8a78d241256b3c071c Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Wed, 11 Oct 2017 20:42:42 +0200 Subject: [PATCH] Fix custom font size in edit-design & time font in example notification --- Resources/Plugins/edit-design/browser.js | 4 ++-- Resources/Scripts/pages/example.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Resources/Plugins/edit-design/browser.js b/Resources/Plugins/edit-design/browser.js index b29e8708..e8893b64 100644 --- a/Resources/Plugins/edit-design/browser.js +++ b/Resources/Plugins/edit-design/browser.js @@ -331,7 +331,7 @@ enabled(){ this.css.insert("#general_settings .cf { display: none !important }"); this.css.insert("#settings-modal .js-setting-list li:nth-child(3) { border-bottom: 1px solid #ccd6dd }"); - this.css.insert(".txt-base-smallest:not(.icon), .txt-base-largest:not(.icon) { font-size: "+this.config.fontSize+" !important }"); + this.css.insert("html[data-td-font] { font-size: "+this.config.fontSize+" !important }"); this.css.insert(".avatar { border-radius: "+this.config.avatarRadius+"% !important }"); let notificationScrollbarColor = null; @@ -507,7 +507,7 @@ enabled(){ $TDP.injectIntoNotificationsBefore(this.$token, "css", "</head>", ` <style type='text/css'> -.txt-base-smallest:not(.icon), .txt-base-largest:not(.icon) { font-size: ${this.config.fontSize} !important } +html[data-td-font] { font-size: ${this.config.fontSize} !important } .avatar { border-radius: ${this.config.avatarRadius}% !important } ${this.config.revertIcons ? ` diff --git a/Resources/Scripts/pages/example.html b/Resources/Scripts/pages/example.html index a455457f..75bd8d41 100644 --- a/Resources/Scripts/pages/example.html +++ b/Resources/Scripts/pages/example.html @@ -3,7 +3,7 @@ <div class="js-tweet tweet"> <header class="tweet-header"> <time class="tweet-timestamp js-timestamp pull-right txt-mute"> - <a target="_blank" rel="url" href="https://twitter.com/chylexmc" class="txt-small">0s</a> + <a target="_blank" rel="url" href="https://twitter.com/chylexmc" class="txt-size-variable--12">0s</a> </time> <a target="_blank" rel="user" href="https://twitter.com/chylexmc" class="account-link link-complex block"> <div class="obj-left item-img tweet-img">