Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Give rendered markdown tables a bordered, rounded surface

370b1527a24feacc92ac4cbe08f3f560dd06012a · Keenan Nemetz · 2d ago · parent 1a15242c

server/web/static/vole.css +16−1

@@ -1017,7 +1017,22 @@ pre code { background: none; border: 0; padding: 0; font-size: inherit; }
1017 1017 color: var(--fg-muted);
1018 1018 }
1019 1019 .md pre { background: var(--bg-panel); }
1020 .md table { width: auto; }
1020 /* A markdown table is its own bordered surface, like a .panel: the table has no
1021 wrapper, so the radius lives on the table and its corner cells. Separate
1022 borders are what let the cells keep the rounded corners. */
1023 .md table {
1024 width: auto;
1025 border: 1px solid var(--border);
1026 border-radius: var(--radius-lg);
1027 border-collapse: separate;
1028 border-spacing: 0;
1029 overflow: hidden;
1030 background: var(--bg-panel);
1031 }
1032 .md table th:first-child { border-top-left-radius: var(--radius-lg); }
1033 .md table th:last-child { border-top-right-radius: var(--radius-lg); }
1034 .md table tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
1035 .md table tr:last-child td:last-child { border-bottom-right-radius: var(--radius-lg); }
1021 1036 .md img { border-radius: var(--radius); }
1022 1037
1023 1038 .diffsum { font-size: calc(13.2px * var(--font-scale)); margin: 10px 0; }