[gimp-web] themes: style tables in articles.



commit 05268c040b185e6cbb0837a7da5951f73d5737be
Author: Jehan <jehan girinstud io>
Date:   Tue Aug 23 16:35:35 2022 +0200

    themes: style tables in articles.

 themes/newgimp/static/css/article.css | 36 +++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
---
diff --git a/themes/newgimp/static/css/article.css b/themes/newgimp/static/css/article.css
index c3ad4e49..59a160cc 100644
--- a/themes/newgimp/static/css/article.css
+++ b/themes/newgimp/static/css/article.css
@@ -10,6 +10,42 @@
     color: #555;
 }
 
+.entry-content table {
+    max-width: 34rem;
+    color: #555;
+    margin: 0 auto;
+
+    font-size: 0.85rem;
+
+    border-collapse: collapse;
+    border: 1px solid;
+    width: 100%;
+}
+
+.entry-content table th, .entry-content table td {
+    border-collapse: collapse;
+    border: 1px solid;
+    padding: 1px 4px 1px 4px;
+}
+
+.entry-content table thead tr {
+    background-color: #2e3436;
+    color: white;
+    text-align: center;
+}
+
+.entry-content table tbody tr {
+    border-bottom: 1px solid #dddddd;
+}
+
+.entry-content table tbody tr:nth-of-type(even) {
+    background-color: #eeeeee;
+}
+
+.entry-content table tbody tr:last-of-type {
+    border-bottom: 2px solid #2e3436;
+}
+
 .entry-content ul,
 .entry-content ol {
     max-width: 33rem;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]