_work.sass 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. .work
  2. position: relative
  3. display: flex
  4. width: 960px
  5. max-width: 80%
  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. h2
  13. margin: 0 0 20px 0
  14. font-size: 30px
  15. text-align: center
  16. &--lockup
  17. position: relative
  18. .slider
  19. position: relative
  20. display: flex
  21. width: 80%
  22. margin: 0 auto
  23. padding: 0
  24. list-style: none
  25. &--item
  26. position: absolute
  27. display: none
  28. text-align: center
  29. a
  30. text-decoration: none
  31. color: #858585
  32. &-title
  33. margin-top: 10px
  34. font-size: 12px
  35. font-weight: 700
  36. text-transform: uppercase
  37. &-description
  38. display: none
  39. max-width: 250px
  40. margin: 0 auto
  41. &-image
  42. width: 150px
  43. height: 150px
  44. margin: 0 auto
  45. border-radius: 50%
  46. overflow: hidden
  47. img
  48. width: 100%
  49. &-left
  50. top: 50%
  51. left: 0
  52. transform: translateY(-50%)
  53. display: block
  54. &-right
  55. top: 50%
  56. right: 0
  57. transform: translateY(-50%)
  58. display: block
  59. &-center
  60. position: relative
  61. top: 30px
  62. left: 50%
  63. transform: translateX(-50%)
  64. display: block
  65. a
  66. color: $white
  67. .slider--item-title
  68. margin-top: 25px
  69. font-size: 16px
  70. .slider--item-description
  71. display: block
  72. .slider--item-image
  73. width: 300px
  74. height: 300px
  75. .slider--next,
  76. .slider--prev
  77. position: absolute
  78. top: 160px
  79. display: flex
  80. width: 50px
  81. height: 50px
  82. align-items: center
  83. justify-content: center
  84. background-color: $muted-gray
  85. border-radius: 50%
  86. cursor: pointer
  87. svg
  88. width: 20px
  89. fill: $white
  90. .slider--next
  91. right: 0
  92. .slider--prev
  93. left: 0
  94. @media (max-width: 900px)
  95. .work
  96. &--lockup
  97. .slider
  98. &--item
  99. &-image
  100. width: 120px
  101. height: 120px
  102. &-center
  103. .slider--item-image
  104. width: 240px
  105. height: 240px
  106. .slider--next,
  107. .slider--prev
  108. top: 130px
  109. @media (max-width: 767px)
  110. .work
  111. &--lockup
  112. .slider
  113. width: 75%
  114. &--item
  115. &-image
  116. width: 90px
  117. height: 90px
  118. &-center
  119. .slider--item-image
  120. width: 190px
  121. height: 190px
  122. .slider--next,
  123. .slider--prev
  124. top: 105px
  125. @media (max-width: 600px)
  126. .work
  127. &--lockup
  128. .slider
  129. width: auto
  130. &--item
  131. &-left,
  132. &-right
  133. display: none