product-rollaction.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. @media screen and (min-width: 768px) {
  2. .main {
  3. .about {
  4. margin-top: 100px;
  5. .container {
  6. height: 592px;
  7. position: relative;
  8. }
  9. .item {
  10. position: absolute;
  11. width: 286px;
  12. height: 286px;
  13. background-color: pink;
  14. &:nth-child(3) {
  15. position: relative;
  16. width: 592px;
  17. height: 592px;
  18. margin: 0 auto;
  19. }
  20. &:nth-child(1),
  21. &:nth-child(2) {
  22. left: 0;
  23. }
  24. &:nth-child(1),
  25. &:nth-child(4) {
  26. top: 0;
  27. }
  28. &:nth-child(4),
  29. &:nth-child(5) {
  30. right: 0;
  31. }
  32. &:nth-child(2),
  33. &:nth-child(5) {
  34. bottom: 0;
  35. }
  36. .cover {
  37. width: 100%;
  38. height: 100%;
  39. img {
  40. display: block;
  41. width: 100%;
  42. height: 100%;
  43. }
  44. }
  45. &:hover {
  46. .active {
  47. opacity: 1;
  48. }
  49. }
  50. .active {
  51. opacity: 0;
  52. position: absolute;
  53. top: 0;
  54. left: 0;
  55. width: 100%;
  56. height: 100%;
  57. background: rgba(0, 0, 0, 0.5);
  58. text-align: center;
  59. display: -webkit-box;
  60. display: -ms-flexbox;
  61. display: flex;
  62. -webkit-box-pack: center;
  63. -ms-flex-pack: center;
  64. justify-content: center;
  65. -webkit-box-align: center;
  66. -ms-flex-align: center;
  67. align-items: center;
  68. -webkit-box-orient: vertical;
  69. -webkit-box-direction: normal;
  70. -ms-flex-direction: column;
  71. flex-direction: column;
  72. -webkit-transition: all 0.4s;
  73. transition: all 0.4s;
  74. .title {
  75. font-size: 24px;
  76. color: #fff;
  77. }
  78. .line {
  79. width: 32px;
  80. height: 2px;
  81. background-color: #ffffff;
  82. margin: 40px auto;
  83. }
  84. .detail {
  85. font-size: 16px;
  86. color: #fff;
  87. line-height: 40px;
  88. padding: 0 70px;
  89. }
  90. }
  91. }
  92. }
  93. .service {
  94. margin-top: 140px;
  95. .cover {
  96. width: 568px;
  97. height: 568px;
  98. background: pink;
  99. img {
  100. display: block;
  101. width: 100%;
  102. height: 100%;
  103. }
  104. }
  105. &.one {
  106. .content {
  107. padding-top: 113px;
  108. background-image: url(/img/service-title-bg-one.png);
  109. }
  110. }
  111. &.two {
  112. background: #f7f7f7;
  113. margin-top: 319px;
  114. .container {
  115. position: relative;
  116. .cover {
  117. position: absolute;
  118. bottom: 76px;
  119. left: 0;
  120. }
  121. .content {
  122. padding-top: 173px;
  123. height: 456px;
  124. background-image: url(/img/service-title-bg-two.png);
  125. background-position: left 60px;
  126. }
  127. }
  128. }
  129. &.three {
  130. .content {
  131. padding-top: 113px;
  132. background-image: url(/img/service-title-bg-three.png);
  133. }
  134. }
  135. .content {
  136. width: 560px;
  137. text-align: justify;
  138. background-repeat: no-repeat;
  139. -webkit-box-sizing: border-box;
  140. box-sizing: border-box;
  141. .title {
  142. font-size: 24px;
  143. font-weight: bold;
  144. }
  145. .line {
  146. width: 32px;
  147. height: 3px;
  148. background-color: #e8e8e8;
  149. margin: 32px 0;
  150. }
  151. .text {
  152. color: #999;
  153. }
  154. .lh40 {
  155. line-height: 40px;
  156. }
  157. }
  158. }
  159. }
  160. }
  161. @media screen and (max-width: 768px) {
  162. .main {
  163. .about {
  164. margin-top: 1.2rem;
  165. .container {
  166. width: 6.84rem;
  167. margin: 0 auto;
  168. height: 3.36rem;
  169. position: relative;
  170. }
  171. .item {
  172. position: absolute;
  173. width: 1.64rem;
  174. height: 1.64rem;
  175. &:nth-child(3) {
  176. position: relative;
  177. width: 3.36rem;
  178. height: 3.36rem;
  179. margin: 0 auto;
  180. }
  181. &:nth-child(1),
  182. &:nth-child(2) {
  183. left: 0;
  184. }
  185. &:nth-child(1),
  186. &:nth-child(4) {
  187. top: 0;
  188. }
  189. &:nth-child(4),
  190. &:nth-child(5) {
  191. right: 0;
  192. }
  193. &:nth-child(2),
  194. &:nth-child(5) {
  195. bottom: 0;
  196. }
  197. .cover {
  198. width: 100%;
  199. height: 100%;
  200. img {
  201. display: block;
  202. width: 100%;
  203. height: 100%;
  204. }
  205. }
  206. .active {
  207. position: absolute;
  208. top: 0;
  209. left: 0;
  210. width: 100%;
  211. height: 100%;
  212. background: rgba(0, 0, 0, 0.5);
  213. text-align: center;
  214. display: -webkit-box;
  215. display: -ms-flexbox;
  216. display: flex;
  217. -webkit-box-pack: center;
  218. -ms-flex-pack: center;
  219. justify-content: center;
  220. -webkit-box-align: center;
  221. -ms-flex-align: center;
  222. align-items: center;
  223. -webkit-box-orient: vertical;
  224. -webkit-box-direction: normal;
  225. -ms-flex-direction: column;
  226. flex-direction: column;
  227. .title {
  228. font-size: 0.26rem;
  229. color: #fff;
  230. }
  231. .line {
  232. width: 0.32rem;
  233. height: 0.02rem;
  234. background-color: #ffffff;
  235. margin: 0.32rem auto;
  236. }
  237. .detail {
  238. font-size: 0.2rem;
  239. color: #fff;
  240. line-height: 0.4rem;
  241. padding: 0 0.18rem;
  242. }
  243. }
  244. }
  245. }
  246. .service {
  247. margin-top: 1.2rem;
  248. .container {
  249. display: -webkit-box;
  250. display: -ms-flexbox;
  251. display: flex;
  252. -webkit-box-pack: center;
  253. -ms-flex-pack: center;
  254. justify-content: center;
  255. -webkit-box-align: center;
  256. -ms-flex-align: center;
  257. align-items: center;
  258. -webkit-box-orient: vertical;
  259. -webkit-box-direction: reverse;
  260. -ms-flex-direction: column-reverse;
  261. flex-direction: column-reverse;
  262. }
  263. .cover {
  264. width: 5.68rem;
  265. height: 5.68rem;
  266. float: unset !important;
  267. margin-top: 0.4rem;
  268. img {
  269. display: block;
  270. width: 100%;
  271. height: 100%;
  272. }
  273. }
  274. &.one {
  275. .content {
  276. background-image: url(/img/service-title-bg-one.png);
  277. }
  278. }
  279. &.two {
  280. .content {
  281. background-image: url(/img/service-title-bg-two.png);
  282. }
  283. }
  284. &.three {
  285. .content {
  286. background-image: url(/img/service-title-bg-three.png);
  287. }
  288. }
  289. .content {
  290. width: 5.68rem;
  291. float: unset !important;
  292. text-align: justify;
  293. background-repeat: no-repeat;
  294. background-position: center top;
  295. background-size: auto 1.33rem;
  296. padding-top: 1.1rem;
  297. -webkit-box-sizing: border-box;
  298. box-sizing: border-box;
  299. text-align: center;
  300. .title {
  301. font-size: 0.34rem;
  302. font-weight: bold;
  303. }
  304. .line {
  305. width: 0.4rem;
  306. height: 0.03rem;
  307. background-color: #e8e8e8;
  308. margin: 0.32rem auto;
  309. }
  310. .text {
  311. color: #999;
  312. font-size: 0.26rem;
  313. }
  314. .lh40 {
  315. line-height: 0.4rem;
  316. }
  317. ul > li {
  318. font-size: 0.26rem;
  319. }
  320. }
  321. }
  322. }
  323. }