From a2a229c720efe1febcf518e410f4a38016ccc2d7 Mon Sep 17 00:00:00 2001
From: Herwin
Date: Thu, 14 Nov 2024 21:07:01 +0100
Subject: [PATCH] Added tables page Update index.php, sidebar.php, and 2 more
files...
---
htdocs/index.php | 3 ++
htdocs/parts/sidebar.php | 7 +++++
htdocs/parts/tables.php | 66 ++++++++++++++++++++++++++++++++++++++++
scss/site/table.scss | 1 +
4 files changed, 77 insertions(+)
create mode 100644 htdocs/parts/tables.php
diff --git a/htdocs/index.php b/htdocs/index.php
index 4818cd0..e3d7691 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -106,6 +106,9 @@
+
+
+
diff --git a/htdocs/parts/sidebar.php b/htdocs/parts/sidebar.php
index 0d16f63..908bfb5 100644
--- a/htdocs/parts/sidebar.php
+++ b/htdocs/parts/sidebar.php
@@ -88,6 +88,13 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
+
+
+
+
diff --git a/htdocs/parts/tables.php b/htdocs/parts/tables.php
new file mode 100644
index 0000000..a068114
--- /dev/null
+++ b/htdocs/parts/tables.php
@@ -0,0 +1,66 @@
+
+
+
+
+
Tables
+
+
+
+
+ Unstyled table
+
+ Unstyled tables have no cell gap, no border and no other form of styling.
+
+
+
+ Cell 1.1 |
+ Cell 1.2 |
+
+
+ Cell 2.1 |
+ Cell 2.2 |
+
+
+
+ table>tr*2>td*2
+
+
+ Stylish table
+
+ Tables can quickly be styled by simply using the following classes:
+
+
+ - stylish - Adds colors to cells and makes headers bold
+ - table-p-xs - Adds a xs padding to all cells
+ - table-p-s - Adds an s padding to all cells
+ - table-h-p-s - Adds an s padding to the header cells
+
+
+
+ Head 1 |
+ Head 2 |
+
+
+ Cell 1.1 |
+ Cell 1.2 |
+
+
+ Cell 2.1 |
+ Cell 2.2 |
+
+
+
+
+ table.stylish.table-p-s.border
+ th>td*2
+ tr*2>td*2
+
+
+
+
+
\ No newline at end of file
diff --git a/scss/site/table.scss b/scss/site/table.scss
index f1d4c93..c1ed917 100644
--- a/scss/site/table.scss
+++ b/scss/site/table.scss
@@ -48,6 +48,7 @@ table.stylish {
}
}
+// FIXME: Move this out in its own alignment section...
// Centers the cells' content vertically
.table-v-center {
tr, td {