You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.4 KiB

.resource-cards {
7 years ago
display: flex;
flex-flow: wrap;
width: 100%;
}
.resource-card {
position: relative;
7 years ago
display: flex;
6 years ago
width: ~'calc(50% - 24px)';
min-width: 400px;
max-width: 500px;
height: 130px;
margin: 24px 24px 0 0;
overflow: hidden;
color: #777;
font-size: 12px;
border: 1px solid @border-color-base;
border-radius: @border-radius-base;
transition: all 0.3s ease;
}
.resource-card:hover {
border-color: transparent;
box-shadow: 0 3px 8px #d3ddeb;
}
.resource-card:hover .resource-card-title {
color: @primary-color;
}
.resource-card.disabled {
opacity: 0.45;
pointer-events: none;
}
6 years ago
.resource-card-cover,
.resource-card-icon {
7 years ago
display: flex;
7 years ago
flex-shrink: 0;
align-items: center;
justify-content: center;
7 years ago
width: 130px;
}
.resource-card-cover img {
width: 68px;
}
.resource-card-content {
7 years ago
display: flex;
flex-flow: column;
justify-content: center;
}
.resource-card-title {
display: block;
margin-bottom: 6px;
overflow: hidden;
color: @site-text-color;
font-size: 16px;
line-height: 1.2;
white-space: nowrap;
text-overflow: ellipsis;
}
.resource-card-hot-badge {
margin-left: 2px;
padding: 0 3px;
color: #fff;
font-size: 12px;
line-height: 20px;
vertical-align: top;
background: #f50;
border-radius: 2px;
}
.resource-card-description {
display: block;
padding-right: 16px;
color: #697b8c;
8 years ago
}