File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 2
2
display : inline-block ;
3
3
position : relative ;
4
4
5
+ .inset {
6
+ position : absolute ;
7
+ bottom : 5px ;
8
+ left : 0px ;
9
+ width : 100% ;
10
+ background-color : white ;
11
+ text-align : center ;
12
+ opacity : .7 ;
13
+ }
14
+
5
15
.glyphicon {
6
16
position : absolute ;
7
17
top : 50% ;
Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ module.exports = React.createClass({
14
14
>
15
15
{ this . props . animated && this . state . hovering ? this . video ( ) : this . image ( ) }
16
16
{ this . props . animated && ! this . state . hovering ? this . icon ( ) : null }
17
+ { this . state . hovering ? this . inset ( ) : null }
18
+ </ div >
19
+ } ,
20
+ inset : function ( ) {
21
+ return < div className = "inset" >
22
+ Views: { this . props . views }
23
+ < br />
24
+ Upvotes: { this . props . ups }
17
25
</ div >
18
26
} ,
19
27
image : function ( ) {
You can’t perform that action at this time.
0 commit comments