Skip to content

Instantly share code, notes, and snippets.

@chadspencer
Created September 25, 2020 18:32
Show Gist options
  • Save chadspencer/6fdafe1b484fc91172c1b9b3f30a25be to your computer and use it in GitHub Desktop.
Save chadspencer/6fdafe1b484fc91172c1b9b3f30a25be to your computer and use it in GitHub Desktop.
const container = {
maxHeight: 600,
overflowY: 'auto',
':before': {
background: 'linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0,0,0,0.1) 100%)',
content: '""',
display: 'block',
height: 12,
left: 0,
marginBottom: '-12px',
position: 'absolute',
top: 35,
top: 'var(--header-height)',
width: '100%',
},
':after': {
background: 'linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0,0,0,0.1) 100%)',
bottom: 0,
content: '""',
display: 'block',
height: 12,
left: 0,
marginTop: '-12px',
position: 'absolute',
width: '100%',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment