Skip to content

Commit

Permalink
Added scroll and scroll snap utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
extrabright committed Dec 8, 2022
1 parent e311946 commit 0a36dc8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions scss/utilities/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,39 @@ $utilities: map-merge($utilities, (
values: auto hidden visible scroll
),

// Scroll
"scroll-behaviour": (
property: scroll-behaviour,
class: scroll,
values: auto smooth
),
"scroll-snap-align": (
property: scroll-snap-align,
class: scroll-snap,
values: start end center none
),
"scroll-snap-stop": (
property: scroll-snap-stop,
class: scroll-snap,
values: normal always
),
"scroll-snap-type": (
property: scroll-snap-type,
class: scroll-snap,
values: (
none: none,
x: x var(--x-scroll-snap-strictness),
y: y var(--x-scroll-snap-strictness),
both: both var(--x-scroll-snap-strictness),
)
),
"scroll-snap-strictness": (
css-var: true,
css-variable-name: scroll-snap-strictness,
class: scroll-snap,
values: mandatory proximity
),

// Transitions
"transition-property": (
property: transition-property,
Expand Down

0 comments on commit 0a36dc8

Please sign in to comment.