Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

383 строки
7.0 KiB

  1. @use '../../_global/styles/mixins' as *;
  2. @use '../../_global/styles/vars' as *;
  3. .slider {
  4. opacity: 0;
  5. transition: opacity 0.4s linear;
  6. &.initiated {
  7. opacity: 1;
  8. }
  9. &.single-slide {
  10. .controls {
  11. display: none;
  12. }
  13. }
  14. .slide-overflow {
  15. overflow: hidden;
  16. transition: height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  17. }
  18. img.loading {
  19. opacity: 0;
  20. }
  21. img.loaded {
  22. transition: 0.3s ease;
  23. opacity: 1;
  24. }
  25. .slide-wrapper {
  26. position: relative;
  27. display: flex;
  28. align-items: flex-start;
  29. width: 10000%;
  30. contain: layout;
  31. &.no-transition {
  32. -webkit-user-select: none;
  33. -moz-user-select: none;
  34. -ms-user-select: none;
  35. user-select: none;
  36. .image-box:after {
  37. content: "";
  38. @include full-size;
  39. z-index: 2;
  40. }
  41. }
  42. img, a {
  43. -webkit-user-select: none;
  44. -moz-user-select: none;
  45. -ms-user-select: none;
  46. user-select: none;
  47. -webkit-user-drag: none;
  48. -moz-user-drag: none;
  49. }
  50. }
  51. .slide {
  52. position: relative;
  53. width: 1%;
  54. min-width: 1%;
  55. max-width: 1%;
  56. }
  57. .prev-clone,
  58. .next-clone {
  59. position: absolute;
  60. display: flex;
  61. width: 100%;
  62. }
  63. .prev-clone {
  64. position: absolute;
  65. right: 100%;
  66. justify-content: flex-end;
  67. }
  68. }
  69. .rotation {
  70. margin: var(--section-margin) auto;
  71. }
  72. .rotation .slider {
  73. position: relative;
  74. display: block;
  75. border-bottom: var(--border-width) solid var(--color-border);
  76. background-color: var(--color-background);
  77. @media(max-width: 567px) {
  78. margin: var(--section-margin) calc(var(--container-padding) * -1);
  79. }
  80. .slide {
  81. &:not(.current) {
  82. height: 0;
  83. }
  84. &.text-only .outer {
  85. @media(max-width: 999px) {
  86. .text-box {
  87. min-height: calc(40vw + 100px);
  88. }
  89. }
  90. @media(min-width: 1000px) {
  91. &:after {
  92. content: "";
  93. position: relative;
  94. display: block;
  95. padding-top: calc(44.4444% - 13.3333px);
  96. }
  97. }
  98. }
  99. }
  100. .outer {
  101. margin: 0 -20px;
  102. display: flex;
  103. @media(max-width: 999px) {
  104. flex-direction: column;
  105. margin: 0;
  106. overflow: hidden;
  107. }
  108. &.download .text-box .btn:before {
  109. @include icon-small-download;
  110. }
  111. &.intranet .text-box .btn:before{
  112. @include icon-small-schloss;
  113. }
  114. &.extranet .text-box .btn:before{
  115. @include icon-small-stern;
  116. }
  117. &.extern .text-box .btn:before{
  118. @include icon-small-link-external;
  119. }
  120. }
  121. .image-box {
  122. order: 1;
  123. position: relative;
  124. flex: 1 1 100%;
  125. @media(min-width: 1000px) {
  126. }
  127. &:before {
  128. content: "";;
  129. position: relative;
  130. display: block;
  131. padding-top: 66.66667%;
  132. }
  133. > picture, img, .gallery {
  134. position: absolute;
  135. left: 0;
  136. top: 0;
  137. height: 100%;
  138. width: 100%;
  139. object-fit: cover;
  140. }
  141. @media(min-width: 1000px) {
  142. padding-right: 20px;
  143. flex: 1 1 66.66667%;
  144. max-width: 66.66667%;
  145. > picture, img, .gallery {
  146. width: calc(100% - 20px);
  147. left: 1px;
  148. }
  149. }
  150. }
  151. .copyright {
  152. @include copyright;
  153. @media(min-width: 1000px) {
  154. left: calc(100% - 20px);
  155. }
  156. }
  157. .text-box {
  158. position: relative;
  159. display: flex;
  160. flex-direction: column;
  161. justify-content: center;
  162. flex: 1 1 33.33333%;
  163. max-width: 33.3333%;
  164. min-width: 400px;
  165. color: var(--color-text);
  166. z-index: 2;
  167. padding: 40px 20px 40px 80px;
  168. font-size: var(--font-size-small);
  169. @media(max-width: 1339px) {
  170. min-width: 360px;
  171. padding: 30px 10px 30px 60px;
  172. }
  173. @media(max-width: 1199px) and (min-width: 1000px) {
  174. min-height: 500px;
  175. font-size: 16px;
  176. }
  177. @media(max-width: 999px) {
  178. padding: 40px 40px 10px;
  179. min-width: 0;
  180. max-width: none;
  181. }
  182. @media(max-width: 567px) {
  183. padding: 28px var(--container-padding) 10px;
  184. }
  185. &:first-child {
  186. padding: 100px 80px;
  187. position: static;
  188. background-color: transparent;
  189. max-width: none;
  190. container-type: inline-size;
  191. @media(max-width: 999px) {
  192. //justify-content: flex-start;
  193. padding: 40px;
  194. }
  195. @media(max-width: 567px) {
  196. padding: 28px 20px 100px;
  197. }
  198. &:after {
  199. content: "";
  200. @include gradient;
  201. position: absolute;
  202. top: 0;
  203. left: 0;
  204. width: 100%;
  205. height: 800px;
  206. }
  207. > * {
  208. max-width: 800px;
  209. z-index: 1;
  210. }
  211. }
  212. &:not(:first-child):before {
  213. content: "";
  214. position: absolute;
  215. left: 0;
  216. right: 0;
  217. bottom: 0;
  218. background-color: var(--color-background);
  219. z-index: -1;
  220. @media(min-width: 1000px) {
  221. top: 0;
  222. margin: -15% -14% -15% 20px;
  223. border-top-right-radius: 28% 50%;
  224. border-bottom-right-radius: 28% 50%;
  225. }
  226. @media(max-width: 999px) {
  227. padding-top: 70%;
  228. margin-right: 0;
  229. margin: 0 -15% -8%;
  230. border-bottom-left-radius: 50% 28%;
  231. border-bottom-right-radius: 50% 28%;
  232. }
  233. }
  234. }
  235. .context-box {
  236. position: absolute;
  237. right: 0;
  238. top: 40px;
  239. z-index: 100;
  240. min-width: 100px;
  241. //min-height: 52px;
  242. padding: 0 10px 0 10px;
  243. @include h4();
  244. line-height: 47px;
  245. margin: 0;
  246. text-align: right;
  247. color: var(--color-text);
  248. @include gradient;
  249. @media(max-width: 999px) {
  250. min-height: auto;
  251. }
  252. &--image {
  253. //padding: 4px 10px;
  254. //display: flex;
  255. padding: 0;
  256. min-width: auto;
  257. img {
  258. //height: 39px;
  259. object-fit: unset;
  260. top: auto;
  261. left: auto;
  262. width: auto;
  263. height: 47px;
  264. position: relative;
  265. display: block;
  266. max-width: none;
  267. min-width: auto;
  268. }
  269. }
  270. }
  271. .image-box {
  272. .context-box {
  273. right: 20px;
  274. @media(max-width: 999px) {
  275. top: 110px;
  276. right: 0;
  277. }
  278. @media(max-width: 567px) {
  279. top: 40px;
  280. }
  281. @media(max-width: 319px) {
  282. top: 20px;
  283. }
  284. }
  285. }
  286. .text-box {
  287. &.context {
  288. @media(max-width: 767px) {
  289. padding-top: 100px;
  290. }
  291. }
  292. .btn {
  293. background-color: var(--color-button-primary-background);
  294. color: var(--color-button-primary-text);
  295. }
  296. }
  297. .slider-tabs {
  298. position: absolute;
  299. display: flex;
  300. right: 0;
  301. bottom: 0;
  302. list-style: none;
  303. padding: 0;
  304. margin: 20px;
  305. .btn {
  306. --button-hover-shadow-opacity: 0.4;
  307. margin: 5px;
  308. font-size: var(--font-size-h4);
  309. span{
  310. position:relative;
  311. z-index:2;
  312. }
  313. @media(max-width: 767px) {
  314. margin: 4px;
  315. }
  316. }
  317. .active .btn {
  318. --button-bg-color: var(--color-button-tertiary-background);
  319. --button-text-color: var(--color-button-tertiary-text);
  320. &:hover::after {
  321. box-shadow: none;
  322. }
  323. }
  324. }
  325. h2, .like-h2 {
  326. margin-top: 0.3em;
  327. margin-bottom: 0.4em;
  328. }
  329. .btn {
  330. margin-top: 0.8em;
  331. }
  332. .prev, .next, .count {
  333. display: none;
  334. }
  335. }