Last active
March 22, 2018 03:53
-
-
Save AquiTCD/830737a07bf603085b49a23390df0d57 to your computer and use it in GitHub Desktop.
Stylish Styles for browsing
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
/* | |
Force global font setting | |
^(?!https?://(.*).?(localhost|192.168.|slideshare|chatwork|docs.google.com/spreadsheets)).*$ | |
*/ | |
@font-face { | |
font-family: 'Noto Sans'; | |
font-weight: 100; | |
font-weight: 200; | |
font-weight: 300; | |
font-weight: 400; | |
font-weight: 500; | |
src: local('NotoSans-Regular'); | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'Noto Sans'; | |
font-weight: 600; | |
font-weight: 700; | |
font-weight: 800; | |
font-weight: 900; | |
src: local('NotoSans-Bold'); | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'Noto Sans CJK JP'; | |
font-weight: 100; | |
font-weight: 200; | |
font-weight: 300; | |
font-weight: 400; | |
font-weight: 500; | |
src: local('NotoSansCJKjp-Regular'), | |
local('SourceHanSansJP-Regular'), | |
local('Noto Sans CJK JP'), | |
local('Source Han Sans JP'), | |
url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Regular.woff2) format('woff2'), | |
url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Regular.woff) format('woff'), | |
url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Regular.otf) format('opentype'); | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'Noto Sans CJK JP'; | |
font-weight: 600; | |
font-weight: 700; | |
font-weight: 800; | |
font-weight: 900; | |
src: local('NotoSansCJKjp-Bold'), | |
local('SourceHanSansJP-Bold'), | |
local('Noto Sans CJK JP'), | |
local('Source Han Sans JP'), | |
url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Bold.woff2) format('woff2'), | |
url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Bold.woff) format('woff'), | |
url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Bold.otf) format('opentype'); | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'YakuHanJPs'; | |
font-weight: 100; | |
font-weight: 200; | |
font-weight: 300; | |
font-weight: 400; | |
font-weight: 500; | |
src: url("https://cdn.jsdelivr.net/npm/yakuhanjp@2.0.0/dist/fonts/YakuHanJPs/YakuHanJPs-Regular.woff2") format("woff2"), | |
url("https://cdn.jsdelivr.net/npm/yakuhanjp@2.0.0/dist/fonts/YakuHanJPs/YakuHanJPs-Regular.woff") format("woff"); | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'YakuHanJPs'; | |
font-weight: 600; | |
font-weight: 700; | |
font-weight: 800; | |
font-weight: 900; | |
src: url("https://cdn.jsdelivr.net/npm/yakuhanjp@2.0.0/dist/fonts/YakuHanJPs/YakuHanJPs-Bold.woff2") format("woff2"), | |
url("https://cdn.jsdelivr.net/npm/yakuhanjp@2.0.0/dist/fonts/YakuHanJPs/YakuHanJPs-Bold.woff") format("woff"); | |
font-display: swap; | |
} | |
*:not([class*="ico"]):not(.fa):not(.DPvwYc):not(i){ | |
font-family: 'Noto Sans', 'YakuHanJPs', 'Noto Sans CJK JP', sans-serif; | |
-webkit-font-smoothing: antialiased; | |
} | |
h1, h1 *:not(p), h2, h2 *:not(p), h3, h3 *:not(p), h4, h4 *:not(p), h5, h5 *:not(p), | |
li, li *:not(p), dd, dd *:not(p), dt, dt *:not(p), th, th *:not(p), td, td *:not(p), | |
figcaption, figcaption *:not(p), caption, caption *:not(p), | |
cite, cite *:not(p), label, label *:not(p), select > option { | |
font-feature-settings: "palt" 1; | |
} | |
pre, pre *, | |
code, code *, | |
kbd, kbd *, | |
samp, samp *, | |
var, var *, | |
.blob-wrapper * { | |
font-family: Hasklig, 'Source Han Code JP', monospace !important; | |
text-align: left; | |
} | |
p { | |
letter-spacing: 0.038em; | |
word-wrap: break-word; | |
font-feature-settings: "palt" 0; | |
} | |
:lang(en) p { | |
text-align: left; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment