Skip to content

Instantly share code, notes, and snippets.

View memophen's full-sized avatar

Memophenon memophen

View GitHub Profile
@memophen
memophen / Memophenal#000.md
Last active March 31, 2020 20:13
Memophenals

Under the heading "Memophenals" I have collected some gists about working with Joplin. Until now these relate to the graphic design, i.e. Markdown, CSS and HTML.

  1. Table borders struggling for visibility
    Possibly more than you want to know about how the fittest borders of table components survive, and what it takes to become the fittest.
  2. A stack of table backgrounds
    What you will see when looking down on a pile of table components.
@memophen
memophen / Memophenal#002-Tables(2).md
Last active March 31, 2020 20:16
A stack of table backgrounds

Memophenal #2 of more

The stratified society of table components: Backgrounds

As far as backgrounds of table components are concerned, the visual organization of a table is rather straightforward. Each component lives, dependent on its type, in one of the layers of a stack as shown below.

Table-layer-order

The direction of view is top-down, so the backgrounds of lower layers are only visible as far as the components above it have a transparent background (which is the default).

Tables defined by (Multi)Markdown code don't contain column or column group elements. That makes the model even more simple.

@memophen
memophen / Memophenal#001-Tables.md
Last active March 31, 2020 20:16
Table borders struggling for visibility

Memophenal #1 of more

The society of table components:
Borders struggling for visibility

Borders of different table components may overlap. You can choose to keep them separate by setting the table property border-collapse: separate; so that thay are all clearly visible. The alternative is border-collapse: collapse;, which will make only one of each overlapping borders visible. There are some rules to decide which border, but unfortunately they can be interpreted in different ways.

The visibility rules

  1. Borders with border-style: hidden; dominate all other border styles.
  2. Borders with a style of none always lose.
  3. Wider borders dominate the narrower ones.