Merge pull request #2075 from wadefletch/master

Add overscroll features (Resolves #1957)
This commit is contained in:
Adam Wathan 2020-07-27 16:16:06 -04:00 • committed by GitHub
commit 9b21133878
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 164 additions and 0 deletions

18
src/plugins/overscroll.js Normal file
View file

@ -0,0 +1,18 @@
export default function() {
return function({ addUtilities, variants }) {
addUtilities(
{
'.overscroll-auto': { 'overscroll-behavior': 'auto' },
'.overscroll-contain': { 'overscroll-behavior': 'contain' },
'.overscroll-none': { 'overscroll-behavior': 'none' },
'.overscroll-y-auto': { 'overscroll-behavior-y': 'auto' },
'.overscroll-y-contain': { 'overscroll-behavior-y': 'contain' },
'.overscroll-y-none': { 'overscroll-behavior-y': 'none' },
'.overscroll-x-auto': { 'overscroll-behavior-x': 'auto' },
'.overscroll-x-contain': { 'overscroll-behavior-x': 'contain' },
'.overscroll-x-none': { 'overscroll-behavior-x': 'none' },
},
variants('overscroll')
)
}
}