mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed lab cut-down gradients
This commit is contained in:
parent
f336974efd
commit
ddef1e72f7
3 changed files with 8 additions and 29 deletions
|
@ -1,23 +1,13 @@
|
|||
@import "~/styles/variables.scss";
|
||||
|
||||
.wrap {
|
||||
padding: $lab_gap $lab_gap 0;
|
||||
padding: $lab_gap / 2 $lab_gap 0;
|
||||
line-height: 1.3em;
|
||||
|
||||
@include tablet {
|
||||
padding: $lab_gap_mobile $lab_gap_mobile 0;
|
||||
position: relative;
|
||||
max-height: 30vh;
|
||||
overflow: hidden;
|
||||
|
||||
&::after {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
background: linear-gradient(transparentize($lab_post_bg, 1), $lab_post_bg 80%);
|
||||
bottom: 0;
|
||||
left: auto;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
}
|
||||
@include clamp(10, 1.3 * 16);
|
||||
font: $font_16_regular;
|
||||
line-height: 1.3em;
|
||||
padding: $lab_gap_mobile / 2 $lab_gap_mobile;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,19 +5,8 @@
|
|||
line-height: 1.3em;
|
||||
|
||||
@include tablet {
|
||||
@include clamp(20, 1.3 * 16);
|
||||
padding: 0 $lab_gap_mobile;
|
||||
position: relative;
|
||||
max-height: 100vh;
|
||||
overflow: hidden;
|
||||
|
||||
&::after {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
background: linear-gradient(transparentize($lab_post_bg, 1), $lab_post_bg 80%);
|
||||
bottom: 0;
|
||||
left: auto;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
}
|
||||
font: $font_16_regular;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -265,5 +265,5 @@ $sidebar_border: transparentize(white, 0.95);
|
|||
|
||||
@mixin hero_gradient {
|
||||
$color: mix($wisegreen, $content_bg, 30%);
|
||||
background: linear-gradient(170deg, lighten($color, 10%), $color 200px);
|
||||
background: linear-gradient(170deg, lighten($color, 10%), $color);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue