| 1 |
#boxzilla-overlay,.boxzilla-overlay { |
| 2 |
position: fixed; |
| 3 |
background: rgba(0, 0, 0, 0.65 ); |
| 4 |
width: 100%; |
| 5 |
height: 100%; |
| 6 |
left: 0; |
| 7 |
top: 0; |
| 8 |
z-index: 10000; |
| 9 |
} |
| 10 |
|
| 11 |
.boxzilla-center-container { |
| 12 |
position: fixed; |
| 13 |
top: 0; |
| 14 |
left: 0; |
| 15 |
right: 0; |
| 16 |
height: 0; |
| 17 |
text-align: center; |
| 18 |
z-index: 11000; |
| 19 |
line-height: 0; |
| 20 |
} |
| 21 |
|
| 22 |
/* reset some properties like "line-height" because of container line-height hack */ |
| 23 |
.boxzilla-center-container .boxzilla { |
| 24 |
display: inline-block; |
| 25 |
text-align: left; |
| 26 |
position: relative; |
| 27 |
line-height: normal; |
| 28 |
} |
| 29 |
|
| 30 |
.boxzilla { |
| 31 |
position: fixed; |
| 32 |
z-index: 12000; |
| 33 |
-webkit-box-sizing: border-box; |
| 34 |
-moz-box-sizing: border-box; |
| 35 |
box-sizing: border-box; |
| 36 |
background: white; |
| 37 |
padding: 25px; |
| 38 |
} |
| 39 |
.boxzilla.boxzilla-top-left { |
| 40 |
top: 0; |
| 41 |
left: 0; |
| 42 |
} |
| 43 |
.boxzilla.boxzilla-top-right { |
| 44 |
top: 0; |
| 45 |
right: 0; |
| 46 |
} |
| 47 |
.boxzilla.boxzilla-bottom-left { |
| 48 |
bottom: 0; |
| 49 |
left: 0; |
| 50 |
} |
| 51 |
.boxzilla.boxzilla-bottom-right { |
| 52 |
bottom: 0; |
| 53 |
right: 0; |
| 54 |
} |
| 55 |
|
| 56 |
/* remove top & bottom margin from last child element */ |
| 57 |
.boxzilla-content > *:first-child { |
| 58 |
margin-top: 0; |
| 59 |
padding-top: 0; |
| 60 |
} |
| 61 |
|
| 62 |
.boxzilla-content > *:last-child { |
| 63 |
margin-bottom: 0; |
| 64 |
padding-bottom: 0; |
| 65 |
} |
| 66 |
|
| 67 |
.boxzilla-close-icon { |
| 68 |
position: absolute; |
| 69 |
right: 0; |
| 70 |
top: 0; |
| 71 |
text-align: center; |
| 72 |
padding: 6px; |
| 73 |
cursor: pointer; |
| 74 |
font-size: 28px; |
| 75 |
font-weight: bold; |
| 76 |
line-height: 20px; |
| 77 |
color: #000; |
| 78 |
opacity: .5; |
| 79 |
} |
| 80 |
|
| 81 |
.boxzilla-close-icon:hover, .boxzilla-close-icon:focus { |
| 82 |
opacity: .8; |
| 83 |
} |
| 84 |
|
| 85 |
.boxzilla-wobble { |
| 86 |
-webkit-animation-duration: 1s; |
| 87 |
animation-duration: 1s; |
| 88 |
-webkit-animation-fill-mode: both; |
| 89 |
animation-fill-mode: both; |
| 90 |
animation-name: boxzilla-wobble; |
| 91 |
} |
| 92 |
|
| 93 |
@keyframes boxzilla-wobble { |
| 94 |
from { |
| 95 |
transform: none; |
| 96 |
} |
| 97 |
|
| 98 |
15% { |
| 99 |
transform: translate3d(-21%, 0, 0) rotate3d(0, 0, 1, -5deg); |
| 100 |
} |
| 101 |
|
| 102 |
30% { |
| 103 |
transform: translate3d(18%, 0, 0) rotate3d(0, 0, 1, 3deg); |
| 104 |
} |
| 105 |
|
| 106 |
45% { |
| 107 |
transform: translate3d(-12%, 0, 0) rotate3d(0, 0, 1, -3deg); |
| 108 |
} |
| 109 |
|
| 110 |
60% { |
| 111 |
transform: translate3d(6%, 0, 0) rotate3d(0, 0, 1, 2deg); |
| 112 |
} |
| 113 |
|
| 114 |
75% { |
| 115 |
transform: translate3d(-3%, 0, 0) rotate3d(0, 0, 1, -1deg); |
| 116 |
} |
| 117 |
|
| 118 |
to { |
| 119 |
transform: none; |
| 120 |
} |
| 121 |
} |