Skip to content

Commit 3d75b19

Browse files
author
allen
committed
feat: 样式优化
1 parent d612d9f commit 3d75b19

File tree

3 files changed

+61
-25
lines changed

3 files changed

+61
-25
lines changed

.stylelintrc.cjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ module.exports = {
4141
],
4242
},
4343
],
44-
'selector-class-pattern': [
45-
'^[a-zA-Z0-9-]*$',
46-
{
47-
message:
48-
'Selector class name must start with a letter and contain only letters and numbers',
49-
},
50-
],
44+
'selector-class-pattern': null,
5145
'selector-type-no-unknown': [true, { ignoreTypes: ['page', 'radio', 'checkbox'] }],
5246
'number-leading-zero': 'always',
5347
'declaration-block-no-redundant-longhand-properties': null,

src/styles/base.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@ a {
99
text-decoration: none;
1010
color: #409eff;
1111
}
12+
.link {
13+
cursor: pointer;
14+
color: #136ee9;
15+
&:hover {
16+
color: #79bbff;
17+
}
18+
&:not(:last-of-type) {
19+
margin-right: 10px;
20+
}
21+
}
22+
.link-disabled {
23+
cursor: not-allowed;
24+
color: #a8abb2;
25+
&:hover {
26+
color: #a8abb2;
27+
}
28+
}
29+
.empty-del:empty::after {
30+
content: '--';
31+
}
1232
::-webkit-scrollbar {
1333
/* 滚动条整体样式 */
1434
width: 5px; /* 高宽分别对应横竖滚动条的尺寸 */

src/styles/element.scss

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,40 @@
1-
.el-container {
2-
height: 100%;
3-
}
4-
.el-aside {
5-
overflow: hidden;
6-
width: auto !important;
7-
background: #304156;
8-
}
9-
.el-header {
10-
z-index: 10;
11-
padding: 0 !important;
12-
background: #fff;
13-
}
14-
.el-main {
15-
overflow-x: hidden;
16-
overflow-y: scroll;
17-
margin-top: 40px;
18-
}
1+
.el-container {
2+
height: 100%;
3+
}
4+
.el-aside {
5+
overflow: hidden;
6+
width: auto !important;
7+
background: #304156;
8+
}
9+
.el-header {
10+
z-index: 10;
11+
padding: 0 !important;
12+
background: #fff;
13+
}
14+
.el-main {
15+
overflow-x: hidden;
16+
overflow-y: scroll;
17+
margin-top: 40px;
18+
}
19+
.el-input {
20+
.el-input__suffix:not(.el-select .el-input__suffix) {
21+
margin-left: -22px;
22+
}
23+
.el-input__inner:not(.el-select .el-input__inner) {
24+
padding-right: 22px;
25+
}
26+
}
27+
.el-table .cell {
28+
@extend .empty-del;
29+
}
30+
.el-form--inline {
31+
.el-form-item {
32+
.el-input,
33+
.el-cascader,
34+
.el-select,
35+
.el-date-editor,
36+
.el-autocomplete {
37+
width: 240px;
38+
}
39+
}
40+
}

0 commit comments

Comments
 (0)