From 3c236e820c43edcf35bc79c2dfcf2ae314b50eb7 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 7 Jan 2016 09:55:44 +0100 Subject: [PATCH] Doc: Color toc numbers refs #8487 --- modules/doc/public/css/module.less | 39 ++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/modules/doc/public/css/module.less b/modules/doc/public/css/module.less index a9b505714..4095ecffd 100644 --- a/modules/doc/public/css/module.less +++ b/modules/doc/public/css/module.less @@ -81,11 +81,6 @@ pre > code { color: inherit; } -.toc { - margin: 0; - padding: 0 0 0 1em; -} - .search-highlight { .rounded-corners(); @@ -93,3 +88,37 @@ pre > code { color: @text-color-on-icinga-blue; padding: 0 0.3em 0 0.3em; } + +.toc { + counter-reset: li; + list-style-type: none; + margin: 0; + padding: 0; + + li { + counter-increment: li; + margin-top: 0.25em; + + > .toc { + margin-left: 2em; + } + + a { + &:before { + .rounded-corners(); + + background-color: @icinga-blue; + color: @text-color-on-icinga-blue; + content: counter(li) "."; + display: inline-block; + font-size: small; + margin-right: 0.25em; + min-width: 1.5em; + padding: 0.25em; + text-align: center; + } + + display: block; + } + } +}