feat(componentMarket): 实现组件市场页面及详情页功能
parent
8a56649019
commit
d51c65d51b
@ -0,0 +1,132 @@
|
|||||||
|
.comp-container {
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 32px 27px 27px 29px;
|
||||||
|
|
||||||
|
.comp-preview {
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 345px;
|
||||||
|
height: 100%;
|
||||||
|
margin-right: 68px;
|
||||||
|
padding: 20px 25px;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 2px 2px 20px 0 rgba(0, 0, 0, .25);
|
||||||
|
|
||||||
|
.comp-housing {
|
||||||
|
width: 95%;
|
||||||
|
height: 250px;
|
||||||
|
margin: 0 auto;
|
||||||
|
border: 1px solid #CCCCCC;
|
||||||
|
border-top-left-radius: 6px;
|
||||||
|
border-top-right-radius: 6px;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.comp-housing-header {
|
||||||
|
background-color: #ffa100;
|
||||||
|
color: #ffffff;
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comp-housing-content {
|
||||||
|
.comp-housing-content-api,
|
||||||
|
.comp-housing-content-data {
|
||||||
|
display: flex;
|
||||||
|
padding: 5px;
|
||||||
|
|
||||||
|
.comp-housing-content-api-in,
|
||||||
|
.comp-housing-content-api-out,
|
||||||
|
.comp-housing-content-data-in,
|
||||||
|
.comp-housing-content-data-out {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comp-housing-content-api-out,
|
||||||
|
.comp-housing-content-data-out {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.comp-info {
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
.title {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.update-time {
|
||||||
|
color: #888888;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.extra {
|
||||||
|
.extra-font {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
max-height: 15%;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.params {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 10px 0 25px 20px;
|
||||||
|
background-color: #fbfbfb;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.recommend {
|
||||||
|
padding: 20px;
|
||||||
|
|
||||||
|
|
||||||
|
:global(.arco-col) {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.arco-card-body) {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-box {
|
||||||
|
width: 80px;
|
||||||
|
height: 110px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-box {
|
||||||
|
width: calc(100% - 100px);
|
||||||
|
|
||||||
|
.info-author {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
white-space: nowrap; /* 禁止换行 */
|
||||||
|
overflow: hidden; /* 超出部分隐藏 */
|
||||||
|
text-overflow: ellipsis; /* 溢出部分用省略号表示 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-rate {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.comp-card-footer {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 10px 20px;
|
||||||
|
background: linear-gradient(90deg, #64b5f6, #2175f3);
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue