mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
abf215a982
* init recommend block * init design pages * home frames * add background banner * hello, Hitu makes the animation * add media query * add images * update types * add declare * preload support * update ignore * additional ignore site Home lint * update ignore * add hover effect * adjust alt of bannber * adjust lang & card shadow * fix typo * adjust desc * hitu in english * article add link * Certainty is hitu * Meaning Hitu * Growth with Hitu * Natural Hitu * slow down of Natural * adjust speed of icons * New Meaning animation * adjust animation duration * update card link * update link * values doc * replace images * faster Growth * update values * fix lint * all slow down * adjust padding * update icons * adjust margin * update images * adjust montion * adjust by designer * update pages * update design prod * update articles * update site style * update doc * update images * update style * lint fix * adjust liner color * github text color update * adjust margin of title * mobile design * update design sub card * update style * less lint * update images * design card auto height * update img * update logo transition * adjust card style * adjust style to fix 184 * adjust nav style * category it * slow down of logo * update style * hide video link * hitu article * use img of hitu * update docs * style lint * update Hitu layout doc * update images * speed up logo * update link * clean up * clean up * update doc * adjust doc * update images
105 lines
1.7 KiB
Plaintext
105 lines
1.7 KiB
Plaintext
@import '../../../../components/style/themes/default.less';
|
|
|
|
.recommend-block {
|
|
position: relative;
|
|
display: block;
|
|
height: 192px;
|
|
overflow: hidden;
|
|
border-radius: 2px;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
vertical-align: top;
|
|
background-clip: cover;
|
|
}
|
|
|
|
&::before {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: linear-gradient(
|
|
rgba(0, 0, 0, 0) 0%,
|
|
rgba(0, 0, 0, 0, 0.25) 30%,
|
|
rgba(0, 0, 0, 0.5) 100%
|
|
);
|
|
content: '';
|
|
pointer-events: none;
|
|
}
|
|
|
|
.recommend-popularize {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
padding: 0 8px;
|
|
color: #314659;
|
|
line-height: 28px;
|
|
background: #ffd75a;
|
|
border-radius: 0 0 4px 0;
|
|
}
|
|
|
|
.recommend-content {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding: 0 20px 24px;
|
|
transform: translateY(100%);
|
|
transition: transform 0.3s;
|
|
|
|
.ant-typography {
|
|
margin: 0;
|
|
color: #fff;
|
|
}
|
|
|
|
h4 {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
padding: 0 20px 24px;
|
|
transform: translateY(-100%);
|
|
transition: padding 0.3s;
|
|
}
|
|
|
|
p {
|
|
color: rgba(255, 255, 255, 0.85);
|
|
opacity: 0;
|
|
transition: opacity 0.3s, margin 0.3s;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: @screen-sm-min) {
|
|
.recommend-block {
|
|
h4.ant-typography {
|
|
padding: 0 16px 16px;
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (min-width: @screen-sm-min) {
|
|
.recommend-block {
|
|
&-main {
|
|
height: 408px;
|
|
}
|
|
|
|
&:hover {
|
|
.recommend-content {
|
|
transform: translateY(0);
|
|
|
|
h4 {
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
p {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|