Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scroll shadow to #multipage-nav wrapper for overflowing screens #12559

Merged
Merged
Changes from 4 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
35 changes: 35 additions & 0 deletions source/sass/components/multipage-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,41 @@
@media (min-width: $bp-md) {
border-bottom: 1px solid $gray-20;
}

> .container > .row > .col-12 {
overflow: auto;

background:
/* Shadow Cover LEFT */
linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
/* Shadow Cover RIGHT */
linear-gradient(to right, rgba(255, 255, 255, 0) 70%, white 100%),
/* Shadow LEFT */
radial-gradient(
farthest-side at 0 50%,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0)
),
/* Shadow RIGHT */
radial-gradient(
farthest-side at 100% 50%,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0)
);

background-repeat: no-repeat;
background-size:
40px 100%,
calc(100% - 40px) 100%,
14px 100%,
14px 100%;
background-position:
left center,
right center,
left center,
right center;
background-attachment: local, local, scroll, scroll;
}
}
}

Expand Down
Loading