diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-19 15:42:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-19 15:42:26 +0000 |
commit | c43e4639d7a841d58a2181a78c0516ad745704d4 (patch) | |
tree | e28ac1a7ef4f1529c03a72c08a4f377cb30f8475 /themes | |
parent | da4cd3cc8cb6a644138e72ed56972b4f0f5a0033 (diff) | |
download | brdo-c43e4639d7a841d58a2181a78c0516ad745704d4.tar.gz brdo-c43e4639d7a841d58a2181a78c0516ad745704d4.tar.bz2 |
- Patch #309784 by Darren Oh: unordered lists override numbered lists.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/garland/style-rtl.css | 25 | ||||
-rw-r--r-- | themes/garland/style.css | 39 |
2 files changed, 15 insertions, 49 deletions
diff --git a/themes/garland/style-rtl.css b/themes/garland/style-rtl.css index 431359490..2e29b6f49 100644 --- a/themes/garland/style-rtl.css +++ b/themes/garland/style-rtl.css @@ -11,39 +11,20 @@ body { direction: rtl; } -ol li, ul li { - margin: 0.4em .5em 0.4em 0; +ul, .block ul, ol { + padding: 0 1.5em 0 0; } ul.menu, .item-list ul { margin: 0.35em -0.5em 0 0; } -ul.menu ul, .item-list ul ul { - margin-left: 0; - margin-right: 0em; -} - ol li, ul li, ul.menu li, .item-list ul li, li.leaf { margin: 0.15em .5em 0.15em 0; } -ul li, ul.menu li, .item-list ul li, li.leaf { - padding: 0 1.5em .2em 0; - background: transparent url("images/menu-leaf.gif") no-repeat 100% .5em; -} - -ol li { - margin-left: 0; - margin-right: 2em; -} - -ul li.expanded { - background: transparent url("images/menu-expanded.gif") no-repeat 100% .35em; -} - ul li.collapsed { - background: transparent url("images/menu-collapsed-rtl.gif") no-repeat 100% .4em; + list-style-image: url(images/menu-collapsed-rtl.gif); } ul.inline li { diff --git a/themes/garland/style.css b/themes/garland/style.css index 033979163..0f7912629 100644 --- a/themes/garland/style.css +++ b/themes/garland/style.css @@ -53,7 +53,7 @@ h6 { font-size: 110%; } -ul, quote, code, fieldset { +quote, code, fieldset { margin: .5em 0; } @@ -84,51 +84,36 @@ hr { background: #5294c1; } -ul { +ul, .block ul, ol { margin: 0.5em 0 1em; - padding: 0; + padding: 0 0 0 1.5em; /* LTR */ } -ol { - margin: 0.75em 0 1.25em; - padding: 0; +/* Default to menu leaf bullet for unordered list items. "ul" used here so it can cascade to list items and "li.leaf" to override the system leaf image. */ +ul, li.leaf { + list-style-image: url(images/menu-leaf.gif); } -ol li, ul li { - margin: 0.4em 0 0.4em .5em; /* LTR */ +/* This is used to cancel the list style image when an ordered list is embedded in an unordered list. */ +ol { + list-style-image: none; } ul.menu, .item-list ul { margin: 0.35em 0 0 -0.5em; /* LTR */ - padding: 0; -} - -ul.menu ul, .item-list ul ul { - margin-left: 0em; /* LTR */ } ol li, ul li, ul.menu li, .item-list ul li, li.leaf { margin: 0.15em 0 0.15em .5em; /* LTR */ -} - -ul li, ul.menu li, .item-list ul li, li.leaf { - padding: 0 0 .2em 1.5em; - list-style-type: none; - list-style-image: none; - background: transparent url(images/menu-leaf.gif) no-repeat 1px .5em; /* LTR */ -} - -ol li { - padding: 0 0 .3em; - margin-left: 2em; /* LTR */ + padding-bottom: .1em; } ul li.expanded { - background: transparent url(images/menu-expanded.gif) no-repeat 1px .35em; /* LTR */ + list-style-image: url(images/menu-expanded.gif); } ul li.collapsed { - background: transparent url(images/menu-collapsed.gif) no-repeat 0px .4em; /* LTR */ + list-style-image: url(images/menu-collapsed.gif); /* LTR */ } ul li.leaf a, ul li.expanded a, ul li.collapsed a { |