Skip to content

Commit

Permalink
add css file for template html
Browse files Browse the repository at this point in the history
  • Loading branch information
ting0130 committed Jun 3, 2021
1 parent f1a7cec commit 8d49b21
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bisheng.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
priority: 3
},
common: {
test: /[\\/]dt-theme[\\/]common[\\/]index.less/,
test: /[\\/]dt-theme[\\/]dt-common[\\/]index.less/,
priority: 3
}
}
Expand Down
2 changes: 1 addition & 1 deletion theme/dt-theme/dark/resetDark.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~antd/dist/antd.less';
@import '../dt-common/reset.less';

@theme: dark;
// color palettes
Expand Down
2 changes: 1 addition & 1 deletion theme/dt-theme/default/reset.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~antd/dist/antd.less';
@import '../dt-common/reset.less';

// 覆盖antd变量
@primary-color: #3F87FF;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import './form.less';
@import './card.less';
@import './notice.less';
// @import './reset.less';

* {
margin: 0;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions theme/dt-theme/dt-common/reset.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import '~antd/dist/antd.less';
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions theme/static/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
href="https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png"
type="image/x-icon"
/>
{% for cssFile in manifest["css"] %}
{% for cssFile in manifest["css"] %}{% if not cssFile.includes('dark') and not cssFile.includes('default')%}
<link rel="stylesheet" type="text/css" href="{{ root }}{{ cssFile }}"/>
{% endfor %}
{% endif %}{% endfor %}
<script src="https://gw.alipayobjects.com/os/lib/es6-shim/0.35.5/??es6-sham.min.js,es6-shim.min.js"></script>
<!--[if lte IE 10]>
<script src="https://as.alipayobjects.com/g/component/??console-polyfill/0.2.2/index.js,media-match/2.0.2/media.match.min.js"></script>
Expand All @@ -29,5 +29,8 @@
{% for jsFile in manifest["js"] %}
<script src="{{ root }}{{ jsFile }}"></script>
{% endfor %}
{% for cssFile in manifest["css"]%}{% if cssFile.includes('dark') or cssFile.includes('default') %}
<link rel="stylesheet" type="text/css" href="{{ root }}{{ cssFile }}"/>
{% endif %}{% endfor %}
</body>
</html>
2 changes: 1 addition & 1 deletion theme/template/Layout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import '../../static/iconfont/iconfont.css';

import '../../dt-theme/default/index.less';
import '../../dt-theme/dark/index.less';
import '../../dt-theme/common/index.less';
import '../../dt-theme/dt-common/index.less';

if (typeof window !== 'undefined' && navigator.serviceWorker) {
navigator.serviceWorker.getRegistrations().then(registrations => {
Expand Down

0 comments on commit 8d49b21

Please sign in to comment.