case.scss 1.1 KB

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