guy 8 years ago
parent
commit
14e2485b95
  1. 2
      demo/css/main.css
  2. 4
      demo/js/north.js
  3. 2
      demo/less/main.less
  4. 2
      docs/demo.css
  5. 4
      docs/demo.js

2
demo/css/main.css

@ -45,6 +45,6 @@
body {
background-color: #eff1f4;
}
body.bi-theme-dark {
.bi-theme-dark body {
background-color: #191B2B;
}

4
demo/js/north.js

@ -28,13 +28,13 @@ Demo.North = BI.inherit(BI.Widget, {
type: "bi.text_button",
text: "星空蓝",
handler: function () {
$("body").removeClass("bi-theme-default").addClass("bi-theme-dark");
$("html").removeClass("bi-theme-default").addClass("bi-theme-dark");
}
}, {
type: "bi.text_button",
text: "典雅白",
handler: function () {
$("body").removeClass("bi-theme-dark").addClass("bi-theme-default");
$("html").removeClass("bi-theme-dark").addClass("bi-theme-default");
}
}]
}

2
demo/less/main.less

@ -58,6 +58,6 @@ body {
background-color: @color-bi-background-normal;
}
body.bi-theme-dark {
.bi-theme-dark body {
background-color: @color-bi-background-normal-theme-dark;
}

2
docs/demo.css

@ -54,7 +54,7 @@
body {
background-color: #eff1f4;
}
body.bi-theme-dark {
.bi-theme-dark body {
background-color: #191B2B;
}
/****添加计算宽度的--运算符直接需要space****/

4
docs/demo.js

@ -5585,13 +5585,13 @@ BI.shortcut("demo.main", Demo.Main);Demo.North = BI.inherit(BI.Widget, {
type: "bi.text_button",
text: "星空蓝",
handler: function () {
$("body").removeClass("bi-theme-default").addClass("bi-theme-dark");
$("html").removeClass("bi-theme-default").addClass("bi-theme-dark");
}
}, {
type: "bi.text_button",
text: "典雅白",
handler: function () {
$("body").removeClass("bi-theme-dark").addClass("bi-theme-default");
$("html").removeClass("bi-theme-dark").addClass("bi-theme-default");
}
}]
}

Loading…
Cancel
Save