-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
custom.css 编辑或通过外观设置修改后自动刷新 #4069
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
Comments
使用的是默认主题吗? |
不,使用了自定义的主题,然后去主题文件夹修改了custom.css,修改后确实样式改变了。但是再次打开软件就又失效了,css里面没变,只是没加载自己增加的css。如果去这个文件再做一下改动保存,就又会把样式应用上
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年2月19日(星期六) 上午10:44
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [siyuan-note/siyuan] 使用自定义主题的时候,修改了生成了custom.css,再次打开软件不会加载自定义的css (Issue #4069)
使用的是默认主题吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
打开这个选项:设置 - 外观 - 自定义当前主题 |
就是打开的状态下修改的样式呀。没有使用自带的css,打开自定义当前主题后会生成custom.css嘛,然后修改这个文件,修改后确实样式可以改变。但是重新打开软件后,他就不会加载我自定义的样式了,需要我再去custom.css里保存一下,软件才会加载自定义的css
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年2月19日(星期六) 上午10:58
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [siyuan-note/siyuan] 使用自定义主题的时候,修改了生成了custom.css,再次打开软件不会加载自定义的css (Issue #4069)
打开这个选项:设置 - 外观 - 自定义当前主题
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
思源版本是最新版么?我刚刚在 v1.8.2 上面没能重现这个问题。 |
是最新版,1.8.2。是我新增的方式不对吗? /* PDF */
.textLayer,
.pdf__resize {
mix-blend-mode: darken;
}
/* 自定义加粗样式 */
strong {
font-weight: bold;
font-size: 17px!important;
font-weight: bold!important;
}
/* 自定义引用样式 */
.protyle-wysiwyg .bq {
border-left: 0.25em solid #42b983;
background-color: #f0f0f0;
} 我是在最下边增加的。修改后样式可以实时变化,但是重新打开软件后,他就不加载我定义的css了。我是写到:root外的,单独写到最下边的 |
写的位置应该不影响,打开开发者工具看下网络请求,Ctrl+R 刷新了看是否加载 custom.css |
问题解决!! 。。。。不对,在我写回复的时候多次测试发现偶发性。有时能加载,有时加载不出来 |
打开开发者工具使用Ctrl+R刷新后是能加载出来,但是打开软件是偶发性,有时能出来,有时出不来 |
开发者工具里把缓存禁用打开,然后 Ctrl+F5 强制刷新看看。 |
在不停的测试的时候,发现有时候打开软件会不加载custom.css的情况,已经打开禁用缓存了 |
有在开发者工具里发现其他报错吗? |
有时直接不加载资源,有一个警告,没有报错 |
这个警告一直存在,即使加载了主题css也会存在 |
这个警告不影响。 |
现在最快的解决方法是打开开发者工具,Ctrl+R一下就好
…---原始邮件---
发件人: ***@***.***>
发送时间: 2022年2月19日(周六) 晚上6:42
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [siyuan-note/siyuan] 使用自定义主题的时候,修改了生成了custom.css,再次打开软件不会加载自定义的css (Issue #4069)
@lkk66 @88250 我也遇到过类似的问题,尝试以下步骤得以临时解决:
在软件顶部切换一下黑暗/明亮模式。若成功更新样式,可不进行第 2 步。但以后每次打开软件可能都需执行此操作(比重新保存 custom.css 方便)
若第 1 步仍无法更新样式,可尝试到设置里关掉网络伺服和访问授权码,然后重新打开思源笔记,再次执行第 1 步。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
暂时还无法定位到问题,我们继续观察看看,谢谢。 |
使用自定义主题的时候,修改了生成了custom.css,再次打开软件不会加载自定义的css
在自定义的css里面增加了一些样式,修改后可以实现软件样式的变化。但是再次打开软件后,不会加载增加的css样式,需要再去对custom.css进行保存一下样式才能变化
The text was updated successfully, but these errors were encountered: