mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-23 01:30:01 +01:00
ol improvements
This commit is contained in:
parent
963e8ca5ba
commit
5175f13714
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user