@@ -1147,6 +1147,7 @@ module.exports = _radium2['default'].call(undefined, ReactImageLightbox);
1147
1147
'use strict' ;
1148
1148
1149
1149
var Radium = ( typeof window !== "undefined" ? window [ 'Radium' ] : typeof global !== "undefined" ? global [ 'Radium' ] : null ) ;
1150
+ var Util = require ( './Util' ) ;
1150
1151
var toolbarHeight = '50px' ;
1151
1152
1152
1153
var closeWindowKeyframes = Radium . keyframes ( {
@@ -1266,25 +1267,25 @@ var styles = {
1266
1267
left : 0 ,
1267
1268
top : 0 ,
1268
1269
right : 0 ,
1269
- height : toolbarHeight
1270
+ height : toolbarHeight ,
1271
+ display : 'flex' ,
1272
+ justifyContent : 'space-between'
1270
1273
} ,
1271
1274
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
1278
1277
} ,
1279
1278
toolbarLeftSide : {
1280
1279
paddingLeft : '20px' ,
1281
1280
paddingRight : 0 ,
1282
- left : 0
1281
+ flex : '0 1 auto' ,
1282
+ overflow : 'hidden' ,
1283
+ textOverflow : 'ellipsis'
1283
1284
} ,
1284
1285
toolbarRightSide : {
1285
1286
paddingLeft : 0 ,
1286
1287
paddingRight : '20px' ,
1287
- right : 0
1288
+ flex : '0 0 auto'
1288
1289
} ,
1289
1290
toolbarItem : {
1290
1291
display : 'inline-block' ,
@@ -1340,8 +1341,58 @@ var styles = {
1340
1341
}
1341
1342
} ;
1342
1343
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
+
1343
1377
module . exports = styles ;
1344
1378
1345
1379
} ) . 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
+
1346
1397
} , { } ] } , { } , [ 3 ] ) ( 3 )
1347
1398
} ) ;
0 commit comments