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.
 
 
 
 

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