From d7b9e6fb02d38bc7a56b08cca96425faacf61999 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Tue, 9 Aug 2022 18:42:01 +0200 Subject: [PATCH] Getting started new table layout (#6894) * change core GettingStarted tiddler table layout * rename tc-table-no-grid to tc-table-no-border --- core/language/en-GB/GettingStarted.tid | 7 +++--- themes/tiddlywiki/vanilla/base.tid | 34 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/core/language/en-GB/GettingStarted.tid b/core/language/en-GB/GettingStarted.tid index ae6e3b167..a3073a521 100644 --- a/core/language/en-GB/GettingStarted.tid +++ b/core/language/en-GB/GettingStarted.tid @@ -9,9 +9,10 @@ Before you start storing important information in ~TiddlyWiki it is vital to mak
-|<$link to="$:/SiteTitle"><> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> | -|<$link to="$:/SiteSubtitle"><> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> | -|<$link to="$:/DefaultTiddlers"><> |<>
<$edit tag="textarea" tiddler="$:/DefaultTiddlers"/>
//<>// | +|tc-table-no-border tc-first-col-min-width tc-first-link-nowrap|k +| <$link to="$:/SiteTitle"><>|<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> | +| <$link to="$:/SiteSubtitle"><>|<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> | +|^ <$link to="$:/DefaultTiddlers"><>
<>|<$edit tag="textarea" tiddler="$:/DefaultTiddlers"/>
//<>// |
See the [[control panel|$:/ControlPanel]] for more options. diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index b3a726d30..f50df6bcd 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -293,6 +293,10 @@ pre > code { color: inherit; } +/* +Table defaults +*/ + table { border: 1px solid <>; width: auto; @@ -320,10 +324,40 @@ table tfoot tr td { background-color: <>; } +/* +Table utility classes +*/ + +/* Remove borders from table as used in eg: GettingStarted*/ +.tc-table-no-border, +.tc-table-no-border th, +.tc-table-no-border td { + border: initial; +} + +/* First column in table width will fit to text.*/ +/* This rule makes most sense with tc-first-link-nowrap*/ +.tc-first-col-min-width td:nth-child(1) { + width: 1%; +} + +/* First link A element will not wrap */ +.tc-first-link-nowrap:first-of-type a { + white-space: nowrap; +} + +/* +CSV parser plugin +*/ + .tc-csv-table { white-space: nowrap; } +/* +Tiddler frame in story river +*/ + .tc-tiddler-frame img, .tc-tiddler-frame svg, .tc-tiddler-frame canvas,