Watch 1 Star 0 Fork 0

子野 / custom.cssCSSMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
适用于 Stylus / Stylish 扩展的 CSS 网页美化样式表。 spread retract

https://n2o.io/go?page=custom.css

Clone or download
font-family-adobe.scss 6.62 KB
Copy Edit Web IDE Raw Blame History
子野 authored 2019-10-19 01:01 . --no commit message
@namespace url(http://www.w3.org/1999/xhtml);
/*!
* font-family-adobe-2.0.4.scss
* https://n2o.io/go?page=custom.css
*
* Copyright 2019 Francis Z. <francis@n2o.io>
* https://n2o.io/license
*
* Date: 2019-10-19T00:00+06:00
*/
/* i really want this to be global */
$font-system: -apple-system, BlinkMacSystemFont, system-ui;
$font-sans: "Source Sans Pro";
$font-sans-j: "Source Han Sans";
$font-sans-j-fallback: "Noto Sans CJK JP", "Hiragino Kaku Gothic Pro", $font-system;
$font-sans-k: "Source Han Sans K";
$font-sans-k-fallback: "Noto Sans CJK KR", "Apple Gothic", $font-system;
$font-sans-sc: "Source Han Sans SC";
$font-sans-sc-fallback: "Noto Sans CJK SC", "HanHei SC", $font-system;
$font-sans-tc: "Source Han Sans TC";
$font-sans-tc-fallback: "Noto Sans CJK TC", "HanHei TC", $font-system;
$font-sans-hc: "Source Han Sans HC";
$font-sans-hc-fallback: $font-sans-tc, $font-sans-tc-fallback;
$font-serif: "Source Serif Pro";
$font-serif-j: "Source Han Serif";
$font-serif-j-fallback: "Noto Serif CJK JP", $font-serif;
$font-serif-k: "Source Han Serif K";
$font-serif-k-fallback: "Noto Serif CJK KR", $font-serif;
$font-serif-sc: "Source Han Serif SC";
$font-serif-sc-fallback: "Noto Serif CJK SC", "方正新书宋_GBK", $font-serif;
$font-serif-tc: "Source Han Serif TC";
$font-serif-tc-fallback: "Noto Serif CJK TC", $font-serif;
$font-serif-hc: "Source Han Serif HC";
$font-serif-hc-fallback: $font-serif-tc, $font-serif-tc-fallback;
$font-mono: "Source Code Pro";
$font-mono-j: "Source Han Code JP";
$font-mono-j-fallback: $font-mono;
$font-mono-k: "Source Han Code JP";
$font-mono-k-fallback: $font-mono;
$font-mono-sc: "Source Han Code JP";
$font-mono-sc-fallback: $font-mono;
$font-mono-tc: "Source Han Code JP";
$font-mono-tc-fallback: $font-mono;
$font-mono-hc: "Source Han Code JP";
$font-mono-hc-fallback: $font-mono;
$font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
&:lang(de) body {
quotes: "„" "“";
}
&:lang(es) body,
&:lang(no) body {
quotes: "«" "»";
}
&:lang(fr) body {
quotes: "« " " »";
}
&:lang(zh-CN) body,
&:lang(zh-SG) body {
font-family: $font-sans-sc, $font-sans-sc-fallback, $font-system, sans-serif, $font-emoji;
}
&:lang(zh-TW) body {
font-family: $font-sans-tc, $font-sans-tc-fallback, $font-system, sans-serif, $font-emoji;
quotes: "「" "」";
}
&:lang(zh-HK) body,
&:lang(zh-MO) body {
font-family: $font-sans-hc, $font-sans-hc-fallback, $font-system, sans-serif, $font-emoji;
quotes: "「" "」";
}
&:lang(ja) body {
font-family: $font-sans-j, $font-sans-j-fallback, sans-serif, $font-emoji;
quotes: "「" "」";
}
&:lang(ko) body {
font-family: $font-sans-k, $font-sans-k-fallback, sans-serif, $font-emoji;
}
}
body {
font-family: $font-sans, $font-sans-sc, $font-sans-sc-fallback, sans-serif, $font-emoji;
quotes: "“" "”";
}
button,
input,
keygen,
select,
textarea {
font-family: inherit;
&:disabled {
cursor: not-allowed;
}
}
/* 字体替换:西里尔字母 */
@each $font-serif-replace in ("Georgia", "Times", "Time New Roman") {
@font-face {
font-family: $font-serif-replace;
src: local($font-serif-sc);
}
}
@each $font-sans-replace in ("Arial", "Helvetica", "Helvetica Neue", "Segoe UI", "Tahoma", "Trebuchet", "Trebuchet MS", "Verdana") {
@font-face {
font-family: $font-sans-replace;
src: local($font-sans-sc);
}
}
@each $font-mono-replace in ("Consolas", "Courier", "Courier New" ) {
@font-face {
font-family: $font-mono-replace;
src: local($font-mono);
}
}
/* 字体替换:中文 */
@each $font-serif-sc-replace in ("SimSun", "SimSun-ExtB", "宋体", "NSimSun", "新宋体") {
@font-face {
font-family: $font-serif-sc-replace;
src: local($font-sans-sc);
}
}
@each $font-sans-sc-replace in ("SimHei", "黑体", "Microsoft YaHei", "微软雅黑", "STHeiti SC", "PingFang SC", "苹方-简") {
@font-face {
font-family: $font-sans-sc-replace;
src: local($font-sans-sc);
}
}
@each $font-serif-tc-replace in ("MingLiU", "MingLiU-ExtB", "PMingLiU", "PMingLiU-ExtB") {
@font-face {
font-family: $font-serif-tc-replace;
src: local($font-sans-tc);
}
}
@each $font-sans-tc-replace in ("Microsoft JhengHei", "微軟正黑體", "STHeiti TC", "PingFang TC", "蘋方-繁") {
@font-face {
font-family: $font-sans-tc-replace;
src: local($font-sans-tc);
}
}
@each $font-serif-hc-replace in ("MingLiU_HKSCS", "MingLiU_HKSCS-ExtB") {
@font-face {
font-family: $font-serif-hc-replace;
src: local($font-sans-hc);
}
}
@each $font-sans-hc-replace in ("PingFang HK", "蘋方-港") {
@font-face {
font-family: $font-sans-hc-replace;
src: local($font-sans-hc);
}
}
/* 字体替换:日文 */
@each $font-sans-j-replace in ("MS Gothic", "MS PGothic", "MS UI Gothic", "Yu Gothic", "Yu Gothic UI") {
@font-face {
font-family: $font-sans-j-replace;
src: local($font-sans-j);
}
}
/* 字体替换:朝鲜文 */
@each $font-sans-k-replace in ("Malgun Gothic") {
@font-face {
font-family: $font-sans-k-replace;
src: local($font-sans-k);
}
}
/* 特定网站修正 */
@-moz-document domain("baidu.com") {
* {
font-family: $font-sans-sc, $font-sans-sc-fallback, sans-serif, $font-emoji;
}
}
@-moz-document regexp("https://www.baidu.com/#?"), url-prefix("https://www.baidu.com/?tn=") {
.s_ipt {
font-family: $font-sans-sc, $font-sans-sc-fallback, sans-serif, $font-emoji;
}
.s-treasure,
.mnav[href^="http"]:not([href*="baidu.com"]),
.qrcode-layer {
display: none !important;
}
}
@-moz-document domain("jiemian.com") {
.article-content {
font-family: $font-sans-sc, $font-sans-sc-fallback, sans-serif, $font-emoji !important;
}
#ad_header_top, .cnzz-ads, .jm-app {
display: none !important;
}
}
@-moz-document domain("so.com") {
* {
font-family: $font-sans-sc, $font-sans-sc-fallback, sans-serif, $font-emoji;
}
#mohe-know_side_nlp-imagelist,
#mohe-hot_hqr {
display: none !important;
}
}
@-moz-document domain("sogou.com") {
* {
font-family: $font-sans-sc, $font-sans-sc-fallback, sans-serif, $font-emoji;
}
.nav-new,
.bizr_rb,
[id^="rightgameout"] {
display: none !important;
}
}
@-moz-document domain("sspai.com") {
h1, h2, h3, h4, h5, h6, .title, .content, p, a {
font-family: $font-sans-sc, $font-sans-sc-fallback, sans-serif, $font-emoji !important;
}
}
@-moz-document domain("userstyles.org") {
.ad, #top_android_button, .android_button_button, .android_button_banner {
display: none !important;
}
}
/* 真的到底了 */

Comment ( 0 )

Sign in for post a comment

CSS
1
https://gitee.com/francis-z/custom.css.git
git@gitee.com:francis-z/custom.css.git
francis-z
custom.css
custom.css
master

Help Search