From 71ec66100696eb711e44a2717eaf969b7b99e1a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Fri, 24 Jan 2020 12:17:58 +0100 Subject: [PATCH] Center all numeric cell in table --- content/multipledataset.html | 2 +- static/css/table.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/content/multipledataset.html b/content/multipledataset.html index 19d07569..fc7bb92d 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -375,7 +375,7 @@ draft: false $("").text(String.raw`${LatexInline[0]}${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} (${ex[2].LaTeX}) ${LatexInline[1]}`).appendTo(tr) var entries = Array.from(exdat.entries()) for (const method of sortedMethods) { - td = $("") + td = $("").addClass("NumberCell") kv = entries.find(x => { return JSON.stringify(method) == x[0] }) diff --git a/static/css/table.css b/static/css/table.css index 00c5e081..262d0c20 100644 --- a/static/css/table.css +++ b/static/css/table.css @@ -1,3 +1,6 @@ table.datatable > tbody > tr > td { white-space: nowrap; +} +td.NumberCell { + text-align: center; } \ No newline at end of file