brand.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .main {
  2. .brand {
  3. margin-top: 60px;
  4. &:first-child {
  5. margin-top: 120px;
  6. }
  7. .container {
  8. position: relative;
  9. }
  10. .cover {
  11. width: 880px;
  12. height: 420px;
  13. background: pink;
  14. }
  15. .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. .brand-logo {
  30. position: relative;
  31. width: 174px;
  32. height: 106px;
  33. background: skyblue;
  34. overflow: hidden;
  35. img {
  36. display: block;
  37. position: absolute;
  38. left: 50%;
  39. top: 50%;
  40. transform: translate(-50%, -50%);
  41. }
  42. }
  43. .name {
  44. font-size: 16px;
  45. color: #505050;
  46. margin: 24px 0 32px;
  47. }
  48. .link {
  49. width: 160px;
  50. height: 48px;
  51. background: #f7f7f7;
  52. opacity: 1;
  53. font-size: 16px;
  54. color: #505050;
  55. text-align: center;
  56. line-height: 48px;
  57. cursor: pointer;
  58. transition: all 0.4s;
  59. &:hover {
  60. background: #eee;
  61. }
  62. }
  63. }
  64. }
  65. }