brand.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. @media screen and (min-width: 768px) {
  2. .main {
  3. .brand {
  4. margin-top: 60px;
  5. &:first-child {
  6. margin-top: 120px;
  7. }
  8. .container {
  9. position: relative;
  10. }
  11. .cover {
  12. width: 880px;
  13. height: 420px;
  14. background: pink;
  15. }
  16. .content {
  17. position: absolute;
  18. right: 0;
  19. top: 50%;
  20. -webkit-transform: translateY(-50%);
  21. transform: translateY(-50%);
  22. display: -webkit-box;
  23. display: -ms-flexbox;
  24. display: flex;
  25. -webkit-box-pack: center;
  26. -ms-flex-pack: center;
  27. justify-content: center;
  28. -webkit-box-align: center;
  29. -ms-flex-align: center;
  30. align-items: center;
  31. -webkit-box-orient: vertical;
  32. -webkit-box-direction: normal;
  33. -ms-flex-direction: column;
  34. flex-direction: column;
  35. width: 360px;
  36. height: 340px;
  37. border: 3px solid #e8e8e8;
  38. -webkit-box-sizing: border-box;
  39. box-sizing: border-box;
  40. background: #fff;
  41. .brand-logo {
  42. position: relative;
  43. width: 174px;
  44. height: 106px;
  45. background: skyblue;
  46. overflow: hidden;
  47. img {
  48. display: block;
  49. position: absolute;
  50. left: 50%;
  51. top: 50%;
  52. -webkit-transform: translate(-50%, -50%);
  53. transform: translate(-50%, -50%);
  54. }
  55. }
  56. .name {
  57. font-size: 16px;
  58. color: #505050;
  59. margin: 24px 0 32px;
  60. }
  61. .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. &:hover {
  74. background: #eee;
  75. }
  76. }
  77. }
  78. }
  79. }
  80. }
  81. @media screen and (max-width: 768px) {
  82. .main {
  83. .brand {
  84. width: 6.86rem;
  85. margin: 0 auto;
  86. margin-top: 0.4rem;
  87. &:first-child {
  88. margin-top: 0.8rem;
  89. }
  90. .cover {
  91. width: 100%;
  92. height: 3.28rem;
  93. img {
  94. display: block;
  95. width: 100%;
  96. height: 100%;
  97. }
  98. }
  99. .content {
  100. position: relative;
  101. background: #fff;
  102. -webkit-box-sizing: border-box;
  103. box-sizing: border-box;
  104. border: 1px solid #e8e8e8;
  105. border-top: 0;
  106. padding: 0.32rem 0.4rem;
  107. .brand-logo {
  108. position: relative;
  109. width: 1.48rem;
  110. height: 0.92rem;
  111. background: skyblue;
  112. overflow: hidden;
  113. img {
  114. display: block;
  115. position: absolute;
  116. left: 50%;
  117. top: 50%;
  118. height: 0.92rem;
  119. -webkit-transform: translate(-50%, -50%);
  120. transform: translate(-50%, -50%);
  121. }
  122. }
  123. .name {
  124. font-size: 0.26rem;
  125. color: #505050;
  126. }
  127. .link {
  128. position: absolute;
  129. right: 0.4rem;
  130. bottom: 0.32rem;
  131. width: 1.8rem;
  132. height: 0.56rem;
  133. background: #f7f7f7;
  134. opacity: 1;
  135. font-size: 0.24rem;
  136. color: #505050;
  137. text-align: center;
  138. line-height: 0.56rem;
  139. &:hover {
  140. background: #eee;
  141. }
  142. }
  143. }
  144. }
  145. }
  146. }