From 3af0d9aed0ab26ff437bad32f641af6eb4b5e1f5 Mon Sep 17 00:00:00 2001
From: Rushat Gabhane <rushatgabhane@gmail.com>
Date: Thu, 2 Nov 2023 12:40:40 +0530
Subject: [PATCH] move table styles to article only

---
 docs/_sass/_main.scss | 67 ++++++++++++++++++++++++-------------------
 1 file changed, 37 insertions(+), 30 deletions(-)

diff --git a/docs/_sass/_main.scss b/docs/_sass/_main.scss
index f085379357c4..46434787d6df 100644
--- a/docs/_sass/_main.scss
+++ b/docs/_sass/_main.scss
@@ -35,31 +35,8 @@ html {
 }
 
 table {
-    margin-bottom: 20px;
     border-spacing: 0;
     border-collapse: collapse;
-    border-radius: 8px;
-
-    // Box shadow is used here because border-radius and border-collapse don't work together. It leads to double borders.
-    // https://stackoverflow.com/questions/628301/the-border-radius-property-and-border-collapsecollapse-dont-mix-how-can-i-use
-    border-style: hidden;
-    box-shadow: 0 0 0 1px $color-green-borders;
-}
-
-th:first-child {
-    border-top-left-radius: 8px;
-}
-
-th:last-child {
-    border-top-right-radius: 8px;
-}
-
-tr:last-child > td:first-child {
-    border-bottom-left-radius: 8px;
-}
-
-tr:last-child > td:last-child {
-    border-bottom-right-radius: 8px;
 }
 
 caption,
@@ -68,13 +45,6 @@ td {
     text-align: left;
     font-weight: 400;
     vertical-align: middle;
-    padding: 6px 13px;
-    border: 1px solid $color-green-borders;
-}
-
-thead tr th {
-    font-weight: bold;
-    background-color: $color-green-highlightBG;
 }
 
 q,
@@ -395,6 +365,43 @@ button {
             }
         }
 
+        table {
+            margin-bottom: 20px;
+            border-radius: 8px;
+
+            // Box shadow is used here because border-radius and border-collapse don't work together. It leads to double borders.
+            // https://stackoverflow.com/questions/628301/the-border-radius-property-and-border-collapsecollapse-dont-mix-how-can-i-use
+            border-style: hidden;
+            box-shadow: 0 0 0 1px $color-green-borders;
+        }
+
+        th:first-child {
+            border-top-left-radius: 8px;
+        }
+
+        th:last-child {
+            border-top-right-radius: 8px;
+        }
+
+        tr:last-child > td:first-child {
+            border-bottom-left-radius: 8px;
+        }
+
+        tr:last-child > td:last-child {
+            border-bottom-right-radius: 8px;
+        }
+
+        th,
+        td {
+            padding: 6px 13px;
+            border: 1px solid $color-green-borders;
+        }
+
+        thead tr th {
+            font-weight: bold;
+            background-color: $color-green-highlightBG;
+        }
+
         .img-wrap {
             display: flex;
             justify-content: space-around;