()
| 12 | } |
| 13 | |
| 14 | render () { |
| 15 | return ( |
| 16 | <div ref={el => (this._shim = el)} className='shim' onClick={(e) => this.dismiss(e)}> |
| 17 | <div ref={el => (this._photoWrap = el)} className='photo'> |
| 18 | <Photo id={this.props.id} /> |
| 19 | </div> |
| 20 | <style jsx>{` |
| 21 | .shim { |
| 22 | position: fixed; |
| 23 | background: rgba(0,0,0,.65); |
| 24 | left: 0; |
| 25 | right: 0; |
| 26 | top: 0; |
| 27 | bottom: 0; |
| 28 | margin: auto; |
| 29 | } |
| 30 | |
| 31 | .photo { |
| 32 | position: absolute; |
| 33 | top: 50%; |
| 34 | width: 100%; |
| 35 | margin-top: -250px; |
| 36 | } |
| 37 | `}</style> |
| 38 | </div> |
| 39 | ) |
| 40 | } |
| 41 | } |