From ae66dae515c4ae5239e6f4f3909164453fd95e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=86=E0=A4=AF=E0=A5=81=E0=A4=B7=20=E0=A4=9D=E0=A4=BE?= Date: Tue, 2 Jun 2020 00:31:54 +0545 Subject: [PATCH] added depth-agnostic css to deal with arbitrary depth in toc --- styles/readtheorg/css/readtheorg.css | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/styles/readtheorg/css/readtheorg.css b/styles/readtheorg/css/readtheorg.css index e0bf467..c2e68c0 100644 --- a/styles/readtheorg/css/readtheorg.css +++ b/styles/readtheorg/css/readtheorg.css @@ -800,6 +800,45 @@ hr{ font-size: 100%; margin-bottom:0.809em} +ul.nav > li ul { + display: none; +} + +li.active { + background-color: #e3e3e3; +} + +li.active>a { + color: black !important; +} + +ul.nav>li.active a { + color: #404040 !important; +} + +ul.nav>li.active li.active { + background-color: #c9c9c9; +} + +ul.nav>li.active li.active>a { + color: black !important; + border-right:solid 1px #c9c9c9 !important; + font-weight: bold !important; + display: block !important; +} + +ul.nav>li.active>a { + background-color: #fcfcfc; + color: black !important; + border-bottom:solid 1px #c9c9c9 !important; /* XXX Restrict it to 2nd level */ + border-right:solid 1px #c9c9c9 !important; + font-weight: bold !important; + display: block !important; +} + +li.active>ul { + display: inline !important; +} /* ul.nav li ul li { */ /* display: none; */ /* } */