product-maoking.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. @charset "UTF-8";
  2. /**
  3. *
  4. * @authors Your Name (you@example.org)
  5. * @date 2017-07-04 14:35:58
  6. * @version $Id$
  7. */
  8. * {
  9. margin: 0;
  10. padding: 0;
  11. }
  12. html {
  13. font-size: 625%;
  14. }
  15. body {
  16. width: 100%;
  17. }
  18. .scroll-wrap {
  19. width: 100%;
  20. // height: 100vh;
  21. // overflow: hidden;
  22. }
  23. .scroll-wrap > .scroll-item {
  24. position: relative;
  25. width: 100%;
  26. // min-width: 960px;
  27. height: 100vh;
  28. background-position: center center;
  29. background-size: cover;
  30. }
  31. .scroll-item:nth-child(1) .scroll-text {
  32. top: 45%;
  33. }
  34. .scroll-item:nth-child(2) .scroll-text {
  35. top: 1.5rem;
  36. }
  37. .scroll-item:nth-child(3) .scroll-text {
  38. top: 3rem;
  39. }
  40. .scroll-item:nth-child(4) .scroll-text {
  41. top: 3.5rem;
  42. }
  43. .scroll-item:nth-child(5) .scroll-text {
  44. top: 1.5rem;
  45. }
  46. .scroll-item:nth-child(6) .scroll-text {
  47. top: 1rem;
  48. }
  49. .scroll-item .scroll-text {
  50. width: 100%;
  51. position: absolute;
  52. left: 50%;
  53. -webkit-transform: translate(-50%, 0);
  54. text-align: center;
  55. }
  56. .scroll-text-title {
  57. font-size: 0.72rem;
  58. color: #f2e7ce;
  59. }
  60. .scroll-text-content {
  61. margin-top: 0.5rem;
  62. font-size: 0.18rem;
  63. color: #f2e7ce;
  64. line-height: 0.4rem;
  65. }
  66. .scroll-text p{
  67. opacity: 0;
  68. -webkit-transform: translateY(2rem);
  69. -webkit-transition: all 1s;
  70. }
  71. .fp-completely .scroll-text p{
  72. opacity: 1;
  73. -webkit-transform: translateY(0);
  74. }
  75. #fp-nav > ul > li > a > span {
  76. background-color: #fff;
  77. }
  78. .video-wrap {
  79. position: absolute;
  80. left: 6%;
  81. bottom: 1.5rem;
  82. }
  83. .video-title {
  84. font-size: 0.28rem;
  85. color: #fffde8;
  86. margin: 5px;
  87. }
  88. .video-tv {
  89. margin: 15px 0;
  90. }
  91. .video-text {
  92. font-size: 12px;
  93. color: #fffde8;
  94. margin: 5px;
  95. line-height: 0.24rem;
  96. }
  97. .btn-buynow {
  98. width: 250px;
  99. line-height: 0.6rem;
  100. font-size: 0.3rem;
  101. color: #f1d7ae;
  102. position: absolute;
  103. top: 85%;
  104. text-align: center;
  105. left: 50%;
  106. margin-left: -1rem;
  107. background-color: #862323;
  108. border-radius: 15px;
  109. cursor: pointer;
  110. }
  111. @media (max-width: 1600px) {
  112. html {
  113. font-size: 500%;
  114. }
  115. .scroll-item .scroll-text {
  116. // width: 50%;
  117. }
  118. }
  119. @media (max-width: 1280px) {
  120. html {
  121. font-size: 375%;
  122. }
  123. .scroll-item .scroll-text {
  124. // width: 65%;
  125. }
  126. .video-tv > img{
  127. width: 70%;
  128. }
  129. }
  130. @media (max-width: 960px) {
  131. html {
  132. font-size: 250%;
  133. }
  134. .scroll-item .scroll-text {
  135. // width: 80%;
  136. }
  137. .video-tv > img{
  138. width: 50%;
  139. }
  140. }