From 0fda253457c867ac4dbaab7d7a493b64faa8fa5f Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Wed, 11 Sep 2019 14:42:47 +0200 Subject: [PATCH] Add CSS for table.toc Fix #925 (#1418) --- lib/gollum/public/gollum/stylesheets/template.scss.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/gollum/public/gollum/stylesheets/template.scss.erb b/lib/gollum/public/gollum/stylesheets/template.scss.erb index f399f4ef..4518e876 100644 --- a/lib/gollum/public/gollum/stylesheets/template.scss.erb +++ b/lib/gollum/public/gollum/stylesheets/template.scss.erb @@ -79,6 +79,15 @@ a { overflow: hidden; word-wrap: break-word; + /* MediaWiki's TOC table -- this does not pertain to gollum's own TOC functionality */ + table.toc { + width: auto; + display: inline-table; + .anchor { + display: none; + } + } + .anchor { display: inline-block; position: absolute;