Browse Source

Add CSS for tables

Théophile Bastian 8 months ago
parent
commit
924c5f4d35
2 changed files with 26 additions and 0 deletions
  1. 16 0
      scss/style.scss
  2. 10 0
      static/css/style.css

+ 16 - 0
scss/style.scss

@@ -150,6 +150,22 @@ body {
     color: $title_h3_color;
   }
 
+  table {
+    width: 100%;
+    border-collapse: collapse;
+    border: 2px solid $secondary_bg_color;
+    border-radius: 10px;
+
+    thead {
+      border-bottom: 2px solid darken($secondary_bg_color, 10%);
+    }
+
+    td,th {
+      padding: 10px;
+      border: 1px solid darken($secondary_bg_color, 10%);
+    }
+  }
+
   .pagenamerow {
     display: flex;
     align-items: center;

+ 10 - 0
static/css/style.css

@@ -108,6 +108,16 @@ body {
     font-size: 1.1em;
     text-indent: 4ex;
     color: #ffeccd; }
+  #content table {
+    width: 100%;
+    border-collapse: collapse;
+    border: 2px solid #178ca7;
+    border-radius: 10px; }
+    #content table thead {
+      border-bottom: 2px solid #11667a; }
+    #content table td, #content table th {
+      padding: 10px;
+      border: 1px solid #11667a; }
   #content .pagenamerow {
     display: flex;
     align-items: center;