brand.css 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .main .brand {
  2. margin-top: 60px;
  3. }
  4. .main .brand:first-child {
  5. margin-top: 120px;
  6. }
  7. .main .brand .container {
  8. position: relative;
  9. }
  10. .main .brand .cover {
  11. width: 880px;
  12. height: 420px;
  13. background: pink;
  14. }
  15. .main .brand .content {
  16. position: absolute;
  17. right: 0;
  18. top: 50%;
  19. transform: translateY(-50%);
  20. display: flex;
  21. justify-content: center;
  22. align-items: center;
  23. flex-direction: column;
  24. width: 360px;
  25. height: 340px;
  26. border: 3px solid #e8e8e8;
  27. box-sizing: border-box;
  28. background: #fff;
  29. }
  30. .main .brand .content .brand-logo {
  31. position: relative;
  32. width: 174px;
  33. height: 106px;
  34. background: skyblue;
  35. overflow: hidden;
  36. }
  37. .main .brand .content .brand-logo img {
  38. display: block;
  39. position: absolute;
  40. left: 50%;
  41. top: 50%;
  42. transform: translate(-50%, -50%);
  43. }
  44. .main .brand .content .name {
  45. font-size: 16px;
  46. color: #505050;
  47. margin: 24px 0 32px;
  48. }
  49. .main .brand .content .link {
  50. width: 160px;
  51. height: 48px;
  52. background: #f7f7f7;
  53. opacity: 1;
  54. font-size: 16px;
  55. color: #505050;
  56. text-align: center;
  57. line-height: 48px;
  58. cursor: pointer;
  59. transition: all 0.4s;
  60. }
  61. .main .brand .content .link:hover {
  62. background: #eee;
  63. }