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

72 lines
1.2 KiB
Plaintext
Raw Normal View History

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 {
2017-12-26 23:20:28 +08:00
display: flex;
max-width: 420px;
2018-01-13 14:34:50 +08:00
width: ~"calc(50% - 24px)";
2017-02-26 15:41:50 +08:00
min-width: 300px;
2016-02-29 14:08:40 +08:00
height: 130px;
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
font-size: 12px;
color: #777;
2018-01-13 14:34:50 +08:00
margin: 24px 24px 0 0;
2016-02-29 14:08:40 +08:00
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;
}
2017-12-26 23:20:28 +08:00
.resource-card-cover, .resource-card-icon {
display: flex;
align-items: center;
justify-content: center;
2018-01-05 11:14:55 +08:00
flex-shrink: 0;
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;
font-size: 16px;
2017-11-28 16:15:22 +08:00
color: @site-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;
2017-12-29 15:24:55 +08:00
color: #697b8c;
2018-01-13 14:34:50 +08:00
padding-right: 16px;
2016-07-23 18:15:06 +08:00
}