Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义字体在hadeeth主题失效 #11

Closed
QQQOrange opened this issue Jan 23, 2024 · 10 comments
Closed

自定义字体在hadeeth主题失效 #11

QQQOrange opened this issue Jan 23, 2024 · 10 comments
Labels
minor fix Less prominent than #bug but may affect user experience

Comments

@QQQOrange
Copy link

使用css实现的自定义字体在其他主题下顺利使用,但是本主题使用不了

@kokojacket
Copy link

+1

@mustakshif
Copy link
Owner

mustakshif commented Jan 23, 2024

找到问题了,下个版本更新。谢谢反馈

@mustakshif mustakshif added this to the v2.0.0 milestone Jan 23, 2024
@QQQOrange
Copy link
Author

找到问题了,下个版本更新。谢谢反馈

@font-face {
font-family: "仓耳今楷01-W03";
font-style: normal;
src: url("plugins/custom-fonts/仓耳今楷01-W03.ttf");
}

:root {
--b3-font-family: "仓耳今楷01-W03", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", "sans-serif", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";

}

@mustakshif
Copy link
Owner

好,是主题字体变量的选择器特殊性太高了。下个版本更新前可以在你的自定义代码中加上 !important来让代码生效:

@font-face {
    font-family: "仓耳今楷01-W03";
    font-style: normal;
    src: url("plugins/custom-fonts/仓耳今楷01-W03.ttf");
}

:root {
    --b3-font-family: "仓耳今楷01-W03", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", "sans-serif", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important;

}

@QQQOrange
Copy link
Author

好,是主题字体变量的选择器特殊性太高了。下个版本更新前可以在你的自定义代码中加上 !important来让代码生效:

@font-face {
    font-family: "仓耳今楷01-W03";
    font-style: normal;
    src: url("plugins/custom-fonts/仓耳今楷01-W03.ttf");
}

:root {
    --b3-font-family: "仓耳今楷01-W03", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", "sans-serif", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important;

}

好的 具体加在哪儿呢

@kokojacket
Copy link

好,是主题字体变量的选择器特殊性太高了。下个版本更新前可以在你的自定义代码中加上 !important来让代码生效:

@font-face {
    font-family: "仓耳今楷01-W03";
    font-style: normal;
    src: url("plugins/custom-fonts/仓耳今楷01-W03.ttf");
}

:root {
    --b3-font-family: "仓耳今楷01-W03", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", "sans-serif", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important;

}

好的 具体加在哪儿呢

结尾

@mustakshif
Copy link
Owner

今晚更新版本,可以不用改啦

@QQQOrange
Copy link
Author

今晚更新版本,可以不用改啦

好嘞

@mustakshif
Copy link
Owner

mustakshif commented Jan 25, 2024 via email

@kokojacket
Copy link

是的,更新了~

@mustakshif mustakshif added the minor fix Less prominent than #bug but may affect user experience label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor fix Less prominent than #bug but may affect user experience
Projects
None yet
Development

No branches or pull requests

3 participants