-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* ==UserStyle== | ||
@name Custom fonts | ||
@namespace github.com/vednoc/custom-fonts | ||
@description Apply custom base font globally. | ||
@description Apply your favorite custom fonts with ease. | ||
@author vednoc <[email protected]> (https://github.com/vednoc) | ||
@homepageURL https://github.com/vednoc/custom-fonts | ||
@supportURL https://github.com/vednoc/custom-fonts/issues | ||
|
@@ -50,7 +50,7 @@ | |
'900 ': '900', | ||
} | ||
@var checkbox inputs 'Use monospace font in input areas' 0 | ||
@var checkbox inputs 'Use Mono font in input areas' 0 | ||
==/UserStyle== */ | ||
|
||
@-moz-document regexp("https?://.*") { | ||
|
@@ -82,25 +82,25 @@ | |
n += ':not(.diff-line-num):not(pre > code > span span)' | ||
n += ':not(.diff-viewer *)' // commit diff | ||
|
||
// Editors. | ||
// Exclude various text editors. | ||
n += ':not(.ace_editor):not(.ace_editor *)' // #2 | ||
n += ':not(.CodeMirror):not(.CodeMirror *)' | ||
n += ':not(.monaco-editor *)' | ||
n += ':not(#squire *)' // protonmail | ||
|
||
// Exclude Gmail composer and font menu. | ||
// Exclude Gmail composer and font menu. #3 | ||
n += ':not(div[jsaction][jslog] *)' | ||
n += ':not([id][style*="font-family"]):not([id][style*="font-family"] *)' | ||
|
||
// Exclude utility classes for fonts. | ||
n += ':not(.monospace):not(.text-mono)' | ||
|
||
// Feat: change base font in input areas. | ||
// Feat: use mono font in input areas. | ||
if inputs { | ||
// Exclude inputs of button type. #6 | ||
n += ':not(input:not([type=button])):not(textarea)' | ||
|
||
// Use monospace input font on Discord. | ||
// Use mono input font on Discord. | ||
n += ':not([data-slate-editor=true] *)' | ||
n += ':not([class*="channelTextArea-"] *)' | ||
|
||
|