You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

252 lines
4.7 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .artwork-wrapper {
  4. position: relative;
  5. display: block;
  6. overflow: hidden;
  7. width: 100%;
  8. &::before {
  9. content: '';
  10. display: block;
  11. padding-top: 45%;
  12. @media(max-width: 999px) {
  13. padding-top: 52%;
  14. }
  15. }
  16. }
  17. section .artwork-wrapper {
  18. position: absolute;
  19. height: 100%;
  20. top: 0;
  21. }
  22. .artwork {
  23. position: absolute;
  24. right: 0;
  25. top: 0;
  26. height: 100%;
  27. width: calc(43vw - 160px);
  28. @media(max-width: 1199px) {
  29. width: 50vw;
  30. margin: 1% -18%;
  31. max-height: 90vw;
  32. }
  33. @media(max-width: 767px) {
  34. margin: 3% -24%;
  35. height: 94%;
  36. }
  37. @media(max-width: 567px) {
  38. margin: 5% -32%;
  39. height: 90%;
  40. }
  41. .foreground, .background {
  42. position: absolute;
  43. left: 0;
  44. right: 0;
  45. top: 0;
  46. transform-origin: right top;
  47. height: 75%;
  48. transform: rotate(-3deg);
  49. overflow: hidden;
  50. &:before {
  51. content: "";
  52. @include full-size;
  53. background-color: var(--swatches-primary-500);
  54. margin: -16% 0;
  55. border-top-left-radius: 26% 50%;
  56. border-bottom-left-radius: 26% 50%;
  57. }
  58. }
  59. .background {
  60. transform: rotate(-9deg);
  61. left: -3vw;
  62. margin-left: -60px;
  63. @media(max-width: 999px) {
  64. margin-left: -45px;
  65. margin-top: 5px;
  66. }
  67. @media(max-width: 567px) {
  68. margin-left: -30px;
  69. margin-top: 10px;
  70. }
  71. &:before {
  72. background: linear-gradient(323deg, rgba(75, 164, 144, 0.00) -5.42%, var(--gradient-a) 85.26%), var(--swatches-primary-500);
  73. }
  74. }
  75. }
  76. .artwork-left {
  77. position: absolute;
  78. left: 0;
  79. top: 0;
  80. height: 100%;
  81. width: calc(50vw - (var(--container-width) / 2));
  82. + .artwork{
  83. width: calc(50vw - (var(--container-width) / 2));
  84. .foreground, .background {
  85. height: 437px;
  86. transform-origin: center center;
  87. transform: rotate(0) !important;
  88. }
  89. }
  90. @media(max-width: 767px) {
  91. margin: 3% -24%;
  92. height: 94%;
  93. }
  94. @media(max-width: 567px) {
  95. margin: 5% -32%;
  96. height: 90%;
  97. }
  98. .foreground, .background {
  99. position: absolute;
  100. left: 0;
  101. right: 0;
  102. top: 0;
  103. transform-origin: center center;
  104. height: 437px;
  105. transform: rotate(0);
  106. overflow: hidden;
  107. &:before {
  108. content: "";
  109. @include full-size;
  110. background-color: var(--swatches-primary-500);
  111. margin: -16% 0;
  112. border-top-right-radius: 26% 50%;
  113. border-bottom-right-radius: 26% 50%;
  114. }
  115. }
  116. .background {
  117. //transform: rotate(-11.38deg);
  118. transform: rotate(0);
  119. left: -482px;
  120. margin-right: -60px;
  121. @media(max-width: 999px) {
  122. margin-right: -45px;
  123. margin-top: 5px;
  124. }
  125. @media(max-width: 567px) {
  126. margin-right: -30px;
  127. margin-top: 10px;
  128. }
  129. &:before {
  130. background: linear-gradient(152deg, rgba(75, 164, 144, 0.00) -25.03%, var(--gradient-a) 96.63%), var(--swatches-primary-500);
  131. }
  132. }
  133. }
  134. [data-type="artwork-background-image"] {
  135. color: var(--color-background);
  136. .image-box {
  137. @include full-size;
  138. &:after {
  139. content: "";
  140. @include full-size;
  141. background: linear-gradient(120deg, rgba(var(--swatches-primary-500-rgb), 1) 0%, rgba(var(--swatches-primary-500-rgb), 0.2) 100%);
  142. // background: linear-gradient(152deg, rgba(75, 164, 144, 0.00) -25.03%, var(--gradient-a) 96.63%), var(--swatches-primary-500);
  143. }
  144. img {
  145. position: relative;
  146. display: block;
  147. width: 100%;
  148. height: 100%;
  149. object-fit: cover;
  150. }
  151. }
  152. .artwork {
  153. z-index: 1;
  154. margin-top: 20px;
  155. .foreground, .background {
  156. &:before {
  157. background: var(--color-background);
  158. opacity: 0.7;
  159. }
  160. }
  161. .background:before {
  162. opacity: 0.3;
  163. }
  164. }
  165. }
  166. [data-type="artwork-image"] {
  167. .image-box, .artwork-image-link {
  168. position: absolute;
  169. display: block;
  170. width: calc(43vw - 160px);
  171. right: 0;
  172. top: 0;
  173. transform-origin: right top;
  174. height: 75%;
  175. transform: rotate(-3deg);
  176. overflow: hidden;
  177. @media(max-width: 1199px) {
  178. width: 50vw;
  179. margin: 1% -18%;
  180. max-height: 90vw;
  181. }
  182. @media(max-width: 767px) {
  183. margin: 3% -24%;
  184. max-height: 94%;
  185. }
  186. @media(max-width: 567px) {
  187. margin: 5% -32%;
  188. max-height: 90%;
  189. height: 70vw;
  190. }
  191. picture {
  192. @include full-size;
  193. margin: -16% 0;
  194. border-top-left-radius: 26% 50%;
  195. border-bottom-left-radius: 26% 50%;
  196. overflow: hidden;
  197. }
  198. img {
  199. position: absolute;
  200. display: block;
  201. top: 10%;
  202. width: 100%;
  203. height: 80%;
  204. object-fit: cover;
  205. transform: rotate(3deg);
  206. max-width: none;
  207. }
  208. }
  209. .artwork .foreground {
  210. opacity: 0;
  211. }
  212. .artwork-image-link{
  213. opacity: 0;
  214. }
  215. }