Futzed with list item handling a bit

This commit is contained in:
kipp%netscape.com 1998-12-11 22:22:29 +00:00
Родитель c3786dcd43
Коммит 419f982169
2 изменённых файлов: 52 добавлений и 42 удалений

Просмотреть файл

@ -317,6 +317,11 @@ FIELDSET {
// Lists
:BULLET {
display: inline;
margin-right: 8px;
}
UL, MENU, DIR {
display: block;
margin-right: 0;
@ -325,6 +330,7 @@ UL, MENU, DIR {
list-style-type: disc;
margin-left: 40px;
}
OL {
display: block;
margin-right: 0;
@ -334,6 +340,25 @@ OL {
margin-left: 40px;
}
LI {
display: list-item;
list-style-position: inside;
}
UL LI, OL LI, MENU LI, DIR LI {
list-style-position: outside;
}
// Nested lists have no top/bottom margins
UL UL, UL OL, UL MENU, UL DIR,
MENU UL, MENU OL, MENU MENU, MENU DIR,
DIR UL, DIR OL, DIR MENU, DIR DIR,
OL UL, OL OL, OL MENU, OL DIR
{
margin-top: 0;
margin-bottom: 0;
}
// 2 deep unordered lists use a circle
OL UL, UL UL, MENU UL, DIR UL,
OL MENU, UL MENU, MENU MENU, DIR MENU,
@ -362,26 +387,6 @@ DIR OL DIR, DIR UL DIR, DIR MENU DIR, DIR DIR DIR
list-style-type: square;
}
LI {
display: list-item;
list-style-position: inside;
margin-bottom: 0;
margin-top: 0;
}
UL LI, OL LI, MENU LI, DIR LI {
list-style-position: outside;
}
:BULLET {
display: inline;
// Make this be 1/2 the "UL LI { padding-left:}" value above!
margin-right: 10px;
}
UL UL, UL OL, OL UL, OL OL {
margin-top: 0;
margin-bottom: 0;
}
DL {
display: block;
margin-bottom: auto;
@ -532,4 +537,4 @@ NOFRAMES {
:TABLE-ROW-GROUP {
display: table-row-group;
}
}

Просмотреть файл

@ -317,6 +317,11 @@ FIELDSET {
// Lists
:BULLET {
display: inline;
margin-right: 8px;
}
UL, MENU, DIR {
display: block;
margin-right: 0;
@ -325,6 +330,7 @@ UL, MENU, DIR {
list-style-type: disc;
margin-left: 40px;
}
OL {
display: block;
margin-right: 0;
@ -334,6 +340,25 @@ OL {
margin-left: 40px;
}
LI {
display: list-item;
list-style-position: inside;
}
UL LI, OL LI, MENU LI, DIR LI {
list-style-position: outside;
}
// Nested lists have no top/bottom margins
UL UL, UL OL, UL MENU, UL DIR,
MENU UL, MENU OL, MENU MENU, MENU DIR,
DIR UL, DIR OL, DIR MENU, DIR DIR,
OL UL, OL OL, OL MENU, OL DIR
{
margin-top: 0;
margin-bottom: 0;
}
// 2 deep unordered lists use a circle
OL UL, UL UL, MENU UL, DIR UL,
OL MENU, UL MENU, MENU MENU, DIR MENU,
@ -362,26 +387,6 @@ DIR OL DIR, DIR UL DIR, DIR MENU DIR, DIR DIR DIR
list-style-type: square;
}
LI {
display: list-item;
list-style-position: inside;
margin-bottom: 0;
margin-top: 0;
}
UL LI, OL LI, MENU LI, DIR LI {
list-style-position: outside;
}
:BULLET {
display: inline;
// Make this be 1/2 the "UL LI { padding-left:}" value above!
margin-right: 10px;
}
UL UL, UL OL, OL UL, OL OL {
margin-top: 0;
margin-bottom: 0;
}
DL {
display: block;
margin-bottom: auto;
@ -532,4 +537,4 @@ NOFRAMES {
:TABLE-ROW-GROUP {
display: table-row-group;
}
}