@@ -1147,6 +1147,7 @@ module.exports = _radium2['default'].call(undefined, ReactImageLightbox);
11471147'use strict' ;
11481148
11491149var Radium = ( typeof window !== "undefined" ? window [ 'Radium' ] : typeof global !== "undefined" ? global [ 'Radium' ] : null ) ;
1150+ var Util = require ( './Util' ) ;
11501151var toolbarHeight = '50px' ;
11511152
11521153var closeWindowKeyframes = Radium . keyframes ( {
@@ -1266,25 +1267,25 @@ var styles = {
12661267 left : 0 ,
12671268 top : 0 ,
12681269 right : 0 ,
1269- height : toolbarHeight
1270+ height : toolbarHeight ,
1271+ display : 'flex' ,
1272+ justifyContent : 'space-between'
12701273 } ,
12711274 toolbarSide : {
1272- lineHeight : toolbarHeight ,
1273- position : 'absolute' ,
1274- top : 0 ,
1275- bottom : 0 ,
1276- margin : 0 ,
1277- maxWidth : '48%'
1275+ height : toolbarHeight ,
1276+ margin : 0
12781277 } ,
12791278 toolbarLeftSide : {
12801279 paddingLeft : '20px' ,
12811280 paddingRight : 0 ,
1282- left : 0
1281+ flex : '0 1 auto' ,
1282+ overflow : 'hidden' ,
1283+ textOverflow : 'ellipsis'
12831284 } ,
12841285 toolbarRightSide : {
12851286 paddingLeft : 0 ,
12861287 paddingRight : '20px' ,
1287- right : 0
1288+ flex : '0 0 auto'
12881289 } ,
12891290 toolbarItem : {
12901291 display : 'inline-block' ,
@@ -1340,8 +1341,58 @@ var styles = {
13401341 }
13411342} ;
13421343
1344+ // Use fallback styles for IE users
1345+ if ( Util . isIE ( ) ) {
1346+ styles . toolbar = {
1347+ backgroundColor : 'rgba(0, 0, 0, 0.5)' ,
1348+ position : 'absolute' ,
1349+ left : 0 ,
1350+ top : 0 ,
1351+ right : 0 ,
1352+ height : toolbarHeight
1353+ } ;
1354+
1355+ styles . toolbarSide = {
1356+ lineHeight : toolbarHeight ,
1357+ position : 'absolute' ,
1358+ top : 0 ,
1359+ bottom : 0 ,
1360+ margin : 0 ,
1361+ maxWidth : '48%'
1362+ } ;
1363+
1364+ styles . toolbarLeftSide = {
1365+ paddingLeft : '20px' ,
1366+ paddingRight : 0 ,
1367+ left : 0
1368+ } ;
1369+
1370+ styles . toolbarRightSide = {
1371+ paddingLeft : 0 ,
1372+ paddingRight : '20px' ,
1373+ right : 0
1374+ } ;
1375+ }
1376+
13431377module . exports = styles ;
13441378
13451379} ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
1380+ } , { "./Util" :5 } ] , 5 :[ function ( require , module , exports ) {
1381+ /**
1382+ * Checks if the user is using Internet Explorer
1383+ *
1384+ * @return {boolean } isIE - True if the user is on IE
1385+ */
1386+ 'use strict' ;
1387+
1388+ function isIE ( ) {
1389+ var ua = window . navigator . userAgent ;
1390+ return ua . indexOf ( 'MSIE ' ) > - 1 || ua . indexOf ( 'Trident/' ) > - 1 ;
1391+ }
1392+
1393+ module . exports = {
1394+ isIE : isIE
1395+ } ;
1396+
13461397} , { } ] } , { } , [ 3 ] ) ( 3 )
13471398} ) ;
0 commit comments