ant-design/site/theme/static/resource.less

70 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-02-29 14:08:40 +08:00
.resource-cards {
width: 100%;
}
.resource-card {
max-width: 350px;
width: 40%;
min-width: 300px;;
height: 130px;
border: 1px solid #e9e9e9;
border-radius: 6px;
font-size: 12px;
color: #777;
display: inline-block;
margin: 20px 40px 10px 0;
vertical-align: middle;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.resource-card:hover {
2016-07-23 18:15:06 +08:00
box-shadow: 0 1px 6px rgba(100, 100, 100, .2);
2016-02-29 14:08:40 +08:00
}
.resource-card:hover .resource-card-title {
color: #2db7f5;
}
.resource-card.disabled {
opacity: 0.45;
pointer-events: none;
}
.resource-card img {
display: inline-block;
vertical-align: middle;
width: 50px;
margin: 0 20px 0 24px;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.resource-card-content {
display: inline-block;
vertical-align: middle;
position: absolute;
top: 50%;
transform: translateY(-50%);
margin-left: 92px;
}
.resource-card-title {
display: block;
font-size: 16px;
color: #666;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
line-height: 1;
margin-bottom: 8px;
}
.resource-card-description {
display: block;
color: #999;
padding-right: 8px;
2016-07-23 18:15:06 +08:00
}