@qxs-bns/components 0.0.80 → 0.0.81

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.
@@ -1 +1 @@
1
- .el-image-upload__container{line-height:initial}.el-image-upload__control>.el-upload-list--picture-card{color:#969696}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar]{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar] .el-progress-circle{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important;height:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .is-drag{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:unset;border:unset}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot{font-size:16px;font-weight:400}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot :nth-child(1){margin-bottom:10px}.el-image-upload__more-than-limit .is-drag{display:none}.el-image-upload__container .el-upload__tip-text{font-size:14px;line-height:32px;color:#c8c8c8}.el-image-upload__container .el-upload-list__item-divider{width:1px;height:14px;background-color:hsla(0,0%,100%,.5)}.el-image-upload__action-btn{cursor:pointer;border-radius:2px;transition:all .2s ease-in-out}.el-image-upload__action-btn:hover{transform:scale(1.1)}.el-image-upload__action-btn:active{transform:scale(0.95)}.el-image-upload__action-btn--preview:hover>i{color:var(--el-color-primary)}.el-image-upload__action-btn--delete:hover>i{color:var(--el-color-danger)}.el-image-upload__action-btn.is-disabled{cursor:not-allowed !important;opacity:.5}.el-image-upload__action-btn.is-disabled:hover{transform:none}.el-image-upload__action-btn.is-disabled:hover>i{color:inherit}.el-image-upload__action-btn.is-disabled:active{transform:none}.el-image-upload__container .upload-progress{position:absolute;right:0;bottom:0;left:0;z-index:10;height:4px;overflow:hidden;background-color:rgba(0,0,0,.1);border-radius:0 0 6px 6px}.el-image-upload__container .upload-progress .upload-progress-bar{width:0%;height:100%;background-color:var(--el-color-primary);transition:width .3s ease}.el-image-upload__container .upload-debug{position:absolute;top:0;left:0;z-index:20;padding:2px 4px;font-size:10px;color:#fff;background:rgba(0,0,0,.7);border-radius:0 0 4px}
1
+ .el-image-upload__container{line-height:initial}.el-image-upload__control>.el-upload-list--picture-card{color:#969696}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar]{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar] .el-progress-circle{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important;height:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .is-drag{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:unset;background-color:unset;border:unset}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot{font-size:16px;font-weight:400}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot>:nth-child(1){margin-bottom:10px}.el-image-upload__more-than-limit .is-drag{display:none}.el-image-upload__container .el-upload__tip-text{font-size:14px;line-height:32px;color:#c8c8c8}.el-image-upload__container .el-upload-list__item-divider{width:1px;height:14px;background-color:hsla(0,0%,100%,.5)}.el-image-upload__action-btn{cursor:pointer;border-radius:2px;transition:all .2s ease-in-out}.el-image-upload__action-btn:hover{transform:scale(1.1)}.el-image-upload__action-btn:active{transform:scale(0.95)}.el-image-upload__action-btn--preview:hover>i{color:var(--el-color-primary)}.el-image-upload__action-btn--delete:hover>i{color:var(--el-color-danger)}.el-image-upload__action-btn.is-disabled{cursor:not-allowed !important;opacity:.5}.el-image-upload__action-btn.is-disabled:hover{transform:none}.el-image-upload__action-btn.is-disabled:hover>i{color:inherit}.el-image-upload__action-btn.is-disabled:active{transform:none}.el-image-upload__container .upload-progress{position:absolute;right:0;bottom:0;left:0;z-index:10;height:4px;overflow:hidden;background-color:rgba(0,0,0,.1);border-radius:0 0 6px 6px}.el-image-upload__container .upload-progress .upload-progress-bar{width:0%;height:100%;background-color:var(--el-color-primary);transition:width .3s ease}.el-image-upload__container .upload-debug{position:absolute;top:0;left:0;z-index:20;padding:2px 4px;font-size:10px;color:#fff;background:rgba(0,0,0,.7);border-radius:0 0 4px}
@@ -34,6 +34,7 @@
34
34
  justify-content: center;
35
35
  width: 100%;
36
36
  height: 100%;
37
+ padding: unset;
37
38
  background-color: unset;
38
39
  border: unset;
39
40
 
@@ -41,7 +42,7 @@
41
42
  font-size: 16px;
42
43
  font-weight: 400;
43
44
 
44
- :nth-child(1) {
45
+ >:nth-child(1) {
45
46
  margin-bottom: 10px;
46
47
  }
47
48
  }
@@ -1 +1 @@
1
- :where([class*=qxs-]){font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}:where([class*=qxs-]) *,:where([class*=qxs-]) *::before,:where([class*=qxs-]) *::after{box-sizing:border-box}:where([class*=qxs-]) h1,:where([class*=qxs-]) h2,:where([class*=qxs-]) h3,:where([class*=qxs-]) h4,:where([class*=qxs-]) h5,:where([class*=qxs-]) h6{margin:0;font-size:inherit;font-weight:inherit}:where([class*=qxs-]) p,:where([class*=qxs-]) div,:where([class*=qxs-]) span{padding:0;margin:0}:where([class*=qxs-]) ul,:where([class*=qxs-]) ol,:where([class*=qxs-]) li{padding:0;margin:0;list-style:none}:where([class*=qxs-]) a{color:inherit;text-decoration:none;background-color:rgba(0,0,0,0)}:where([class*=qxs-]) button,:where([class*=qxs-]) input,:where([class*=qxs-]) optgroup,:where([class*=qxs-]) select,:where([class*=qxs-]) textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}:where([class*=qxs-]) button,:where([class*=qxs-]) input{overflow:visible}:where([class*=qxs-]) button,:where([class*=qxs-]) select{text-transform:none}:where([class*=qxs-]) input,:where([class*=qxs-]) textarea,:where([class*=qxs-]) select{background:none;border:none;outline:none}:where([class*=qxs-]) img{max-width:100%;height:auto;border-style:none}:where([class*=qxs-]) table{border-spacing:0;border-collapse:collapse}:where([class*=qxs-]) hr{box-sizing:content-box;height:0;overflow:visible}:where([class*=qxs-]) pre{font-family:monospace,monospace;font-size:1em}:where([class*=qxs-]) code,:where([class*=qxs-]) kbd,:where([class*=qxs-]) samp{font-family:monospace,monospace;font-size:1em}:where([class*=qxs-]) small{font-size:80%}:where([class*=qxs-]) sub,:where([class*=qxs-]) sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}:where([class*=qxs-]) sub{bottom:-0.25em}:where([class*=qxs-]) sup{top:-0.5em}
1
+ @layer qxs-reset{:where([class*=qxs-]) :where(*){padding:0;margin:0}}
@@ -1,139 +1,11 @@
1
1
  @use "sass:meta";
