为什么 Moodle 主题 "clean" 中 custom.css 的更改不起作用?

Why change of custom.css in "clean" of Moodle theme is not working?

我正在使用 Moodle Framework,所以我需要更改 clean 主题的布局,在 document 中写着:

/style/custom.css 
This is where all the settings CSS is generated.

但为什么我在 custom.css 中的更改不影响我的布局?

可能正在缓存。在您的开发机器上将此添加到您的 config.php

$CFG->themedesignermode = true;

只有在设计时才这样做,否则 Moodle 会很慢。完成设计后将其删除或设置为 false。

我不建议将它放在生产服务器上。

https://docs.moodle.org/28/en/Theme_Designer_Mode

有时您需要清除主题的缓存以在样式中应用您的自定义,方法是转到站点管理 > 外观 > 主题选择器然后单击清除缓存按钮