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

71 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%;
2017-02-26 15:41:50 +08:00
min-width: 300px;
2016-02-29 14:08:40 +08:00
height: 130px;
border: 1px solid #e9e9e9;
2016-11-13 18:58:02 +08:00
border-radius: @border-radius-base;
2016-02-29 14:08:40 +08:00
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-09-29 11:42:39 +08:00
box-shadow: 0 3px 8px #d3ddeb;
border-color: transparent;
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;
}
.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: @text-color;
2016-02-29 14:08:40 +08:00
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
2016-09-29 11:42:39 +08:00
line-height: 1.2;
margin-bottom: 6px;
2016-02-29 14:08:40 +08:00
}
.resource-card-description {
display: block;
color: #999;
padding-right: 8px;
2016-07-23 18:15:06 +08:00
}