Advertisement
fauzanjeg

Change Table Style to Default

Aug 1st, 2021
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.20 KB | None | 0 0
  1. /* START UNSET */
  2. /* Table */
  3. .entry-content table {
  4.     width: unset;
  5.     width: unset;
  6.     width: unset;
  7.     width: unset;
  8.     max-width: unset;
  9.     overflow-x: unset;
  10.     word-break: unset; /* prevent from long text, such as URL, etc */
  11.     margin: unset;
  12.     line-height: unset;
  13.     color: unset;
  14. }
  15.  
  16. .entry-content tr {
  17.     border-bottom: unset;
  18. }
  19.  
  20. .entry-content tbody tr:hover {
  21.     color: unset;
  22.     background: unset;
  23. }
  24.  
  25. .entry-content thead tr {
  26.     border-bottom: unset;
  27. }
  28.  
  29. .entry-content th, .entry-content td {
  30.     font-size: unset;
  31.     /* padding: unset; */
  32.     text-align: unset;
  33.     border-left: unset;
  34.     border-right: unset;
  35. }
  36.  
  37. .entry-content th {
  38.     color: unset;
  39.     /* font-weight: unset; */
  40.     /* vertical-align: unset; */
  41. }
  42.  
  43. .entry-content tbody tr:last-child,
  44. .entry-content th:first-child,
  45. .entry-content td:first-child,
  46. .entry-content th:last-child,
  47. .entry-content td:last-child {
  48.     /* border: unset; */
  49. }
  50.  
  51. .entry-content dt {
  52.     font-weight: unset;
  53. }
  54.  
  55. .entry-content dd {
  56.     margin-bottom: unset;
  57. }
  58.  
  59. .entry-content em, .entry-content cite {
  60.     font-style: unset;
  61. }
  62.  
  63. .entry-content ins {
  64.     background: unset;
  65. }
  66.  
  67. .entry-content sub, .entry-content sup {
  68.     font-size: unset;
  69. }
  70.  
  71. .entry-content sub {
  72.     vertical-align: unset;
  73.     bottom: unset;
  74. }
  75.  
  76. .entry-content sup {
  77.     vertical-align: unset;
  78.     top: unset;
  79. }
  80. /* END UNSET */
  81.  
  82. /* START CUSTOM TABLE */
  83. table, .wp-block-table {
  84.     width: 100%!important;
  85.     min-width: 240px!important;
  86.     border-collapse: collapse!important;
  87. }
  88.  
  89. table {
  90.     display: table!important;
  91. /*     border-collapse: separate!important; */
  92.     box-sizing: border-box!important;
  93.     text-indent: initial!important;
  94.     border-spacing: 2px!important;
  95.     border-color: grey!important;
  96. }
  97.  
  98. tbody {
  99.     display: table-row-group!important;
  100.     vertical-align: middle!important;
  101.     border-color: inherit!important;
  102. }
  103.  
  104. tr {
  105.     display: table-row!important;
  106.     vertical-align: inherit!important;
  107.     border-color: inherit!important;
  108. }
  109.  
  110. table td, table th, .wp-block-table td, .wp-block-table th {
  111.     padding: calc(0.5 * 30px)!important;
  112.     border: 1px solid!important;
  113. }
  114.  
  115. td {
  116.     display: table-cell;
  117.     vertical-align: inherit!important;
  118. }
  119. /* END CUSTOM TABLE */
  120.  
  121.  
  122.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement