Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

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