Skip to content

Commit e9a0735

Browse files
committed
Update jBox.css
1 parent fadd7bd commit e9a0735

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

Source/jBox.css

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -493,30 +493,36 @@ body[class*=" jBox-blockScroll-"] {
493493
}
494494

495495
.jBox-loading .jBox-content {
496-
min-height: 30px;
497-
min-width: 30px;
496+
min-height: 24px;
497+
min-width: 24px;
498498
opacity: 0;
499499
}
500500

501-
.jBox-loading .jBox-container:before {
502-
content: 'Loading…';
503-
position: absolute;
504-
top: 50%;
505-
left: 50%;
506-
width: 16px;
507-
height: 16px;
508-
margin-top: -10px;
509-
margin-left: -10px;
501+
.jBox-spinner {
502+
position: absolute;
503+
top: 50%;
504+
left: 50%;
505+
width: 20px;
506+
height: 20px;
507+
margin-top: -10px;
508+
margin-left: -10px;
509+
}
510+
511+
.jBox-spinner:before {
512+
content: 'Loading…';
513+
display: block;
514+
width: 16px;
515+
height: 16px;
510516
text-align: center;
511517
}
512-
513-
.jBox-loading .jBox-container:not(:required):before {
514-
content: '';
515-
border-radius: 50%;
516-
border: 2px solid rgba(0, 0, 0, 0.3);
517-
border-top-color: rgba(0, 0, 0, 0.6);
518-
-webkit-animation: jBoxLoading .6s linear infinite;
519-
animation: jBoxLoading .6s linear infinite;
518+
519+
.jBox-spinner:not(:required):before {
520+
content: '';
521+
border-radius: 50%;
522+
border: 2px solid rgba(0, 0, 0, .3);
523+
border-top-color: rgba(0, 0, 0, .6);
524+
animation: jBoxLoading .6s linear infinite;
525+
-webkit-animation: jBoxLoading .6s linear infinite;
520526
}
521527

522528
/* IE8 fixes */

0 commit comments

Comments
 (0)