bootstrap-modal.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. /*!
  2. * Bootstrap Modal
  3. *
  4. * Copyright Jordan Schroter
  5. * Licensed under the Apache License v2.0
  6. * http://www.apache.org/licenses/LICENSE-2.0
  7. *
  8. */
  9. .modal-open {
  10. overflow: hidden;
  11. }
  12. /* add a scroll bar to stop page from jerking around */
  13. .modal-open.page-overflow .page-container,
  14. .modal-open.page-overflow .page-container .navbar-fixed-top,
  15. .modal-open.page-overflow .page-container .navbar-fixed-bottom,
  16. .modal-open.page-overflow .modal-scrollable {
  17. overflow-y: scroll;
  18. }
  19. @media (max-width: 979px) {
  20. .modal-open.page-overflow .page-container .navbar-fixed-top,
  21. .modal-open.page-overflow .page-container .navbar-fixed-bottom {
  22. overflow-y: visible;
  23. }
  24. }
  25. .modal-scrollable {
  26. position: fixed;
  27. top: 0;
  28. bottom: 0;
  29. left: 0;
  30. right: 0;
  31. overflow: auto;
  32. }
  33. .modal {
  34. outline: none;
  35. position: absolute;
  36. margin-top: 0;
  37. top: 50%;
  38. overflow: visible; /* allow content to popup out (i.e tooltips) */
  39. }
  40. .modal.fade {
  41. top: -100%;
  42. -webkit-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
  43. -moz-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
  44. -o-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
  45. transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
  46. }
  47. .modal.fade.in {
  48. top: 50%;
  49. }
  50. .modal-body {
  51. max-height: none;
  52. overflow: visible;
  53. }
  54. .modal.modal-absolute {
  55. position: absolute;
  56. z-index: 950;
  57. }
  58. .modal .loading-mask {
  59. position: absolute;
  60. top: 0;
  61. bottom: 0;
  62. left: 0;
  63. right: 0;
  64. background: #fff;
  65. border-radius: 6px;
  66. }
  67. .modal-backdrop.modal-absolute{
  68. position: absolute;
  69. z-index: 940;
  70. }
  71. .modal-backdrop,
  72. .modal-backdrop.fade.in{
  73. opacity: 0.7;
  74. filter: alpha(opacity=70);
  75. background: #fff;
  76. }
  77. .modal.container {
  78. width: 940px;
  79. margin-left: -470px;
  80. }
  81. /* Modal Overflow */
  82. .modal-overflow.modal {
  83. top: 1%;
  84. }
  85. .modal-overflow.modal.fade {
  86. top: -100%;
  87. }
  88. .modal-overflow.modal.fade.in {
  89. top: 1%;
  90. }
  91. .modal-overflow .modal-body {
  92. overflow: auto;
  93. -webkit-overflow-scrolling: touch;
  94. }
  95. /* Responsive */
  96. @media (min-width: 1200px) {
  97. .modal.container {
  98. width: 1170px;
  99. margin-left: -585px;
  100. }
  101. }
  102. @media (max-width: 979px) {
  103. .modal,
  104. .modal.container,
  105. .modal.modal-overflow {
  106. top: 1%;
  107. right: 1%;
  108. left: 1%;
  109. bottom: auto;
  110. width: auto !important;
  111. height: auto !important;
  112. margin: 0 !important;
  113. padding: 0 !important;
  114. }
  115. .modal.fade.in,
  116. .modal.container.fade.in,
  117. .modal.modal-overflow.fade.in {
  118. top: 1%;
  119. bottom: auto;
  120. }
  121. .modal-body,
  122. .modal-overflow .modal-body {
  123. position: static;
  124. margin: 0;
  125. height: auto !important;
  126. max-height: none !important;
  127. overflow: visible !important;
  128. }
  129. .modal-footer,
  130. .modal-overflow .modal-footer {
  131. position: static;
  132. }
  133. }
  134. .loading-spinner {
  135. position: absolute;
  136. top: 50%;
  137. left: 50%;
  138. margin: -12px 0 0 -12px;
  139. }
  140. /*
  141. Animate.css - http://daneden.me/animate
  142. Licensed under the ☺ license (http://licence.visualidiot.com/)
  143. Copyright (c) 2012 Dan Eden*/
  144. .animated {
  145. -webkit-animation-duration: 1s;
  146. -moz-animation-duration: 1s;
  147. -o-animation-duration: 1s;
  148. animation-duration: 1s;
  149. -webkit-animation-fill-mode: both;
  150. -moz-animation-fill-mode: both;
  151. -o-animation-fill-mode: both;
  152. animation-fill-mode: both;
  153. }
  154. @-webkit-keyframes shake {
  155. 0%, 100% {-webkit-transform: translateX(0);}
  156. 10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);}
  157. 20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);}
  158. }
  159. @-moz-keyframes shake {
  160. 0%, 100% {-moz-transform: translateX(0);}
  161. 10%, 30%, 50%, 70%, 90% {-moz-transform: translateX(-10px);}
  162. 20%, 40%, 60%, 80% {-moz-transform: translateX(10px);}
  163. }
  164. @-o-keyframes shake {
  165. 0%, 100% {-o-transform: translateX(0);}
  166. 10%, 30%, 50%, 70%, 90% {-o-transform: translateX(-10px);}
  167. 20%, 40%, 60%, 80% {-o-transform: translateX(10px);}
  168. }
  169. @keyframes shake {
  170. 0%, 100% {transform: translateX(0);}
  171. 10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
  172. 20%, 40%, 60%, 80% {transform: translateX(10px);}
  173. }
  174. .shake {
  175. -webkit-animation-name: shake;
  176. -moz-animation-name: shake;
  177. -o-animation-name: shake;
  178. animation-name: shake;
  179. }