Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. @import 'global';
  2.  
  3. .responsive-table {
  4. &-container {
  5. position: relative;
  6. table {
  7. margin-bottom: 0;
  8. table-layout: fixed;
  9. white-space: nowrap;
  10. thead {
  11. [data-tip]:hover:before,
  12. [data-tip]:hover:after,
  13. [data-tip]:focus:before,
  14. [data-tip]:focus:after {
  15. display: none;
  16. }
  17. }
  18. }
  19. }
  20. &-sticky {
  21. display: none;
  22. }
  23. &-container.sticky &-sticky {
  24. position: fixed;
  25. top: 0;
  26. background-color: $white;
  27. z-index: 1;
  28. }
  29. &-scrollable {
  30. width: 100%;
  31. overflow-x: scroll;
  32. overflow-y: hidden;
  33. }
  34. &-left {
  35. position: absolute;
  36. display: inline-block;
  37. width: auto;
  38. background-color: $white;
  39. z-index: 2;
  40. box-shadow: rem-calc(5) 0 rem-calc(3) rem-calc(-3) lighten($grey, 20%);
  41. th:last-child,
  42. td:last-child {
  43. border-right: 0;
  44. }
  45. }
  46. &-source {
  47. position: relative;
  48. z-index: 1;
  49. }
  50. @media #{$large-up} {
  51. &-container {
  52. width: auto;
  53. table {
  54. margin-bottom: rem-calc(22);
  55. table-layout: auto;
  56. white-space: normal;
  57. thead {
  58. [data-tip]:hover:before,
  59. [data-tip]:hover:after,
  60. [data-tip]:focus:before,
  61. [data-tip]:focus:after {
  62. display: block;
  63. }
  64. }
  65. }
  66. }
  67. &-scrollable {
  68. width: auto;
  69. overflow-x: visible;
  70. overflow-y: visible;
  71. }
  72. &-left {
  73. display: none;
  74. box-shadow: none;
  75. }
  76. &-container.sticky &-sticky {
  77. display: table;
  78. }
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement