Last active
July 18, 2018 10:24
-
-
Save Onepo1ntFive/f8ca71c5e8a91b21294ad9e855202bd8 to your computer and use it in GitHub Desktop.
css. responsive table width shadows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*- 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; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/iKristjan/bootstrap-responsive-table-scrolling-shadows