brand.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. -webkit-transform: translateY(-50%);
  20. transform: translateY(-50%);
  21. display: -webkit-box;
  22. display: -ms-flexbox;
  23. display: flex;
  24. -webkit-box-pack: center;
  25. -ms-flex-pack: center;
  26. justify-content: center;
  27. -webkit-box-align: center;
  28. -ms-flex-align: center;
  29. align-items: center;
  30. -webkit-box-orient: vertical;
  31. -webkit-box-direction: normal;
  32. -ms-flex-direction: column;
  33. flex-direction: column;
  34. width: 360px;
  35. height: 340px;
  36. border: 3px solid #e8e8e8;
  37. -webkit-box-sizing: border-box;
  38. box-sizing: border-box;
  39. background: #fff;
  40. }
  41. .main .brand .content .brand-logo {
  42. position: relative;
  43. width: 174px;
  44. height: 106px;
  45. background: skyblue;
  46. overflow: hidden;
  47. }
  48. .main .brand .content .brand-logo img {
  49. display: block;
  50. position: absolute;
  51. left: 50%;
  52. top: 50%;
  53. -webkit-transform: translate(-50%, -50%);
  54. transform: translate(-50%, -50%);
  55. }
  56. .main .brand .content .name {
  57. font-size: 16px;
  58. color: #505050;
  59. margin: 24px 0 32px;
  60. }
  61. .main .brand .content .link {
  62. width: 160px;
  63. height: 48px;
  64. background: #f7f7f7;
  65. opacity: 1;
  66. font-size: 16px;
  67. color: #505050;
  68. text-align: center;
  69. line-height: 48px;
  70. cursor: pointer;
  71. -webkit-transition: all 0.4s;
  72. transition: all 0.4s;
  73. }
  74. .main .brand .content .link:hover {
  75. background: #eee;
  76. }