1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-11 23:55:16 +01:00

list tweaks

This commit is contained in:
Matthias Kretschmann 2015-06-10 22:31:03 +02:00
parent bc779f9811
commit fb990a193a

View File

@ -111,51 +111,29 @@ ul,
ol ol
margin-top: 0 margin-top: 0
margin-bottom: $line-height-computed margin-bottom: $line-height-computed
list-style: none padding-left: $line-height-computed*2
padding-left: 2em
> li > li
margin-bottom: .5em margin-bottom: ($line-height-computed/2)
position: relative position: relative
ul li
&:before
font-size: 14px
font-family: 'entypo'
color: $text-color-light
speak: none
font-style: normal
font-weight: normal
font-variant: normal
text-transform: none
line-height: 1
-webkit-font-smoothing: antialiased
position: absolute
left: -2em
top: .5em
ol ol
counter-reset: ol-counter counter-reset: ol-counter
list-style: none
li li
&:before &:before
@extend .textcenter @extend .textcenter
position: absolute position: absolute
left: -2.5em left: -($line-height-computed*2)
top: .4em top: -1px
color: #fff content: counter(ol-counter)'.'
content: counter(ol-counter)
counter-increment: ol-counter counter-increment: ol-counter
color: $text-color-light
font-style: italic font-style: italic
font-size: 14px width: $font-size-base
background: $text-color-dimmed
width: 20px
height: 20px
border-radius: 20px
line-height: 20px
display: block display: block
box-shadow: 0 1px 0 rgba(255,255,255,.7) user-select: none
ul, ul,
ol ol