Merge pull request #2075 from wadefletch/master
Add overscroll features (Resolves #1957)
This commit is contained in:
commit
9b21133878
6 changed files with 164 additions and 0 deletions
18
src/plugins/overscroll.js
Normal file
18
src/plugins/overscroll.js
Normal 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')
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue