Skip to content

Commit 460a764

Browse files
committed
scss改stylus
1 parent 6ff0afb commit 460a764

10 files changed

Lines changed: 373 additions & 363 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"babel-plugin-component": "^1.1.1",
2424
"eslint": "^5.8.0",
2525
"eslint-plugin-vue": "^5.0.0-0",
26-
"node-sass": "^4.11.0",
27-
"sass-loader": "^7.1.0",
26+
"stylus": "^0.54.5",
27+
"stylus-loader": "^3.0.2",
2828
"vue-cli-plugin-element": "^1.0.0",
2929
"vue-template-compiler": "^2.5.17"
3030
}

‎src/assets/css/index.scss‎

Lines changed: 0 additions & 98 deletions
This file was deleted.

‎src/assets/css/index.styl‎

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
$primary-color = #409EFF;
2+
$primary-background-color = #ecf5ff;
3+
4+
// 覆盖element-ui样式
5+
.el-container {
6+
height: 100% !important;
7+
justify-content: center;
8+
}
9+
10+
// 覆盖element-ui样式 end
11+
:not(.form-edit-wrapper)::-webkit-scrollbar {
12+
display: none;
13+
}
14+
15+
.home {
16+
height: calc(100% - 70px);
17+
user-select: none;
18+
19+
.form-edit-wrapper {
20+
display: flex !important;
21+
max-width: 1320px;
22+
overflow: auto;
23+
flex: auto;
24+
}
25+
}
26+
27+
.center-container {
28+
min-width: 400px;
29+
max-width: 720px;
30+
border-left: 1px solid #e0e0e0;
31+
border-right: 1px solid #e0e0e0;
32+
33+
.btn-bar {
34+
height: 45px;
35+
line-height: 45px;
36+
font-size: 18px;
37+
border-bottom: solid 2px #e4e7ed;
38+
text-align: right;
39+
}
40+
41+
.el-main {
42+
padding: 0;
43+
position: relative;
44+
}
45+
}
46+
47+
.components-list {
48+
padding: 8px 0;
49+
width: 100%;
50+
height: 100%;
51+
52+
.widget-cate {
53+
padding: 8px 12px;
54+
font-size: 13px;
55+
}
56+
57+
ul {
58+
position: relative;
59+
overflow: hidden;
60+
padding: 0 10px 10px;
61+
margin: 0;
62+
}
63+
64+
.ghost {
65+
background: #fff;
66+
border: 1px dashed $primary-color;
67+
68+
&::after {
69+
background: #fff;
70+
}
71+
}
72+
73+
.form-edit-widget-label {
74+
font-size: 12px;
75+
display: block;
76+
width: 48%;
77+
line-height: 30px;
78+
position: relative;
79+
float: left;
80+
left: 0;
81+
overflow: hidden;
82+
text-overflow: ellipsis;
83+
white-space: nowrap;
84+
margin: 1%;
85+
color: #333;
86+
border: 1px solid #F4F6FC;
87+
text-align: center;
88+
89+
&:hover {
90+
color: $primary-color;
91+
border: 1px dashed $primary-color;
92+
}
93+
94+
& > a {
95+
display: block;
96+
cursor: move;
97+
background: #F4F6FC;
98+
}
99+
}
100+
}

‎src/assets/css/themes.scss‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎src/assets/css/themes.styl‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
$t1-base-color = #409EFF;
2+
$t2-base-color = #fe7c01;
3+
$t3-base-color = #6e7786;
4+
5+
.theme1 {
6+
width: 92%;
7+
background-color: #fff;
8+
margin: 0 auto 20px auto;
9+
padding: 10px 0;
10+
}
11+
12+
.theme2 {
13+
width: 92%;
14+
background-color: #fff;
15+
margin: 0 auto 20px auto;
16+
padding: 10px 0;
17+
}
18+
19+
.theme3 {
20+
width: 92%;
21+
background-color: #fff;
22+
margin: 0 auto 20px auto;
23+
padding: 10px 0;
24+
}

0 commit comments

Comments
 (0)