aboutsummaryrefslogtreecommitdiff
path: root/style.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-07-06 13:45:18 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-07-06 13:45:18 +0200
commit6090bb3e0f1535e0020a9f947988d0937a6a4aa0 (patch)
treef9e323715e1f71b1864def1d52523b22fd9a62a1 /style.c
parent37c4b2967863fe5ba265a7fefad60dbd96a09f17 (diff)
WIP css stuffcss
Diffstat (limited to 'style.c')
-rw-r--r--style.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/style.c b/style.c
index 07feb44..54e79a3 100644
--- a/style.c
+++ b/style.c
@@ -22,10 +22,26 @@ const char style_default[] =
"{\n"
" display: grid;\n"
"}\n"
+ ".center\n"
+ "{\n"
+ " justify-content: center;\n"
+ " justify-items: center;\n"
+ " min-height: 100vh;\n"
+ " align-content: center;\n"
+ " align-items: center;\n"
+ "}\n"
+ ".mw-75\n"
+ "{\n"
+ " max-width: 75%;\n"
+ "}\n"
"form, label, table\n"
"{\n"
" margin: auto;\n"
"}\n"
+ ".wrap-anywhere\n"
+ "{\n"
+ " overflow-wrap: anywhere;\n"
+ "}\n"
"div\n"
"{\n"
" align-items: center;\n"
@@ -45,7 +61,7 @@ const char style_default[] =
"}\n"
"table\n"
"{\n"
- " max-width: 50%;\n"
+ " max-width: 90vw;\n"
"}\n"
"tr:nth-child(even)\n"
"{\n"