From beed1ab8540ee932de3dc198049f0b714efce5d4 Mon Sep 17 00:00:00 2001 From: Francesco Schwarz Date: Tue, 5 Jun 2012 18:19:10 +0200 Subject: [PATCH] simplified handling of nested lists --- css/main.css | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/css/main.css b/css/main.css index a508dce..41c06cf 100644 --- a/css/main.css +++ b/css/main.css @@ -144,35 +144,26 @@ body { } .reveal ol { - list-style: decimal inside; + list-style-type: decimal; } .reveal ul { - list-style: disc; + list-style-type: disc; +} + +.reveal ul ul { + list-style-type: square; +} + +.reveal ul ul ul { + list-style-type: circle; } - .reveal ul>li>ul { - list-style: square; - } - .reveal ul>li>ul>li>ul { - list-style: circle; - } -/* Brain freeze – there has to be a better way of doing this? */ .reveal ul ul, .reveal ul ol, .reveal ol ol, -.reveal ol ul, - -.reveal ul ul ul, -.reveal ul ul ol, -.reveal ul ol ol, -.reveal ul ol ul, - -.reveal ol ol ol, -.reveal ol ol ul, -.reveal ol ul ul, -.reveal ol ul ol { +.reveal ol ul { display: block; margin-left: 40px; }