1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +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 { li {
position: relative; position: relative;
}
li:before { &:before {
position: absolute; position: absolute;
left: -2em; left: -2em;
top: 0; top: 0;
color: #fff; color: #fff;
content: counter(ol-counter); content: counter(ol-counter);
counter-increment: ol-counter; counter-increment: ol-counter;
font-style: italic; font-style: italic;
background: @text-color-dimmed; font-size: 14px;
border-radius: 1.2em; background: @text-color-dimmed;
width: 1.2em;
display: block; width: 20px;
height: 1.2em; height: 20px;
text-align: center; border-radius: 20px;
line-height: 1.1em; line-height: 20px;
top: .2em; display: block;
.box-shadow(0 1px 0 rgba(255,255,255,.7)); text-align: center;
top: .2em;
.box-shadow(0 1px 0 rgba(255,255,255,.7));
}
} }
} }