@ew-color-picker/style 2.0.11 → 2.0.13

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.
@@ -0,0 +1,92 @@
1
+ .ew-button {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ height: 32px;
6
+ padding: 0 15px;
7
+ box-sizing: border-box;
8
+ border: 1px solid #dcdfe6;
9
+ border-radius: var(--btn-radius, 4px);
10
+ background: #fff;
11
+ color: #606266;
12
+ font-family: inherit;
13
+ font-size: 14px;
14
+ line-height: 1;
15
+ white-space: nowrap;
16
+ cursor: pointer;
17
+ outline: none;
18
+ transition: color 0.2s, border-color 0.2s, background-color 0.2s;
19
+ }
20
+
21
+ .ew-button:hover {
22
+ border-color: #4096ef;
23
+ color: #4096ef;
24
+ }
25
+
26
+ .ew-button--primary {
27
+ border-color: #4096ef;
28
+ background: #4096ef;
29
+ color: #fff;
30
+ }
31
+
32
+ .ew-button--primary:hover {
33
+ border-color: #66b1ff;
34
+ background: #66b1ff;
35
+ color: #fff;
36
+ }
37
+
38
+ .ew-button--danger {
39
+ border-color: #f56c6c;
40
+ background: #f56c6c;
41
+ color: #fff;
42
+ }
43
+
44
+ .ew-button--danger:hover {
45
+ border-color: #f78989;
46
+ background: #f78989;
47
+ color: #fff;
48
+ }
49
+
50
+ .ew-button--text {
51
+ border-color: transparent;
52
+ background: transparent;
53
+ color: #4096ef;
54
+ }
55
+
56
+ .ew-button--text:hover {
57
+ border-color: transparent;
58
+ background: transparent;
59
+ color: #66b1ff;
60
+ }
61
+
62
+ .ew-button--small {
63
+ height: 28px;
64
+ padding: 0 11px;
65
+ font-size: 12px;
66
+ }
67
+
68
+ .ew-button--large {
69
+ height: 36px;
70
+ padding: 0 19px;
71
+ font-size: 14px;
72
+ }
73
+
74
+ .ew-button--block {
75
+ display: flex;
76
+ width: 100%;
77
+ }
78
+
79
+ .ew-button:disabled,
80
+ .ew-button--disabled {
81
+ border-color: #e4e7ed;
82
+ background: #f5f7fa;
83
+ color: #c0c4cc;
84
+ cursor: not-allowed;
85
+ }
86
+
87
+ .ew-button--primary:disabled,
88
+ .ew-button--danger:disabled {
89
+ border-color: #a0cfff;
90
+ background: #a0cfff;
91
+ color: #fff;
92
+ }
@@ -0,0 +1 @@
1
+ .ew-button{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 15px;box-sizing:border-box;border:1px solid #dcdfe6;border-radius:var(--btn-radius, 4px);background:#fff;color:#606266;font-family:inherit;font-size:14px;line-height:1;white-space:nowrap;cursor:pointer;outline:none;transition:color .2s,border-color .2s,background-color .2s}.ew-button:hover{border-color:#4096ef;color:#4096ef}.ew-button--primary{border-color:#4096ef;background:#4096ef;color:#fff}.ew-button--primary:hover{border-color:#66b1ff;background:#66b1ff;color:#fff}.ew-button--danger{border-color:#f56c6c;background:#f56c6c;color:#fff}.ew-button--danger:hover{border-color:#f78989;background:#f78989;color:#fff}.ew-button--text{border-color:rgba(0,0,0,0);background:rgba(0,0,0,0);color:#4096ef}.ew-button--text:hover{border-color:rgba(0,0,0,0);background:rgba(0,0,0,0);color:#66b1ff}.ew-button--small{height:28px;padding:0 11px;font-size:12px}.ew-button--large{height:36px;padding:0 19px;font-size:14px}.ew-button--block{display:flex;width:100%}.ew-button:disabled,.ew-button--disabled{border-color:#e4e7ed;background:#f5f7fa;color:#c0c4cc;cursor:not-allowed}.ew-button--primary:disabled,.ew-button--danger:disabled{border-color:#a0cfff;background:#a0cfff;color:#fff}
package/dist/input.css ADDED
@@ -0,0 +1,53 @@
1
+ .ew-input {
2
+ width: 100%;
3
+ height: 32px;
4
+ padding: 0 11px;
5
+ box-sizing: border-box;
6
+ border: 1px solid #dcdfe6;
7
+ border-radius: var(--input-radius, 4px);
8
+ background: #fff;
9
+ color: #303133;
10
+ font-family: inherit;
11
+ font-size: 14px;
12
+ line-height: 1.5;
13
+ outline: none;
14
+ transition: border-color 0.2s, box-shadow 0.2s;
15
+ }
16
+
17
+ .ew-input:hover {
18
+ border-color: #c0c4cc;
19
+ }
20
+
21
+ .ew-input:focus {
22
+ border-color: #4096ef;
23
+ box-shadow: 0 0 0 2px rgba(64, 150, 239, 0.12);
24
+ }
25
+
26
+ .ew-input::placeholder {
27
+ color: #a8abb2;
28
+ }
29
+
30
+ .ew-input--small {
31
+ height: 28px;
32
+ padding: 0 9px;
33
+ font-size: 12px;
34
+ }
35
+
36
+ .ew-input--large {
37
+ height: 36px;
38
+ padding: 0 13px;
39
+ font-size: 14px;
40
+ }
41
+
42
+ .ew-input:disabled,
43
+ .ew-input--disabled {
44
+ border-color: #e4e7ed;
45
+ background: #f5f7fa;
46
+ color: #c0c4cc;
47
+ cursor: not-allowed;
48
+ }
49
+
50
+ .ew-input--readonly {
51
+ background: #fafafa;
52
+ cursor: default;
53
+ }
@@ -0,0 +1 @@
1
+ .ew-input{width:100%;height:32px;padding:0 11px;box-sizing:border-box;border:1px solid #dcdfe6;border-radius:var(--input-radius, 4px);background:#fff;color:#303133;font-family:inherit;font-size:14px;line-height:1.5;outline:none;transition:border-color .2s,box-shadow .2s}.ew-input:hover{border-color:#c0c4cc}.ew-input:focus{border-color:#4096ef;box-shadow:0 0 0 2px rgba(64,150,239,.12)}.ew-input::placeholder{color:#a8abb2}.ew-input--small{height:28px;padding:0 9px;font-size:12px}.ew-input--large{height:36px;padding:0 13px;font-size:14px}.ew-input:disabled,.ew-input--disabled{border-color:#e4e7ed;background:#f5f7fa;color:#c0c4cc;cursor:not-allowed}.ew-input--readonly{background:#fafafa;cursor:default}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ew-color-picker/style",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "EW Color Picker Styles",
5
5
  "main": "dist/index.css",
6
6
  "style": "dist/index.css",
@@ -0,0 +1,96 @@
1
+ @import './variable.scss';
2
+ // 类名前缀,可通过 @use ... with ($prefix: "my-") 自定义,需与 JS 侧 prefix 选项保持一致
3
+ $prefix: "ew-" !default;
4
+
5
+ .#{$prefix}button {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ height: 32px;
10
+ padding: 0 15px;
11
+ box-sizing: border-box;
12
+ border: 1px solid #dcdfe6;
13
+ border-radius: var(--btn-radius, 4px);
14
+ background: #fff;
15
+ color: #606266;
16
+ font-family: inherit;
17
+ font-size: 14px;
18
+ line-height: 1;
19
+ white-space: nowrap;
20
+ cursor: pointer;
21
+ outline: none;
22
+ transition: color 0.2s, border-color 0.2s, background-color 0.2s;
23
+ }
24
+
25
+ .#{$prefix}button:hover {
26
+ border-color: #4096ef;
27
+ color: #4096ef;
28
+ }
29
+
30
+ .#{$prefix}button--primary {
31
+ border-color: #4096ef;
32
+ background: #4096ef;
33
+ color: #fff;
34
+ }
35
+
36
+ .#{$prefix}button--primary:hover {
37
+ border-color: #66b1ff;
38
+ background: #66b1ff;
39
+ color: #fff;
40
+ }
41
+
42
+ .#{$prefix}button--danger {
43
+ border-color: #f56c6c;
44
+ background: #f56c6c;
45
+ color: #fff;
46
+ }
47
+
48
+ .#{$prefix}button--danger:hover {
49
+ border-color: #f78989;
50
+ background: #f78989;
51
+ color: #fff;
52
+ }
53
+
54
+ .#{$prefix}button--text {
55
+ border-color: transparent;
56
+ background: transparent;
57
+ color: #4096ef;
58
+ }
59
+
60
+ .#{$prefix}button--text:hover {
61
+ border-color: transparent;
62
+ background: transparent;
63
+ color: #66b1ff;
64
+ }
65
+
66
+ .#{$prefix}button--small {
67
+ height: 28px;
68
+ padding: 0 11px;
69
+ font-size: 12px;
70
+ }
71
+
72
+ .#{$prefix}button--large {
73
+ height: 36px;
74
+ padding: 0 19px;
75
+ font-size: 14px;
76
+ }
77
+
78
+ .#{$prefix}button--block {
79
+ display: flex;
80
+ width: 100%;
81
+ }
82
+
83
+ .#{$prefix}button:disabled,
84
+ .#{$prefix}button--disabled {
85
+ border-color: #e4e7ed;
86
+ background: #f5f7fa;
87
+ color: #c0c4cc;
88
+ cursor: not-allowed;
89
+ }
90
+
91
+ .#{$prefix}button--primary:disabled,
92
+ .#{$prefix}button--danger:disabled {
93
+ border-color: #a0cfff;
94
+ background: #a0cfff;
95
+ color: #fff;
96
+ }
package/src/input.scss ADDED
@@ -0,0 +1,57 @@
1
+ @import './variable.scss';
2
+ // 类名前缀,可通过 @use ... with ($prefix: "my-") 自定义,需与 JS 侧 prefix 选项保持一致
3
+ $prefix: "ew-" !default;
4
+
5
+ .#{$prefix}input {
6
+ width: 100%;
7
+ height: 32px;
8
+ padding: 0 11px;
9
+ box-sizing: border-box;
10
+ border: 1px solid #dcdfe6;
11
+ border-radius: var(--input-radius, 4px);
12
+ background: #fff;
13
+ color: #303133;
14
+ font-family: inherit;
15
+ font-size: 14px;
16
+ line-height: 1.5;
17
+ outline: none;
18
+ transition: border-color 0.2s, box-shadow 0.2s;
19
+ }
20
+
21
+ .#{$prefix}input:hover {
22
+ border-color: #c0c4cc;
23
+ }
24
+
25
+ .#{$prefix}input:focus {
26
+ border-color: #4096ef;
27
+ box-shadow: 0 0 0 2px rgba(64, 150, 239, 0.12);
28
+ }
29
+
30
+ .#{$prefix}input::placeholder {
31
+ color: #a8abb2;
32
+ }
33
+
34
+ .#{$prefix}input--small {
35
+ height: 28px;
36
+ padding: 0 9px;
37
+ font-size: 12px;
38
+ }
39
+
40
+ .#{$prefix}input--large {
41
+ height: 36px;
42
+ padding: 0 13px;
43
+ font-size: 14px;
44
+ }
45
+
46
+ .#{$prefix}input:disabled,
47
+ .#{$prefix}input--disabled {
48
+ border-color: #e4e7ed;
49
+ background: #f5f7fa;
50
+ color: #c0c4cc;
51
+ cursor: not-allowed;
52
+ }
53
+
54
+ .#{$prefix}input--readonly {
55
+ background: #fafafa;
56
+ cursor: default;
57
+ }