2
2
  @use "./mixins/config" as *;
3
3
 
4
- // 定义 normalize 样式 mixin,避免全局污染
5
- @mixin component-normalize {
6
- // 字体和文本重置(放在嵌套规则之前)
7
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
8
- line-height: 1.15;
9
- text-size-adjust: 100%;
10
- -webkit-tap-highlight-color: transparent;
11
-
12
- // 基础盒模型重置
13
- *,
14
- *::before,
15
- *::after {
16
- box-sizing: border-box;
17
- }
18
-
19
- // 常见元素重置
20
- h1,
21
- h2,
22
- h3,
23
- h4,
24
- h5,
25
- h6 {
26
- margin: 0;
27
- font-size: inherit;
28
- font-weight: inherit;
29
- }
30
-
31
- p,
32
- div,
33
- span {
4
+ // 使用层叠层和 :where() 双重降低优先级,确保页面自定义样式可以覆盖
5
+ // 层叠层的优先级最低,:where() 优先级为 0
6
+ @layer qxs-reset {
7
+ :where([class*="#{$namespace}#{$common-separator}"]) :where(*) {
34
8
  padding: 0;
35
9
  margin: 0;
36
10
  }
37
-
38
- ul,
39
- ol,
40
- li {
41
- padding: 0;
42
- margin: 0;
43
- list-style: none;
44
- }
45
-
46
- a {
47
- color: inherit;
48
- text-decoration: none;
49
- background-color: transparent;
50
- }
51
-
52
- button,
53
- input,
54
- optgroup,
55
- select,
56
- textarea {
57
- margin: 0;
58
- font-family: inherit;
59
- font-size: 100%;
60
- line-height: 1.15;
61
- }
62
-
63
- button,
64
- input {
65
- overflow: visible;
66
- }
67
-
68
- button,
69
- select {
70
- text-transform: none;
71
- }
72
-
73
- // 表单元素重置
74
- input,
75
- textarea,
76
- select {
77
- background: none;
78
- border: none;
79
- outline: none;
80
- }
81
-
82
- // 图片重置
83
- img {
84
- max-width: 100%;
85
- height: auto;
86
- border-style: none;
87
- }
88
-
89
- // 表格重置
90
- table {
91
- border-spacing: 0;
92
- border-collapse: collapse;
93
- }
94
-
95
- // 其他常用重置
96
- hr {
97
- box-sizing: content-box;
98
- height: 0;
99
- overflow: visible;
100
- }
101
-
102
- pre {
103
- font-family: monospace, monospace;
104
- font-size: 1em;
105
- }
106
-
107
- code,
108
- kbd,
109
- samp {
110
- font-family: monospace, monospace;
111
- font-size: 1em;
112
- }
113
-
114
- small {
115
- font-size: 80%;
116
- }
117
-
118
- sub,
119
- sup {
120
- position: relative;
121
- font-size: 75%;
122
- line-height: 0;
123
- vertical-align: baseline;
124
- }
125
-
126
- sub {
127
- bottom: -0.25em;
128
- }
129
-
130
- sup {
131
- top: -0.5em;
132
- }
133
- }
134
-
135
- // 为所有 qxs 组件应用 normalize 样式
136
- // 使用 :where() 降低优先级,确保页面自定义样式可以覆盖
137
- :where([class*="#{$namespace}#{$common-separator}"]) {
138
- @include component-normalize;
139
11
  }