Skip to content

Commit

Permalink
add: variable for opacity 局部透明度
Browse files Browse the repository at this point in the history
  • Loading branch information
MOxFIVE committed Mar 2, 2016
1 parent 6cdbfca commit 472df05
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/css/_partial/article.styl
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
font-size: .9em;
line-height: 1em;
transition: background 0.3s;
opacity: 0.6;
opacity: i-opacity;
&:hover {
background: hover-color;
opacity: 1;
Expand All @@ -350,7 +350,7 @@
width: 100%;
height: 2.5em;
margin: 1em auto;
background: rgba(158, 188, 226, .6);
background: rgba(158, 188, 226, i-opacity);
&:hover {
background: #93b5e0;
}
Expand Down
2 changes: 1 addition & 1 deletion source/css/_partial/customise/social-icon.styl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
margin 0 2px 6px
font 23px FontAwesome
background #6f7170
opacity .58
opacity i-opacity
text-align center
box-shadow 1px 2px 2px rgba(0,0,0, .1), 1px 1px 3px rgba(0,0,0, .3)
a
Expand Down
2 changes: 1 addition & 1 deletion source/css/_partial/tagcloud.styl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
position:relative;
border-radius:0 5px 5px 0;
margin: 5px 9px 5px 8px;
opacity: 0.8;
opacity: i-opacity;
font-family: inherit;
&:hover{
opacity: 1;
Expand Down
3 changes: 2 additions & 1 deletion source/css/_variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ mid-col-color = rgba(255,255,255,.8)
article-color = rgba(255,255,255,.45)
archives-color = rgba(255,255,255,.4)

root-url = hexo-config("root_url")
root-url = hexo-config("root_url")
i-opacity = .75

0 comments on commit 472df05

Please sign in to comment.