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. }
  15. .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 #000000;
  37. -webkit-box-sizing: border-box;
  38. box-sizing: border-box;
  39. background: #fff;
  40. .brand-logo {
  41. position: relative;
  42. width: 346px;
  43. height: 154px;
  44. overflow: hidden;
  45. img {
  46. display: block;
  47. position: absolute;
  48. left: 50%;
  49. top: 50%;
  50. -webkit-transform: translate(-50%, -50%);
  51. transform: translate(-50%, -50%);
  52. }
  53. }
  54. .name {
  55. font-size: 29px;
  56. color: #000;
  57. margin: 24px 0 32px;
  58. }
  59. .link {
  60. display: block;
  61. width: 160px;
  62. height: 48px;
  63. background: #d2d2d2;
  64. opacity: 1;
  65. font-size: 16px;
  66. color: #000000;
  67. text-align: center;
  68. line-height: 48px;
  69. cursor: pointer;
  70. -webkit-transition: all 0.4s;
  71. transition: all 0.4s;
  72. &:hover {
  73. background: #ddd;
  74. }
  75. }
  76. }
  77. }
  78. }
  79. }
  80. @media screen and (max-width: 768px) {
  81. .main {
  82. .brand {
  83. width: 6.86rem;
  84. margin: 0 auto;
  85. margin-top: 0.4rem;
  86. &:first-child {
  87. margin-top: 0.8rem;
  88. }
  89. .cover {
  90. width: 100%;
  91. height: 3.28rem;
  92. img {
  93. display: block;
  94. width: 100%;
  95. height: 100%;
  96. }
  97. }
  98. .content {
  99. position: relative;
  100. background: #fff;
  101. -webkit-box-sizing: border-box;
  102. box-sizing: border-box;
  103. border: 0.03rem solid #000;
  104. border-top: 0;
  105. padding: 0.32rem 0.4rem;
  106. .brand-logo {
  107. position: relative;
  108. width: 2.7rem;
  109. height: 1rem;
  110. background: skyblue;
  111. overflow: hidden;
  112. img {
  113. display: block;
  114. position: absolute;
  115. left: 50%;
  116. top: 50%;
  117. height: 0.92rem;
  118. -webkit-transform: translate(-50%, -50%);
  119. transform: translate(-50%, -50%);
  120. }
  121. }
  122. .name {
  123. font-size: 0.26rem;
  124. color: #505050;
  125. }
  126. .link {
  127. display: block;
  128. position: absolute;
  129. right: 0.4rem;
  130. bottom: 0.32rem;
  131. width: 1.8rem;
  132. height: 0.56rem;
  133. background: #d2d2d2;
  134. opacity: 1;
  135. font-size: 0.24rem;
  136. color: #000;
  137. text-align: center;
  138. line-height: 0.56rem;
  139. &:hover {
  140. background: #eee;
  141. }
  142. }
  143. }
  144. }
  145. }
  146. }