baguetteBox.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. /*!
  2. * baguetteBox.js
  3. * @author feimosi
  4. * @version 1.8.2
  5. * @url https://github.com/feimosi/baguetteBox.js
  6. */
  7. #baguetteBox-overlay {
  8. display: none;
  9. opacity: 0;
  10. position: fixed;
  11. overflow: hidden;
  12. top: 0;
  13. left: 0;
  14. width: 100%;
  15. height: 100%;
  16. z-index: 1000000;
  17. background-color: #222;
  18. background-color: rgba(0, 0, 0, 0.8);
  19. -webkit-transition: opacity .5s ease;
  20. transition: opacity .5s ease; }
  21. #baguetteBox-overlay.visible {
  22. opacity: 1; }
  23. #baguetteBox-overlay .full-image {
  24. display: inline-block;
  25. position: relative;
  26. width: 100%;
  27. height: 100%;
  28. text-align: center; }
  29. #baguetteBox-overlay .full-image figure {
  30. display: inline;
  31. margin: 0;
  32. height: 100%; }
  33. #baguetteBox-overlay .full-image img {
  34. display: inline-block;
  35. width: auto;
  36. height: auto;
  37. max-height: 100%;
  38. max-width: 100%;
  39. vertical-align: middle;
  40. -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  41. box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); }
  42. #baguetteBox-overlay .full-image figcaption {
  43. display: block;
  44. position: absolute;
  45. bottom: 0;
  46. width: 100%;
  47. text-align: center;
  48. line-height: 1.8;
  49. white-space: normal;
  50. color: #ccc;
  51. background-color: #000;
  52. background-color: rgba(0, 0, 0, 0.6);
  53. font-family: sans-serif; }
  54. #baguetteBox-overlay .full-image:before {
  55. content: "";
  56. display: inline-block;
  57. height: 50%;
  58. width: 1px;
  59. margin-right: -1px; }
  60. #baguetteBox-slider {
  61. position: absolute;
  62. left: 0;
  63. top: 0;
  64. height: 100%;
  65. width: 100%;
  66. white-space: nowrap;
  67. -webkit-transition: left .4s ease, -webkit-transform .4s ease;
  68. transition: left .4s ease, -webkit-transform .4s ease;
  69. transition: left .4s ease, transform .4s ease;
  70. transition: left .4s ease, transform .4s ease, -webkit-transform .4s ease, -moz-transform .4s ease; }
  71. #baguetteBox-slider.bounce-from-right {
  72. -webkit-animation: bounceFromRight .4s ease-out;
  73. animation: bounceFromRight .4s ease-out; }
  74. #baguetteBox-slider.bounce-from-left {
  75. -webkit-animation: bounceFromLeft .4s ease-out;
  76. animation: bounceFromLeft .4s ease-out; }
  77. @-webkit-keyframes bounceFromRight {
  78. 0% {
  79. margin-left: 0; }
  80. 50% {
  81. margin-left: -30px; }
  82. 100% {
  83. margin-left: 0; } }
  84. @keyframes bounceFromRight {
  85. 0% {
  86. margin-left: 0; }
  87. 50% {
  88. margin-left: -30px; }
  89. 100% {
  90. margin-left: 0; } }
  91. @-webkit-keyframes bounceFromLeft {
  92. 0% {
  93. margin-left: 0; }
  94. 50% {
  95. margin-left: 30px; }
  96. 100% {
  97. margin-left: 0; } }
  98. @keyframes bounceFromLeft {
  99. 0% {
  100. margin-left: 0; }
  101. 50% {
  102. margin-left: 30px; }
  103. 100% {
  104. margin-left: 0; } }
  105. .baguetteBox-button#next-button, .baguetteBox-button#previous-button {
  106. top: 50%;
  107. top: calc(50% - 30px);
  108. width: 44px;
  109. height: 60px; }
  110. .baguetteBox-button {
  111. position: absolute;
  112. cursor: pointer;
  113. outline: none;
  114. padding: 0;
  115. margin: 0;
  116. border: 0;
  117. -moz-border-radius: 15%;
  118. border-radius: 15%;
  119. background-color: #323232;
  120. background-color: rgba(50, 50, 50, 0.5);
  121. color: #ddd;
  122. font: 1.6em sans-serif;
  123. -webkit-transition: background-color .4s ease;
  124. transition: background-color .4s ease; }
  125. .baguetteBox-button:focus, .baguetteBox-button:hover {
  126. background-color: rgba(50, 50, 50, 0.9); }
  127. .baguetteBox-button#next-button {
  128. right: 2%; }
  129. .baguetteBox-button#previous-button {
  130. left: 2%; }
  131. .baguetteBox-button#close-button {
  132. top: 20px;
  133. right: 2%;
  134. right: calc(2% + 6px);
  135. width: 30px;
  136. height: 30px; }
  137. .baguetteBox-button svg {
  138. position: absolute;
  139. left: 0;
  140. top: 0; }
  141. /*
  142. Preloader
  143. Borrowed from http://tobiasahlin.com/spinkit/
  144. */
  145. .baguetteBox-spinner {
  146. width: 40px;
  147. height: 40px;
  148. display: inline-block;
  149. position: absolute;
  150. top: 50%;
  151. left: 50%;
  152. margin-top: -20px;
  153. margin-left: -20px; }
  154. .baguetteBox-double-bounce1,
  155. .baguetteBox-double-bounce2 {
  156. width: 100%;
  157. height: 100%;
  158. -moz-border-radius: 50%;
  159. border-radius: 50%;
  160. background-color: #fff;
  161. opacity: .6;
  162. position: absolute;
  163. top: 0;
  164. left: 0;
  165. -webkit-animation: bounce 2s infinite ease-in-out;
  166. animation: bounce 2s infinite ease-in-out; }
  167. .baguetteBox-double-bounce2 {
  168. -webkit-animation-delay: -1s;
  169. animation-delay: -1s; }
  170. @-webkit-keyframes bounce {
  171. 0%, 100% {
  172. -webkit-transform: scale(0);
  173. transform: scale(0); }
  174. 50% {
  175. -webkit-transform: scale(1);
  176. transform: scale(1); } }
  177. @keyframes bounce {
  178. 0%, 100% {
  179. -webkit-transform: scale(0);
  180. -moz-transform: scale(0);
  181. transform: scale(0); }
  182. 50% {
  183. -webkit-transform: scale(1);
  184. -moz-transform: scale(1);
  185. transform: scale(1); } }
  186. .warp{ width: 100%; height: 100vh; overflow: auto;
  187. background: -webkit-linear-gradient(#4568DC, #B06AB3);
  188. background: -o-linear-gradient(#4568DC, #B06AB3);
  189. background: -moz-linear-gradient(#4568DC, #B06AB3);
  190. background: linear-gradient(#4568DC, #B06AB3);
  191. }
  192. .baguetteBoxOne-pd{ width: 89%; height: 100px; margin: 0 auto; display: flex; align-items: center; border-bottom: 2px solid #FFB300;}
  193. .baguetteBoxOne-pd a{text-decoration: none; display: inline-block; width: 148px; height: 44px; background: #FFB300; color: #fff; font-size: 22px; line-height: 44px; cursor: pointer; text-align: center; border-radius: 5px;}
  194. .baguetteBoxOne-pd a:hover{background:#FEC43A;}
  195. .baguetteBoxOne{/* width: 90%; */margin: 0 auto;display: flex;flex-wrap: wrap;/* justify-content: center; */}
  196. .baguetteBoxOne a{display: flex;/* width: 240px; *//* height: 180px; *//* margin: 10px 10px; */text-decoration: none;}
  197. .baguetteBoxOne a > img{ width: 100%; height: 100%; }