Skip to content

Commit

Permalink
docs: update site home recommand style
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Jun 7, 2021
1 parent a49d74a commit 7897bd7
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions site/theme/template/Home/RecommendPage.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
@import '../../../../components/style/themes/default.less';

.linear-gradient(@mid-pos, @end-pos) {
background: linear-gradient(
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 0.25) @mid-pos,
rgba(0, 0, 0, 0.65) @end-pos
);
}

.recommend-block {
position: relative;
display: block;
Expand Down Expand Up @@ -37,16 +45,15 @@
}

&::before {
.linear-gradient(40%, 100%);

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%
);
opacity: 0.3;
transition: all 0.5s;
content: '';
pointer-events: none;
}
Expand Down Expand Up @@ -107,9 +114,17 @@
.recommend-block {
&-main {
height: 408px;

&::before {
.linear-gradient(70%, 100%);
}
}

&:hover {
&::before {
opacity: 1;
}

.recommend-content {
transform: translateY(0);

Expand Down

0 comments on commit 7897bd7

Please sign in to comment.