Skip to content

Commit

Permalink
style(.social li): margin
Browse files Browse the repository at this point in the history
nth-child(5n) & last-child is redundant,
Use left/right margin to centre icons.
  • Loading branch information
MOxFIVE committed Feb 23, 2016
1 parent 51bf2e3 commit d0167eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions source/css/_partial/customise/social-icon.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
li
display inline-block
width 37px
border-radius:50%
margin-right 3px
margin-bottom 6px
border-radius 50%
margin 0 2px 6px
font 23px FontAwesome
background #6f7170
opacity .58
Expand All @@ -19,8 +18,6 @@
&:hover
opacity 1
transform scale(1.1)
&:nth-child(5n), &:last-child
margin-right 0

img-logo = {
"新浪微博": #ecc260
Expand Down
4 changes: 0 additions & 4 deletions source/css/_partial/mobile.styl
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,6 @@
display: none !important;
}

#header .social li:nth-child(5n) {
margin-right: 3px;
}

if hexo-config("github_widget")
.github-text
display none

0 comments on commit d0167eb

Please sign in to comment.