Skip to content

Instantly share code, notes, and snippets.

@Onepo1ntFive
Last active July 18, 2018 10:24
Show Gist options
  • Select an option

  • Save Onepo1ntFive/f8ca71c5e8a91b21294ad9e855202bd8 to your computer and use it in GitHub Desktop.

Select an option

Save Onepo1ntFive/f8ca71c5e8a91b21294ad9e855202bd8 to your computer and use it in GitHub Desktop.
css. responsive table width shadows
/*- https://github.com/iKristjan/bootstrap-responsive-table-scrolling-shadows -*/
.table-responsive {
background:
radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)),
radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 100% 0;
background-color: white;
background-repeat: no-repeat;
background-size: 10px 100%;
margin-bottom: 15px;
overflow-x: auto;
}
.table-responsive > table {
background:
linear-gradient(to right, white 30%, rgba(255,255,255,0)),
linear-gradient(to left, white 30%, rgba(255,255,255,0)) 100% 0;
background-size: 50px 100%;
background-repeat: no-repeat;
max-width: none;
margin-bottom: 0;
}
@Onepo1ntFive
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment