Compare commits

...

4 Commits

Author SHA1 Message Date
fe8267eccd
od-serif.user.css: more explicit fallback
Apparently for me serif-ui means Noto Sans Math, which is a bit unexpected
2024-06-06 06:49:17 +03:00
29c30dc899
browsers/usercss: add od-serif.user.css 2024-06-06 06:42:43 +03:00
1258266ebf
change-fonts.user.css: fallback to emoji 2024-06-06 06:38:55 +03:00
982e97f946
update/setup prettier 2024-06-06 06:37:26 +03:00
7 changed files with 156 additions and 7 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
.cache/**
*_original
browsers
node_modules
# ---> TeX
## Core latex/pdflatex auxiliary files:

View File

@ -68,13 +68,13 @@ repos:
- id: check-gitlab-ci
- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.2.5"
rev: "v3.3.0"
hooks:
- id: prettier
exclude_types: [json]
additional_dependencies: [
# https://www.npmjs.com/package/prettier
"prettier@3.2.5",
"prettier@3.3.1",
# https://www.npmjs.com/package/@prettier/plugin-xml
"@prettier/plugin-xml@3.4.1",
# https://www.npmjs.com/package/prettier-plugin-toml

1
.prettierrc Normal file
View File

@ -0,0 +1 @@
{}

7
package.json Normal file
View File

@ -0,0 +1,7 @@
{
"devDependencies": {
"@prettier/plugin-xml": "3.4.1",
"prettier": "3.3.1",
"prettier-plugin-toml": "2.0.1"
}
}

103
pnpm-lock.yaml generated Normal file
View File

@ -0,0 +1,103 @@
lockfileVersion: "9.0"
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
devDependencies:
"@prettier/plugin-xml":
specifier: 3.4.1
version: 3.4.1(prettier@3.3.1)
prettier:
specifier: 3.3.1
version: 3.3.1
prettier-plugin-toml:
specifier: 2.0.1
version: 2.0.1(prettier@3.3.1)
packages:
"@prettier/plugin-xml@3.4.1":
resolution:
{
integrity: sha512-Uf/6/+9ez6z/IvZErgobZ2G9n1ybxF5BhCd7eMcKqfoWuOzzNUxBipNo3QAP8kRC1VD18TIo84no7LhqtyDcTg==,
}
peerDependencies:
prettier: ^3.0.0
"@taplo/core@0.1.1":
resolution:
{
integrity: sha512-BG/zLGf5wiNXGEVPvUAAX/4ilB3PwDUY2o0MV0y47mZbDZ9ad9UK/cIQsILat3bqbPJsALVbU6k3cskNZ3vAQg==,
}
"@taplo/lib@0.4.0-alpha.2":
resolution:
{
integrity: sha512-DV/Re3DPVY+BhBtLZ3dmP4mP6YMLSsgq9qGLXwOV38lvNF/fBlgvQswzlXmzCEefL/3q2eMoefZpOI/+GLuCNA==,
}
"@xml-tools/parser@1.0.11":
resolution:
{
integrity: sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA==,
}
chevrotain@7.1.1:
resolution:
{
integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==,
}
prettier-plugin-toml@2.0.1:
resolution:
{
integrity: sha512-99z1YOkViECHtXQjGIigd3talI/ybUI1zB3yniAwUrlWBXupNXThB1hM6bwSMUEj2/+tomTlMtT98F5t4s8IWA==,
}
engines: { node: ">=16.0.0" }
peerDependencies:
prettier: ^3.0.3
prettier@3.3.1:
resolution:
{
integrity: sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==,
}
engines: { node: ">=14" }
hasBin: true
regexp-to-ast@0.5.0:
resolution:
{
integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==,
}
snapshots:
"@prettier/plugin-xml@3.4.1(prettier@3.3.1)":
dependencies:
"@xml-tools/parser": 1.0.11
prettier: 3.3.1
"@taplo/core@0.1.1": {}
"@taplo/lib@0.4.0-alpha.2":
dependencies:
"@taplo/core": 0.1.1
"@xml-tools/parser@1.0.11":
dependencies:
chevrotain: 7.1.1
chevrotain@7.1.1:
dependencies:
regexp-to-ast: 0.5.0
prettier-plugin-toml@2.0.1(prettier@3.3.1):
dependencies:
"@taplo/lib": 0.4.0-alpha.2
prettier: 3.3.1
prettier@3.3.1: {}
regexp-to-ast@0.5.0: {}

View File

@ -2,17 +2,17 @@
@name System Fonts
@updateURL https://gitea.blesmrt.net/mikaela/gist/raw/branch/master/web-browsers/usercss/change-fonts.user.css
@namespace eu.aminda
@version 2024.22.7
@version 2024.23.0
@var select FontSet "Preferred font set" {
"System (no fallback)": "system-ui",
"Serif": "ui-serif, system-ui, Liberation Serif, Tinos, Times New Roman, serif",
"Sans Serif": "ui-sans-serif, system-ui, Liberation Sans, Arimo, Arial, sans-serif"
"System (no fallback)": "system-ui, emoji",
"Serif": "ui-serif, system-ui, Liberation Serif, Tinos, Times New Roman, serif, emoji",
"Sans Serif": "ui-sans-serif, system-ui, Liberation Sans, Arimo, Arial, sans-serif, emoji"
}
==/UserStyle== */
:root {
--a-monospace-fonts: "ui-monospace, Liberation Mono", "Cousine",
"Courier New", monospace;
"Courier New", monospace, emoji;
}
/* Use the variable from above. */

View File

@ -0,0 +1,37 @@
/* ==UserStyle==
@name OpenDyslexic with serif fallback
@updateURL https://gitea.blesmrt.net/mikaela/gist/raw/branch/master/web-browsers/usercss/od-serif.user.css
@namespace eu.aminda
@version 2024.23.1
==/UserStyle== */
:root {
--FontSet: OpenDyslexic, "Liberation Serif", Tinos, "Times New Roman",
ui-serif, system-ui, serif, emoji;
--a-monospace-fonts: "Liberation Mono", "Cousine", "Courier New",
ui-monospace, monospace, emoji;
}
/* Use the variable from above. */
* {
font-family: var(--FontSet) !important;
}
@font-face {
font-family: var(--FontSet) !important;
}
/* Code blocks preferably use monospace font, which is specified here then. */
code,
pre {
font-family: var(--a-monospace-fonts) !important;
@font-face {
font-family: var(--a-monospace-fonts) !important;
}
}
/* I have Firefox always underlining links and not seeing it on Android etc.
bothers me.*/
a {
text-decoration: underline !important;
}