Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 24 additions & 13 deletions website/sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -227,23 +227,34 @@ body > .page {
.ripple {
Comment thread
Keavon marked this conversation as resolved.
display: block;
background: none;
// Covers up content that extends up underneath the header
fill: white;
stroke: currentColor;
--ripple-height: 16px;
// Total SVG height splits into space above the baseline (for raised bumps and wave crests) and space below (for wave troughs that dip into the page body)
--ripple-height: 32px;
--ripple-baseline-from-top: 16px;
--ripple-taper-half-width: 40px;
height: var(--ripple-height);
margin-top: calc(-1 * var(--ripple-height) + var(--border-thickness));
margin-bottom: calc(-1 * var(--border-thickness));
stroke-width: var(--border-thickness);
margin-top: calc(-1 * var(--ripple-baseline-from-top) + var(--border-thickness));
margin-bottom: calc(-1 * (var(--ripple-height) - var(--ripple-baseline-from-top)) - var(--border-thickness));
// Allow taper polygons (apex at +/- 40px) and wave crests/troughs to spill outside the SVG box; the path's off-screen fill corners are still drawn within bounds since the line/mask are split
overflow: visible;
clip-path: inset(-100px calc(-1 * var(--ripple-taper-half-width)) -100px calc(-1 * var(--ripple-taper-half-width)));
pointer-events: none;

.ripple-mask {
// Covers up content that extends up underneath the header
fill: white;
stroke: none;
}

&::before,
&::after {
content: none;
.ripple-line {
fill: none;
stroke: currentColor;
stroke-width: var(--border-thickness);
}
}

hr {
background: none;
polygon {
fill: currentColor;
stroke: none;
}
}

@media screen and (max-width: 1400px) {
Expand Down
Loading
Loading