case.scss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .title {
  2. font-size: 34px;
  3. text-align: center;
  4. margin-top: 100px;
  5. }
  6. .main {
  7. .case {
  8. -webkit-box-sizing: border-box;
  9. box-sizing: border-box;
  10. &:nth-child(1) {
  11. padding-top: 80px !important;
  12. }
  13. &:nth-child(odd) {
  14. height: 690px;
  15. padding: 120px 0;
  16. .cover {
  17. width: 668px;
  18. height: 410px;
  19. }
  20. }
  21. &:nth-child(even) {
  22. height: 720px;
  23. padding: 162px 0;
  24. background: url(/img/case-bg.png) no-repeat center;
  25. background-size: auto 720px;
  26. .cover {
  27. width: 568px;
  28. height: 397px;
  29. }
  30. }
  31. .cover {
  32. background: pink;
  33. }
  34. .content {
  35. position: relative;
  36. background: skyblue;
  37. width: 490px;
  38. height: 410px;
  39. margin-top: 50px;
  40. img {
  41. display: block;
  42. width: 580px;
  43. height: 516px;
  44. position: absolute;
  45. left: 50%;
  46. top: 50%;
  47. -webkit-transform: translate(-50%, -50%);
  48. transform: translate(-50%, -50%);
  49. }
  50. }
  51. .cover {
  52. img {
  53. display: block;
  54. width: 100%;
  55. height: 100%;
  56. }
  57. }
  58. }
  59. }
  60. .footer {
  61. margin-top: 0;
  62. }