2016-02-29 14:08:40 +08:00
|
|
|
.resource-cards {
|
2017-12-26 23:20:28 +08:00
|
|
|
display: flex;
|
|
|
|
flex-flow: wrap;
|
2016-02-29 14:08:40 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.resource-card {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2017-12-26 23:20:28 +08:00
|
|
|
display: flex;
|
2018-12-07 16:17:45 +08:00
|
|
|
width: ~'calc(50% - 24px)';
|
2018-11-09 16:59:19 +08:00
|
|
|
min-width: 400px;
|
2019-02-15 10:48:07 +08:00
|
|
|
max-width: 500px;
|
2016-02-29 14:08:40 +08:00
|
|
|
height: 130px;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 24px 24px 0 0;
|
|
|
|
overflow: hidden;
|
|
|
|
color: #777;
|
|
|
|
font-size: 12px;
|
2018-01-13 14:34:50 +08:00
|
|
|
border: 1px solid @border-color-base;
|
2016-11-13 18:58:02 +08:00
|
|
|
border-radius: @border-radius-base;
|
2016-02-29 14:08:40 +08:00
|
|
|
transition: all 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.resource-card:hover {
|
2016-09-29 11:42:39 +08:00
|
|
|
border-color: transparent;
|
2019-02-15 10:48:07 +08:00
|
|
|
box-shadow: 0 3px 8px #d3ddeb;
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.resource-card:hover .resource-card-title {
|
2016-11-13 18:58:02 +08:00
|
|
|
color: @primary-color;
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.resource-card.disabled {
|
|
|
|
opacity: 0.45;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2018-12-07 16:17:45 +08:00
|
|
|
.resource-card-cover,
|
|
|
|
.resource-card-icon {
|
2017-12-26 23:20:28 +08:00
|
|
|
display: flex;
|
2018-01-05 11:14:55 +08:00
|
|
|
flex-shrink: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
align-items: center;
|
2019-04-15 22:44:51 +08:00
|
|
|
justify-content: center;
|
2017-12-26 23:20:28 +08:00
|
|
|
width: 130px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.resource-card-cover img {
|
|
|
|
width: 68px;
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.resource-card-content {
|
2017-12-26 23:20:28 +08:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
justify-content: center;
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.resource-card-title {
|
|
|
|
display: block;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin-bottom: 6px;
|
2016-02-29 14:08:40 +08:00
|
|
|
overflow: hidden;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @site-text-color;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 1.2;
|
2016-02-29 14:08:40 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2018-08-31 17:03:27 +08:00
|
|
|
.resource-card-hot-badge {
|
2019-02-15 10:48:07 +08:00
|
|
|
margin-left: 2px;
|
2018-08-31 17:03:27 +08:00
|
|
|
padding: 0 3px;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 20px;
|
|
|
|
vertical-align: top;
|
2019-02-15 10:48:07 +08:00
|
|
|
background: #f50;
|
|
|
|
border-radius: 2px;
|
2018-08-31 17:03:27 +08:00
|
|
|
}
|
|
|
|
|
2016-02-29 14:08:40 +08:00
|
|
|
.resource-card-description {
|
|
|
|
display: block;
|
2018-01-13 14:34:50 +08:00
|
|
|
padding-right: 16px;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: #697b8c;
|
2016-07-23 18:15:06 +08:00
|
|
|
}
|