@el-plus/theme-chalk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +34 -0
- package/src/base.scss +11 -0
- package/src/buttons.scss +18 -0
- package/src/common/var.scss +1 -0
- package/src/form.scss +55 -0
- package/src/index.scss +4 -0
- package/src/mixins/config.scss +4 -0
- package/src/mixins/mixins.scss +38 -0
- package/src/search-list-page.scss +23 -0
- package/src/table.scss +57 -0
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@el-plus/theme-chalk",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.css",
|
|
6
|
+
"keywords": [],
|
|
7
|
+
"author": "",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@types/vinyl": "^2.0.12",
|
|
11
|
+
"rimraf": "^6.1.2",
|
|
12
|
+
"tsx": "^4.21.0",
|
|
13
|
+
"consola": "^3.4.2",
|
|
14
|
+
"cssnano": "^7.1.2",
|
|
15
|
+
"gulp": "^4.0.2",
|
|
16
|
+
"gulp-autoprefixer": "^10.0.0",
|
|
17
|
+
"gulp-rename": "^2.1.0",
|
|
18
|
+
"gulp-sass": "^6.0.1",
|
|
19
|
+
"postcss": "^8.5.6",
|
|
20
|
+
"sass": "^1.97.2",
|
|
21
|
+
"@el-plus/build": "^1.0.0"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"src"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org/"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"clean": "rimraf dist",
|
|
32
|
+
"build": "gulp --require tsx/dist/loader.cjs -f gulpfile.ts"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/src/base.scss
ADDED
package/src/buttons.scss
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include b(button) {
|
|
5
|
+
padding: 9px 15px;
|
|
6
|
+
height: auto;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
&.el-button--text {
|
|
10
|
+
padding: 0;
|
|
11
|
+
// border: 0;
|
|
12
|
+
// color: var(--el-button-hover-text-color)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.el-button+.el-button {
|
|
16
|
+
margin-left: 10px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$color-priamy: #409eff;
|
package/src/form.scss
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include b(form) {
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
@include e(fold) {
|
|
8
|
+
position: absolute;
|
|
9
|
+
bottom: 23px;
|
|
10
|
+
right: 0;
|
|
11
|
+
width: 70px;
|
|
12
|
+
text-align: center;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
color: #367ef5;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include is(fold) {
|
|
23
|
+
padding-right: 70px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.el-form-item--small {
|
|
27
|
+
margin-bottom: 18px;
|
|
28
|
+
|
|
29
|
+
.el-form-item__label {
|
|
30
|
+
padding-right: 6px;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
padding-left: 18px;
|
|
35
|
+
line-height: 32px;
|
|
36
|
+
height: 32px;
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.el-form-item__content {
|
|
41
|
+
line-height: 32px;
|
|
42
|
+
font-size: 13px;
|
|
43
|
+
|
|
44
|
+
.el-input {
|
|
45
|
+
font-size: 13px;
|
|
46
|
+
height: 32px;
|
|
47
|
+
}
|
|
48
|
+
.el-select__wrapper{
|
|
49
|
+
line-height: 32px;
|
|
50
|
+
min-height: 32px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
}
|
package/src/index.scss
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use 'config' as *;
|
|
2
|
+
@forward 'config';
|
|
3
|
+
|
|
4
|
+
// .ep-button {}
|
|
5
|
+
@mixin b($block) {
|
|
6
|
+
$B: $namespace + '-' + $block;
|
|
7
|
+
|
|
8
|
+
.#{$B} {
|
|
9
|
+
@content;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// &__element => .ep-button__element {}
|
|
14
|
+
@mixin e($element) {
|
|
15
|
+
@at-root {
|
|
16
|
+
#{&+$element-separator + $element} {
|
|
17
|
+
@content;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// &--modifier => .ep-button--modifier {}
|
|
23
|
+
@mixin m($modifier) {
|
|
24
|
+
@at-root {
|
|
25
|
+
#{&+$modifier-separator + $modifier} {
|
|
26
|
+
@content;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// .ep-button.is-xxx {}
|
|
32
|
+
@mixin is($state) {
|
|
33
|
+
@at-root {
|
|
34
|
+
#{&+'.'+$state-separator + $state} {
|
|
35
|
+
@content;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include b(search-list-page) {
|
|
5
|
+
#middle {
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@include e(middle-left) {
|
|
10
|
+
float: left;
|
|
11
|
+
|
|
12
|
+
.el-button {
|
|
13
|
+
margin: 16px 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@include e(middle-right) {
|
|
18
|
+
float: right;
|
|
19
|
+
.el-button {
|
|
20
|
+
margin: 16px 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
package/src/table.scss
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include b(table) {
|
|
5
|
+
@include e(action-buttons) {
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
}
|
|
8
|
+
.table-column-link{
|
|
9
|
+
.el-form-item{
|
|
10
|
+
display: inline-block;
|
|
11
|
+
.el-form-item__label{
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.el-table {
|
|
18
|
+
thead tr {
|
|
19
|
+
|
|
20
|
+
// line-height: 35px;
|
|
21
|
+
th {
|
|
22
|
+
height: 42px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
td,
|
|
27
|
+
th {
|
|
28
|
+
padding: 3px 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.el-form-item__error {
|
|
33
|
+
position: unset;
|
|
34
|
+
text-align: left;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.el-form-item {
|
|
38
|
+
margin-bottom: 0;
|
|
39
|
+
|
|
40
|
+
.el-form-item__label {
|
|
41
|
+
padding: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.el-pagination {
|
|
46
|
+
margin-top: 12px;
|
|
47
|
+
--el-pagination-font-size: 13px;
|
|
48
|
+
|
|
49
|
+
.el-select {
|
|
50
|
+
--el-select-font-size: 13px;
|
|
51
|
+
|
|
52
|
+
.el-select__wrapper {
|
|
53
|
+
font-size: 13px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|