File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ var StarBtn = React.createClass({
29
29
< span className = "gh-ico" />
30
30
< span className = "gh-text" > Star</ span >
31
31
</ a >
32
+ { this . state . stars && < span className = "gh-triangle" /> }
32
33
{ this . state . stars &&
33
34
< a
34
35
className = "gh-count"
Original file line number Diff line number Diff line change 1
1
.github-btn {
2
2
margin-top : -10% ;
3
+ display : flex ;
4
+ flex-direction : row ;
3
5
}
4
6
5
- .gh-btn ,
6
- .gh-count ,
7
7
.gh-ico {
8
8
float : left ;
9
9
}
69
69
background-color : #fafafa ;
70
70
display : block !important ;
71
71
display : none ;
72
- margin-left : 10px ;
73
- position : relative ;
74
72
}
75
73
76
74
.gh-count :hover ,
77
75
.gh-count :focus {
78
76
color : #4183C4 ;
79
77
}
80
78
81
- .gh-count :before ,
82
- .gh-count :after {
79
+ .gh-triangle {
80
+ position : relative ;
81
+ margin-left : 11px ;
82
+ margin-right : -1px ;
83
+ }
84
+
85
+ .gh-triangle :before ,
86
+ .gh-triangle :after {
83
87
border-color : transparent ;
84
88
border-style : solid ;
85
89
content : ' ' ;
86
90
position : absolute ;
87
91
}
88
92
89
- .gh-count :before {
93
+ .gh-triangle :before {
90
94
border-right-color : #fafafa ;
91
95
border-width : 8px 8px 8px 0 ;
92
96
left : -7px ;
93
97
margin-top : -8px ;
94
98
top : 50% ;
95
99
}
96
100
97
- .gh-count :after {
101
+ .gh-triangle :after {
98
102
border-right-color : #bababa ;
99
103
border-width : 9px 9px 9px 0 ;
100
104
left : -8px ;
You can’t perform that action at this time.
0 commit comments