mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-03 23:09:56 +00:00
10cb585dae
* allow $:/core/ui/ControlPanel/Basics to work in the story river + some docs about utility classes * apply changes suggested by twMat * fix some typos and change the base padding for tables * fix a typo and remove whitespace * remove TODO in base CSS
20 lines
1.1 KiB
Plaintext
20 lines
1.1 KiB
Plaintext
created: 20220818093624828
|
|
modified: 20221010074235929
|
|
tags: WikiText
|
|
title: Utility Classes
|
|
type: text/vnd.tiddlywiki
|
|
|
|
<<.from-version "5.2.4">> The following outlines a few predefined CSS classes intended to make it simpler to style [[HTML block-elements|HTML Block Elements]] and [[wikitext tables|Tables in WikiText CSS Utility Classes]].
|
|
|
|
!! General Utility Classes
|
|
|
|
|`tc-center` |Centres a block-element to the middle of the container |
|
|
|`tc-max-width `|Expands a block-element to use the maximum width of the container |
|
|
|`tc-max-width-80`|Sets the width of a block-element to use 80% of the maximum container width. This setting is useful with the `tc-center` class |
|
|
|`tc-edit-max-width `|Expands [[TextWidget]]s to use the maximum available width. See [[ControlPanel -> Info -> Basics|$:/core/ui/ControlPanel/Basics]]|
|
|
|`tc-first-link-nowrap` |Ensures that any links in the first table column will never wrap to the next line |
|
|
|
|
!! Table Utility Classes
|
|
|
|
|`tc-table-no-border` |Removes the borders of a table |
|
|
|`tc-first-col-min-width` |The first column of a table will take up minimal possible width. It adapts to the content | |