Skip to content

Commit 991ea80

Browse files
committed
先打包element-ui,再打包主题,因为@import嵌套下有些样式会打在根下面
1 parent 26b0891 commit 991ea80

File tree

4 files changed

+31922
-23
lines changed

4 files changed

+31922
-23
lines changed

dist/element-rj-onc-dark.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rj-themes/onc-dark/build.scss

Lines changed: 31897 additions & 0 deletions
Large diffs are not rendered by default.

src/rj-themes/onc-dark/index.scss

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
12
.theme-onc-dark {
2-
@import './main.scss';
3+
// @import './main';
4+
@import './build';
35

46
color: #90AACD;
57

@@ -42,4 +44,25 @@
4244
background-color: transparent;
4345
}
4446
}
47+
48+
/**滚轮样式定义**/
49+
*::-webkit-scrollbar{
50+
width: 8px;
51+
height: 5px;
52+
background-color: #212836;
53+
box-shadow: inset 0 0 6px rgba(0,0,0,.3);
54+
border-radius: 10px;
55+
}
56+
/*滚动条的轨道*/
57+
*::-webkit-scrollbar-track{
58+
box-shadow: inset 0 0 6px rgba(0,0,0,.3);
59+
background-color: #212836;
60+
border-radius: 10px;
61+
}
62+
/*滚动条的滑块按钮*/
63+
*::-webkit-scrollbar-thumb{
64+
border-radius: 10px;
65+
background-color: #212836;
66+
box-shadow: inset 0 0 3px #fff
67+
}
4568
}

src/rj-themes/onc-dark/main.scss

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -149,24 +149,3 @@ table {
149149
.el-tabs__item:hover,.el-tabs__item.is-active {
150150
color: $--color-primary;
151151
}
152-
153-
/**滚轮样式定义**/
154-
*::-webkit-scrollbar{
155-
width: 8px;
156-
height: 5px;
157-
background-color: #212836;
158-
box-shadow: inset 0 0 6px rgba(0,0,0,.3);
159-
border-radius: 10px;
160-
}
161-
/*滚动条的轨道*/
162-
*::-webkit-scrollbar-track{
163-
box-shadow: inset 0 0 6px rgba(0,0,0,.3);
164-
background-color: #212836;
165-
border-radius: 10px;
166-
}
167-
/*滚动条的滑块按钮*/
168-
*::-webkit-scrollbar-thumb{
169-
border-radius: 10px;
170-
background-color: #212836;
171-
box-shadow: inset 0 0 3px #fff
172-
}

0 commit comments

Comments
 (0)