1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 01:46:51 +01:00

ol improvements

This commit is contained in:
Matthias Kretschmann 2013-12-07 14:59:32 +01:00
parent 963e8ca5ba
commit 5175f13714

View File

@ -171,24 +171,27 @@ ol {
li {
position: relative;
}
li:before {
position: absolute;
left: -2em;
top: 0;
color: #fff;
content: counter(ol-counter);
counter-increment: ol-counter;
font-style: italic;
background: @text-color-dimmed;
border-radius: 1.2em;
width: 1.2em;
display: block;
height: 1.2em;
text-align: center;
line-height: 1.1em;
top: .2em;
.box-shadow(0 1px 0 rgba(255,255,255,.7));
&:before {
position: absolute;
left: -2em;
top: 0;
color: #fff;
content: counter(ol-counter);
counter-increment: ol-counter;
font-style: italic;
font-size: 14px;
background: @text-color-dimmed;
width: 20px;
height: 20px;
border-radius: 20px;
line-height: 20px;
display: block;
text-align: center;
top: .2em;
.box-shadow(0 1px 0 rgba(255,255,255,.7));
}
}
}