mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 23:29:30 +08:00
6936599aef
* rename .stylelintrc to .stylelintrc.json for explicit file type * add new npm script lint-fix:style * fix pseudo-element with double colon * function name should be lower except ignored functions * support stylelint declaration-block-no-ignored-properties rule * support sorted CSS properties order for readability and consistency * autofix order of all styles by lint-fix:style script * remove double slash comments after selector * replace .stylelintignore with ignoreFiles in .stylelintrc.json
83 lines
1.4 KiB
Plaintext
83 lines
1.4 KiB
Plaintext
.resource-cards {
|
|
display: flex;
|
|
flex-flow: wrap;
|
|
width: 100%;
|
|
}
|
|
|
|
.resource-card {
|
|
position: relative;
|
|
display: flex;
|
|
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;
|
|
}
|
|
|
|
.resource-card-cover,
|
|
.resource-card-icon {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 130px;
|
|
}
|
|
|
|
.resource-card-cover img {
|
|
width: 68px;
|
|
}
|
|
|
|
.resource-card-content {
|
|
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;
|
|
}
|