zent
Version:
一套前端设计语言和基于React的实现
48 lines (47 loc) • 1.12 kB
CSS
.zent-card {
background-color: #fff;
border-radius: 2px;
position: relative;
-webkit-transition: all 0.3s;
transition: all 0.3s;
border: 1px solid #e5e5e5;
overflow: hidden
}
.zent-card:hover {
-webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
border-color: transparent;
}
.zent-card-header {
height: 48px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.zent-card-header__title {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 100%;
color: #444;
font-weight: 500;
}
.zent-card-header__action {
-webkit-box-flex: 0;
-ms-flex: none;
flex: none;
}
.zent-card-body {
padding: 20px;
font-size: 12px;
}