_about.sass 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. .about
  2. position: relative
  3. display: flex
  4. width: 900px
  5. max-width: 75%
  6. height: 100%
  7. flex-direction: column
  8. justify-content: center
  9. margin: 0 auto
  10. @media (max-width: 1180px)
  11. max-width: 100%
  12. &--banner
  13. position: relative
  14. height: 475px
  15. &::before
  16. content: ""
  17. position: absolute
  18. top: 20px
  19. left: 200px
  20. transform: rotate(-25deg)
  21. border: 5px solid $highlight
  22. border-right-color: transparent
  23. border-bottom-color: transparent
  24. &::after
  25. content: ""
  26. position: absolute
  27. top: 75px
  28. left: 400px
  29. transform: rotate(45deg)
  30. width: 10px
  31. height: 10px
  32. background-color: $highlight
  33. h2
  34. position: relative
  35. margin-top: 35px
  36. font-size: 68px
  37. font-weight: 900
  38. line-height: 1
  39. z-index: 1
  40. &::before
  41. content: ""
  42. position: absolute
  43. top: 60px
  44. left: 268px
  45. width: 30px
  46. height: 30px
  47. background-color: $highlight
  48. border-radius: 50%
  49. &::after
  50. content: ""
  51. position: absolute
  52. top: 255px
  53. left: 255px
  54. width: 10px
  55. height: 10px
  56. background-color: $highlight
  57. a
  58. padding: 5px 17px 5px 0
  59. text-decoration: none
  60. color: $white
  61. font-weight: 700
  62. text-transform: uppercase
  63. background-color: transparent
  64. &:hover
  65. svg
  66. left: 10px
  67. svg
  68. position: relative
  69. left: 5px
  70. width: 15px
  71. fill: $white
  72. transition: left .2s ease-in-out
  73. img
  74. position: absolute
  75. bottom: -90px
  76. right: -12px
  77. &--options
  78. display: flex
  79. max-width: 600px
  80. justify-content: space-between
  81. margin: 0
  82. padding: 0
  83. list-style: none
  84. & > a
  85. position: relative
  86. width: 150px
  87. height: 75px
  88. text-decoration: none
  89. color: $white
  90. border: 10px solid $highlight
  91. background:
  92. position: center
  93. size: cover
  94. repeat: no-repeat
  95. &:nth-child(1)
  96. background-image: url("../img/about-winners.jpg")
  97. &:nth-child(2)
  98. background-image: url("../img/about-philosophy.jpg")
  99. &:nth-child(3)
  100. background-image: url("../img/about-history.jpg")
  101. &:hover
  102. h3
  103. bottom: -50px
  104. h3
  105. position: absolute
  106. bottom: -38px
  107. left: 10px
  108. font-size: 16px
  109. text-transform: uppercase
  110. transition: bottom .2s ease-in-out, left .2s ease-in-out
  111. @media (max-width: 767px)
  112. .about
  113. &--banner
  114. height: 305px
  115. &::before
  116. top: 0
  117. left: 125px
  118. &::after
  119. top: 35px
  120. left: 260px
  121. h2
  122. margin-top: 10px
  123. font-size: 44px
  124. &::before
  125. top: 28px
  126. left: 168px
  127. &::after
  128. top: 163px
  129. left: 163px
  130. img
  131. width: 315px
  132. @media (max-width: 600px)
  133. .about
  134. &--banner
  135. height: auto
  136. &::before
  137. left: 155px
  138. &::after
  139. left: 310px
  140. h2
  141. margin-top: 0
  142. font-size: 55px
  143. &::before
  144. top: 43px
  145. left: 214px
  146. &::after
  147. top: 205px
  148. left: 205px
  149. img
  150. display: none
  151. &--options
  152. display: none