Authored by xuqi

逛页面添加作者链接

@@ -10,14 +10,16 @@ @@ -10,14 +10,16 @@
10 margin-left: 30rem / $pxConvertRem; 10 margin-left: 30rem / $pxConvertRem;
11 } 11 }
12 12
13 - .avatar { 13 + .avatar-container {
14 float: left; 14 float: left;
15 position: relative; 15 position: relative;
16 top: 50%; 16 top: 50%;
17 - margin-top: -25rem / $pxConvertRem; 17 + margin-top: -33rem / $pxConvertRem;
  18 + }
  19 +
  20 + .avatar {
18 width: 50rem / $pxConvertRem; 21 width: 50rem / $pxConvertRem;
19 height: 50rem / $pxConvertRem; 22 height: 50rem / $pxConvertRem;
20 - vertical-align: middle;  
21 @include border-radius(50rem / $pxConvertRem); 23 @include border-radius(50rem / $pxConvertRem);
22 } 24 }
23 25
@@ -25,6 +27,7 @@ @@ -25,6 +27,7 @@
25 float: left; 27 float: left;
26 font-size: 28rem / $pxConvertRem; 28 font-size: 28rem / $pxConvertRem;
27 color: #000; 29 color: #000;
  30 + text-decoration: none;
28 } 31 }
29 32
30 .intro { 33 .intro {
1 {{# author}} 1 {{# author}}
2 <div class="article-author partial clearfix"> 2 <div class="article-author partial clearfix">
  3 + <a class="avatar-container" href="{{url}}">
3 <img class="avatar" src="{{avatar}}"> 4 <img class="avatar" src="{{avatar}}">
4 - <span class="name">{{name}}</span> 5 + </a>
  6 + <a class="name" href="{{url}}">{{name}}</a>
5 <span class="intro">{{intro}}</span> 7 <span class="intro">{{intro}}</span>
6 </div> 8 </div>
7 {{/ author}} 9 {{/ author}}