您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

364 行
6.8 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  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(--theme-color-secondary);
  76. background-color: var(--theme-color-primary);
  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. position: relative;
  123. order: 1;
  124. flex: 1 1 100%;
  125. &:before {
  126. content: "";;
  127. position: relative;
  128. display: block;
  129. padding-top: 66.66667%;
  130. }
  131. > img, .gallery {
  132. position: absolute;
  133. left: 0;
  134. top: 0;
  135. height: 100%;
  136. width: 100%;
  137. object-fit: cover;
  138. }
  139. @media(min-width: 1000px) {
  140. padding-right: 20px;
  141. flex: 1 1 66.66667%;
  142. max-width: 66.66667%;
  143. > img, .gallery {
  144. width: calc(100% - 20px);
  145. left: 1px;
  146. }
  147. }
  148. }
  149. .copyright {
  150. @include copyright;
  151. left: calc(100% - 20px);
  152. @media screen and (min-width: 901px) and (max-width: 999px) {
  153. left: 100%;
  154. }
  155. }
  156. .text-box {
  157. position: relative;
  158. display: flex;
  159. flex-direction: column;
  160. justify-content: center;
  161. flex: 1 1 33.33333%;
  162. max-width: 33.3333%;
  163. min-width: 400px;
  164. color: var(--theme-color-background);
  165. z-index: 2;
  166. padding: 40px 20px 40px 80px;
  167. font-size: var(--font-size-small);
  168. @media(max-width: 1339px) {
  169. min-width: 360px;
  170. padding: 30px 10px 30px 60px;
  171. }
  172. @media(max-width: 1199px) and (min-width: 1000px) {
  173. min-height: 500px;
  174. font-size: 16px;
  175. }
  176. @media(max-width: 999px) {
  177. padding: 40px 40px 10px;
  178. min-width: 0;
  179. max-width: none;
  180. }
  181. @media(max-width: 567px) {
  182. padding: 28px var(--container-padding) 10px;
  183. }
  184. &:first-child {
  185. padding: 100px 80px;
  186. position: static;
  187. background-color: transparent;
  188. max-width: none;
  189. @media(max-width: 999px) {
  190. //justify-content: flex-start;
  191. padding: 40px;
  192. }
  193. @media(max-width: 567px) {
  194. padding: 28px 20px 100px;
  195. }
  196. &:after {
  197. content: "";
  198. background: linear-gradient(130deg, var(--theme-color-gradient-01) 10%, var(--theme-color-gradient-02) 80%, var(--theme-color-gradient-03) 100%);
  199. position: absolute;
  200. top: 0;
  201. left: 0;
  202. width: 100%;
  203. height: 800px;
  204. }
  205. > * {
  206. max-width: 800px;
  207. z-index: 1;
  208. }
  209. }
  210. &:not(:first-child):before {
  211. content: "";
  212. position: absolute;
  213. left: 0;
  214. right: 0;
  215. bottom: 0;
  216. background-color: var(--theme-color-primary);
  217. z-index: -1;
  218. @media(min-width: 1000px) {
  219. top: 0;
  220. margin: -15% -14% -15% 20px;
  221. border-top-right-radius: 28% 50%;
  222. border-bottom-right-radius: 28% 50%;
  223. }
  224. @media(max-width: 999px) {
  225. padding-top: 70%;
  226. margin-right: 0;
  227. margin: 0 -15% -8%;
  228. border-bottom-left-radius: 50% 28%;
  229. border-bottom-right-radius: 50% 28%;
  230. }
  231. }
  232. }
  233. .context-box {
  234. position: absolute;
  235. right: 0;
  236. top: 40px;
  237. z-index: 100;
  238. min-width: 100px;
  239. min-height: 47px;
  240. padding: 8px 10px 10px 10px;
  241. @include h4();
  242. margin: 0;
  243. text-align: right;
  244. color: var(--theme-color-white);
  245. background: linear-gradient(90deg, var(--theme-color-gradient-01) 25%,var(--theme-color-gradient-02) 57%,var(--theme-color-gradient-03) 112%);
  246. @media(max-width: 999px) {
  247. min-height: auto;
  248. }
  249. &--image {
  250. padding: 4px 10px;
  251. display: flex;
  252. img {
  253. height: 39px;
  254. }
  255. }
  256. }
  257. .image-box {
  258. .context-box {
  259. right: 20px;
  260. @media(max-width: 999px) {
  261. top: 110px;
  262. right: 0;
  263. }
  264. @media(max-width: 567px) {
  265. top: 60px;
  266. }
  267. @media(max-width: 319px) {
  268. top: 40px;
  269. }
  270. }
  271. }
  272. .text-box {
  273. &.context {
  274. @media(max-width: 767px) {
  275. padding-top: 100px;
  276. }
  277. }
  278. }
  279. .slider-tabs {
  280. position: absolute;
  281. display: flex;
  282. right: 0;
  283. bottom: 0;
  284. list-style: none;
  285. padding: 0;
  286. margin: 20px;
  287. .btn {
  288. --button-hover-shadow-opacity: 0.4;
  289. margin: 5px;
  290. font-size: var(--font-size-h4);
  291. span{
  292. position:relative;
  293. z-index:2;
  294. }
  295. @media(max-width: 767px) {
  296. margin: 4px;
  297. }
  298. }
  299. .active .btn {
  300. --button-bg-color: var(--theme-color-background);
  301. --button-text-color: var(--theme-color-primary);
  302. &:hover::after {
  303. box-shadow: none;
  304. }
  305. }
  306. }
  307. h2, .like-h2 {
  308. margin-top: 0.3em;
  309. margin-bottom: 0.4em;
  310. }
  311. .btn {
  312. margin-top: 0.8em;
  313. }
  314. .prev, .next, .count {
  315. display: none;
  316. }
  317. }