Skip to content

Commit 60dd88b

Browse files
vaebekagol
authored andcommitted
docs(card): 文档优化去除 icon css的引入,去除未使用的css样式代码。 (close DevCloudFE#1231)
1 parent 3d4f3d0 commit 60dd88b

File tree

1 file changed

+0
-56
lines changed
  • packages/devui-vue/docs/components/card

1 file changed

+0
-56
lines changed

packages/devui-vue/docs/components/card/index.md

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
</d-card>
3131
</template>
3232
<style lang="scss">
33-
@import '@devui-design/icons/icomoon/devui-icon.css';
3433
3534
.card-demo-basic {
3635
cursor: pointer;
@@ -124,7 +123,6 @@
124123
</d-card>
125124
</template>
126125
<style lang="scss">
127-
@import '@devui-design/icons/icomoon/devui-icon.css';
128126
129127
.card-demo-use-img {
130128
cursor: pointer;
@@ -189,7 +187,6 @@
189187
</d-card>
190188
</template>
191189
<style lang="scss">
192-
@import '@devui-design/icons/icomoon/devui-icon.css';
193190
194191
.card-demo-custom-area {
195192
cursor: pointer;
@@ -239,59 +236,6 @@
239236

240237
:::
241238

242-
<style lang="scss">
243-
@import '@devui-design/icons/icomoon/devui-icon.css';
244-
.card-demo-icon {
245-
cursor: pointer;
246-
font-size: 16px;
247-
margin-right: 8px;
248-
vertical-align: middle;
249-
}
250-
.card-demo-icon + span {
251-
vertical-align: middle;
252-
}
253-
.card-block {
254-
margin-right: 16px;
255-
i{
256-
cursor: pointer;
257-
font-size: 16px;
258-
margin-right: 8px;
259-
vertical-align: middle;
260-
}
261-
i + span {
262-
vertical-align: middle;
263-
}
264-
}
265-
.d-card {
266-
cursor: pointer;
267-
transition:
268-
box-shadow .3s cubic-bezier(.645,.045,.355,1),
269-
transform .3s cubic-bezier(.645,.045,.355,1);
270-
&:hover {
271-
box-shadow: 0 4px 16px 0 rgba(0,0,0,.1);
272-
transform: translateY(-5px);
273-
}
274-
}
275-
.card-container {
276-
width: 350px;
277-
}
278-
img {
279-
max-width: none;
280-
}
281-
.action-text {
282-
color: #8a8e99;
283-
}
284-
.custom-avatar {
285-
display: flex;
286-
justify-content: space-between;
287-
margin-bottom: 16px;
288-
.custom-star-action {
289-
font-size: 20px;
290-
cursor: pointer;
291-
}
292-
}
293-
</style>
294-
295239
### Card 参数
296240

297241
| 参数 | 类型 | 默认 | 说明 | 跳转 Demo |

0 commit comments

Comments
 (0)