product-rollaction.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. .main {
  2. .about {
  3. margin-top: 100px;
  4. .container {
  5. height: 592px;
  6. position: relative;
  7. }
  8. .item {
  9. position: absolute;
  10. width: 286px;
  11. height: 286px;
  12. background-color: pink;
  13. &:nth-child(3) {
  14. position: relative;
  15. width: 592px;
  16. height: 592px;
  17. margin: 0 auto;
  18. }
  19. &:nth-child(1),
  20. &:nth-child(2) {
  21. left: 0;
  22. }
  23. &:nth-child(1),
  24. &:nth-child(4) {
  25. top: 0;
  26. }
  27. &:nth-child(4),
  28. &:nth-child(5) {
  29. right: 0;
  30. }
  31. &:nth-child(2),
  32. &:nth-child(5) {
  33. bottom: 0;
  34. }
  35. .cover {
  36. width: 100%;
  37. height: 100%;
  38. img {
  39. display: block;
  40. width: 100%;
  41. height: 100%;
  42. }
  43. }
  44. &:hover {
  45. .active {
  46. opacity: 1;
  47. }
  48. }
  49. .active {
  50. opacity: 0;
  51. position: absolute;
  52. top: 0;
  53. left: 0;
  54. width: 100%;
  55. height: 100%;
  56. background: rgba(0, 0, 0, 0.5);
  57. text-align: center;
  58. display: flex;
  59. justify-content: center;
  60. align-items: center;
  61. flex-direction: column;
  62. transition: all 0.4s;
  63. .title {
  64. font-size: 24px;
  65. color: #fff;
  66. }
  67. .line {
  68. width: 32px;
  69. height: 2px;
  70. background-color: #ffffff;
  71. margin: 40px auto;
  72. }
  73. .detail {
  74. font-size: 16px;
  75. color: #fff;
  76. line-height: 40px;
  77. padding: 0 70px;
  78. }
  79. }
  80. }
  81. }
  82. .service {
  83. margin-top: 140px;
  84. .cover {
  85. width: 568px;
  86. height: 568px;
  87. background: pink;
  88. img {
  89. display: block;
  90. width: 100%;
  91. height: 100%;
  92. }
  93. }
  94. &.one {
  95. .content {
  96. padding-top: 113px;
  97. background-image: url(/img/service-title-bg-one.png);
  98. }
  99. }
  100. &.two {
  101. background: #f7f7f7;
  102. margin-top: 319px;
  103. .container {
  104. position: relative;
  105. .cover {
  106. position: absolute;
  107. bottom: 76px;
  108. left: 0;
  109. }
  110. .content {
  111. padding-top: 173px;
  112. height: 456px;
  113. background-image: url(/img/service-title-bg-two.png);
  114. background-position: left 60px;
  115. }
  116. }
  117. }
  118. &.three {
  119. .content {
  120. padding-top: 113px;
  121. background-image: url(/img/service-title-bg-three.png);
  122. }
  123. }
  124. .content {
  125. width: 560px;
  126. text-align: justify;
  127. background-repeat: no-repeat;
  128. box-sizing: border-box;
  129. .title {
  130. font-size: 24px;
  131. font-weight: bold;
  132. }
  133. .line {
  134. width: 32px;
  135. height: 3px;
  136. background-color: #e8e8e8;
  137. margin: 32px 0;
  138. }
  139. .text {
  140. color: #999;
  141. }
  142. .lh40 {
  143. line-height: 40px;
  144. }
  145. }
  146. }
  147. }