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.
 
 
 
 

264 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(--theme-color-primary);
  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(-10deg, var(--theme-color-gradient-01) 10%, var(--theme-color-gradient-02) 55%, var(--theme-color-gradient-03) 90%);
  73. }
  74. }
  75. }
  76. .artwork-left {
  77. position: absolute;
  78. left: 0;
  79. top: 0;
  80. height: 100%;
  81. width: calc(43vw - 160px);
  82. @media(max-width: 1199px) {
  83. width: 50vw;
  84. margin: 1% -18%;
  85. max-height: 90vw;
  86. }
  87. @media(max-width: 767px) {
  88. margin: 3% -24%;
  89. height: 94%;
  90. }
  91. @media(max-width: 567px) {
  92. margin: 5% -32%;
  93. height: 90%;
  94. }
  95. .foreground, .background {
  96. position: absolute;
  97. left: -324px;
  98. right: 0;
  99. top: 0;
  100. transform-origin: left top;
  101. height: 100%;
  102. transform: rotate(-3.762deg);
  103. overflow: hidden;
  104. &:before {
  105. content: "";
  106. @include full-size;
  107. background-color: var(--theme-color-primary);
  108. margin: -16% 0;
  109. border-top-right-radius: 26% 50%;
  110. border-bottom-right-radius: 26% 50%;
  111. }
  112. }
  113. .background {
  114. transform: rotate(-11.38deg);
  115. left: -482px;
  116. margin-right: -60px;
  117. @media(max-width: 999px) {
  118. margin-right: -45px;
  119. margin-top: 5px;
  120. }
  121. @media(max-width: 567px) {
  122. margin-right: -30px;
  123. margin-top: 10px;
  124. }
  125. &:before {
  126. background: linear-gradient(-10deg, var(--theme-color-gradient-03) 10%, var(--theme-color-gradient-02) 55%, var(--theme-color-gradient-01) 90%);
  127. }
  128. }
  129. }
  130. [data-type="artwork-background-image"] {
  131. color: white;
  132. /*
  133. &:before {
  134. content: "";
  135. position: relative;
  136. display: block;
  137. height: 20px;
  138. }
  139. */
  140. .image-box {
  141. @include full-size;
  142. &:after {
  143. content: "";
  144. @include full-size;
  145. background: linear-gradient(120deg, rgba(var(--theme-color-primary-rgb), 1) 0%, rgba(var(--theme-color-primary-rgb), 0.2) 100%);
  146. }
  147. img {
  148. position: relative;
  149. display: block;
  150. width: 100%;
  151. height: 100%;
  152. object-fit: cover;
  153. }
  154. }
  155. .artwork {
  156. z-index: 1;
  157. margin-top: 20px;
  158. .foreground, .background {
  159. &:before {
  160. background: var(--theme-color-background);
  161. opacity: 0.7;
  162. }
  163. }
  164. .background:before {
  165. opacity: 0.3;
  166. }
  167. }
  168. }
  169. [data-type="artwork-image"] {
  170. .image-box, .artwork-image-link {
  171. position: absolute;
  172. display: block;
  173. width: calc(43vw - 160px);
  174. right: 0;
  175. top: 0;
  176. transform-origin: right top;
  177. height: 75%;
  178. transform: rotate(-3deg);
  179. overflow: hidden;
  180. @media(max-width: 1199px) {
  181. width: 50vw;
  182. margin: 1% -18%;
  183. max-height: 90vw;
  184. }
  185. @media(max-width: 767px) {
  186. margin: 3% -24%;
  187. max-height: 94%;
  188. }
  189. @media(max-width: 567px) {
  190. margin: 5% -32%;
  191. max-height: 90%;
  192. height: 70vw;
  193. }
  194. picture {
  195. @include full-size;
  196. margin: -16% 0;
  197. border-top-left-radius: 26% 50%;
  198. border-bottom-left-radius: 26% 50%;
  199. overflow: hidden;
  200. }
  201. img {
  202. position: absolute;
  203. display: block;
  204. top: 10%;
  205. width: 100%;
  206. height: 80%;
  207. object-fit: cover;
  208. transform: rotate(3deg);
  209. max-width: none;
  210. }
  211. }
  212. .artwork .foreground {
  213. opacity: 0;
  214. }
  215. .artwork-image-link{
  216. opacity: 0;
  217. }
  218. }
  219. /*
  220. [data-browser="ie"] section[data-type="artwork-image"] .image-box img {
  221. width: auto;
  222. max-width: none;
  223. left: 50%;
  224. height: 84%;
  225. transform: rotate(3deg) translate(-50%, 0);
  226. }
  227. */