table.scss 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @import "vars";
  2. @import "mixins";
  3. .table-wrap {
  4. // margin-left: -40px;
  5. // margin-right: -40px;
  6. margin-bottom: 30px;
  7. }
  8. .table {
  9. width: 100%;
  10. color: $medium;;
  11. font-family: $main-font;
  12. // border-radius: $radius;
  13. // border: 2px solid rgba(0,0,0,0.0125) !important;
  14. }
  15. .table thead > tr > th:first-child,
  16. .table tbody > tr > th:first-child,
  17. .table tfoot > tr > th:first-child,
  18. .table thead > tr > td:first-child,
  19. .table tbody > tr > td:first-child,
  20. .table tfoot > tr > td:first-child {
  21. width:1%;
  22. padding-left: 25px;
  23. text-align: left !important;
  24. }
  25. .table thead > tr > th:last-child,
  26. .table tbody > tr > th:last-child,
  27. .table tfoot > tr > th:last-child,
  28. .table thead > tr > td:last-child,
  29. .table tbody > tr > td:last-child,
  30. .table tfoot > tr > td:last-child {
  31. padding-right: 25px;
  32. text-align: right;
  33. width: 1%;
  34. }
  35. .table thead > tr > td,
  36. .table tbody > tr > td,
  37. .table tfoot > tr > td {
  38. padding: 10px;
  39. border: none;
  40. font-size: 16px;
  41. line-height: inherit;
  42. //white-space: nowrap;
  43. vertical-align: middle;
  44. height: 60px;
  45. &.no-p {padding: 0px; }
  46. &.max {width: 100%; }
  47. &.min {width: 1%; }
  48. border-bottom: 2px solid rgba(0,0,0,0.0125) !important;
  49. }
  50. .table thead > tr > th,
  51. .table tbody > tr > th,
  52. .table tfoot > tr > th {
  53. border: none;
  54. line-height: inherit;
  55. //white-space: nowrap;
  56. vertical-align: middle;
  57. padding: 10px 20px;
  58. font-size: 10px;
  59. text-transform: uppercase;
  60. text-align: left;
  61. }
  62. .table tbody > tr:nth-child(odd) > td {
  63. background-color: rgba(0,0,0,0.025);
  64. }
  65. .table thead > tr:first-child > td:first-child,
  66. .table tbody > tr:first-child > td:first-child,
  67. .table tfoot > tr:first-child > td:first-child {
  68. border-top-left-radius: 3px;
  69. }
  70. .table thead > tr:first-child > td:last-child,
  71. .table tbody > tr:first-child > td:last-child,
  72. .table tfoot > tr:first-child > td:last-child {
  73. border-top-right-radius: 3px;
  74. }
  75. .table thead > tr:last-child > td:first-child,
  76. .table tbody > tr:last-child > td:first-child,
  77. .table tfoot > tr:last-child > td:first-child {
  78. border-bottom-left-radius: 3px;
  79. }
  80. .table thead > tr:last-child > td:last-child,
  81. .table tbody > tr:last-child > td:last-child,
  82. .table tfoot > tr:last-child > td:last-child {
  83. border-bottom-right-radius: 3px;
  84. }