提交 08acf44c 编写于 作者: C Catouse

* add pageTheme variable to the document less source.

上级 d17085ad
......@@ -1870,6 +1870,7 @@
readyChangeTheme(theme.css);
} else {
setTimeout(function() {
theme.variablesLess += '@pageTheme: true;';
compileTheme(theme, null, function(style) {
if(style) {
theme.css = style.css;
......
......@@ -9,6 +9,7 @@
// DOCUMENT SITE STYLE
// ===================
@pageTheme: false;
// mixins
......@@ -959,6 +960,10 @@ body {
box-shadow: 0 0 0 1px #fff;
border-radius: 2px;
z-index: 12;
& when(@pageTheme = true) {
background-image: url('docs/img/update_badage.gif');
}
}
}
&.section-new {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册