Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

444 rindas
9.1 KiB

  1. //@import "../../variables/wood";
  2. //@import "../../variables/color-set";
  3. //@import "../../variables/variables";
  4. //@import "../components/mixins";
  5. @import "../styles/mixins";
  6. .magazine-header {
  7. position: sticky;
  8. display: block;
  9. height: 90px;
  10. top: var(--header-height);
  11. z-index: 99;
  12. font-size: 0;
  13. line-height: 0;
  14. text-align: center;
  15. pointer-events: none;
  16. margin-bottom: 0;
  17. @media(max-width: 767px) {
  18. top: 80px;
  19. height: 70px;
  20. }
  21. @media(max-width: 359px) {
  22. top: 70px;
  23. }
  24. .gradient {
  25. @include full-size;
  26. background: linear-gradient(90deg, $color-gradient-01 10%, $color-gradient-02 55%, $color-gradient-03 90%);
  27. background: linear-gradient(90deg, var(--theme-color-gradient-01, $color-gradient-01) 10%, var(--theme-color-gradient-02, $color-gradient-02) 55%, var(--theme-color-gradient-03, $color-gradient-03) 90%);
  28. transform-origin: center top;
  29. }
  30. .title {
  31. position: absolute;
  32. top: 50%;
  33. left: 50%;
  34. transform-origin: center 7%;
  35. transform: translate(-50%, -50%);
  36. display: inline-block;
  37. font-size: 60px;
  38. color: white;
  39. line-height: 1;
  40. padding: 15px;
  41. font-weight: 400;
  42. text-decoration: none;
  43. pointer-events: all;
  44. @media(max-width: 999px) {
  45. font-size: 48px;
  46. }
  47. @media(max-width: 567px) {
  48. display: block;
  49. width: 100%;
  50. font-size: 32px;
  51. }
  52. }
  53. &.narrow .title {
  54. font-size: 36px;
  55. }
  56. &.narrow {
  57. height: 50px;
  58. }
  59. }
  60. .magazine-start, .magazine-article {
  61. .page-header {
  62. @media(min-width: 1200px) {
  63. height: 100px;
  64. .logo img {
  65. height: 50px;
  66. }
  67. }
  68. &:not(.nav-open):before {
  69. box-shadow: none;
  70. }
  71. }
  72. @media(min-width: 1200px) {
  73. .page-wrapper {
  74. border-top: 100px solid #fff;
  75. }
  76. }
  77. a.teaser .kicker:first-child + .text-box h4, a.teaser .text-box:first-child h4,
  78. a.teaser .kicker:first-child + .text-box h4, a.teaser .text-box:first-child .like-h4{
  79. @include h4;
  80. text-decoration-thickness: 0.07em;
  81. margin-top: 0.4em;
  82. margin-bottom: 0.4em;
  83. @media(min-width: 1000px) {
  84. @include h2;
  85. text-decoration-thickness: 0.07em;
  86. margin-top: 0;
  87. }
  88. }
  89. .teasers h2 {
  90. text-transform: uppercase;
  91. margin-left: 0;
  92. margin-right: 0;
  93. @include h4;
  94. margin-bottom: 1.2em;
  95. &:before {
  96. content: "";
  97. position: relative;
  98. display: block;
  99. background: linear-gradient(90deg, $color-gradient-01 10%, $color-gradient-02 55%, $color-gradient-03 90%);
  100. background: linear-gradient(90deg, var(--theme-color-gradient-01, $color-gradient-01) 10%, var(--theme-color-gradient-02, $color-gradient-02) 55%, var(--theme-color-gradient-03, $color-gradient-03) 90%);
  101. height: 4px;
  102. margin-bottom: 0.5em;
  103. }
  104. }
  105. }
  106. .magazine-start {
  107. .page-content > .teasers:first-child {
  108. @media(max-width: 767px) {
  109. margin-top: 10px;
  110. }
  111. @media(min-width: 768px) and (max-height: 999px) {
  112. margin-top: 30px;
  113. }
  114. @media(min-width: 768px) and (min-height: 1000px) {
  115. margin-top: 50px;
  116. }
  117. }
  118. .teasers[data-items="1"] {
  119. .kicker:first-child {
  120. margin-bottom: 0;
  121. }
  122. .text-box:first-child, .kicker:first-child ~ .text-box {
  123. position: relative;
  124. border-top: 0;
  125. margin-top: 0;
  126. padding-top: 0;
  127. padding-bottom: 44px;
  128. @media(max-width: 1199px) {
  129. padding-right: 20%;
  130. }
  131. @media(max-width: 767px) {
  132. padding-right: 0;
  133. }
  134. &:after {
  135. content: "";
  136. position: absolute;
  137. bottom: 0;
  138. left: 0;
  139. right: 0;
  140. height: 8px;
  141. transition: 0.3s ease;
  142. z-index: 1;
  143. border-bottom-right-radius: 4px;
  144. border-bottom-left-radius: 4px;
  145. }
  146. ~ .reading-time {
  147. margin-bottom: 0;
  148. }
  149. }
  150. a:hover .text-box:after {
  151. height: 14px !important;
  152. }
  153. @media(min-width: 1000px) {
  154. .teaser {
  155. display: block;
  156. &:after {
  157. content: "";
  158. display: block;
  159. clear: left;
  160. }
  161. }
  162. .image-box {
  163. width: calc(50% - 20px);
  164. max-width: none;
  165. float: left;
  166. margin-right: 40px;
  167. @media(max-width: 1199px) {
  168. margin-right: 30px;
  169. width: calc(50% - 15px);
  170. }
  171. ~ .text-box {
  172. min-width: 0;
  173. max-width: calc(50% - 20px);
  174. float: left;
  175. @media(max-width: 1199px) {
  176. width: calc(50% - 15px);
  177. }
  178. }
  179. ~ .kicker {
  180. position: relative;
  181. margin: 0;
  182. display: inline-block;
  183. left: auto;
  184. max-width: calc(50% - 40px);
  185. }
  186. }
  187. &[data-image-size="l"] {
  188. .image-box {
  189. width: calc(66.66667% - 12px);
  190. @media(max-width: 1199px) {
  191. width: calc(66.66667% - 10px);
  192. }
  193. &:before {
  194. padding-top: 55%;
  195. }
  196. ~ .text-box, ~ .kicker {
  197. max-width: calc(33.33333% - 28px);
  198. @media(max-width: 1199px) {
  199. width: calc(33.33333% - 20px);
  200. padding-right: 0;
  201. }
  202. }
  203. }
  204. }
  205. &[data-image-size="s"] {
  206. .image-box {
  207. width: calc(41.66667% - 23px);
  208. min-width: 0;
  209. @media(max-width: 1199px) {
  210. width: calc(41.66667% - 18px);
  211. }
  212. &:before {
  213. padding-top: 100%;
  214. }
  215. ~ .text-box, ~ .kicker {
  216. max-width: calc(58.33333% - 17px);
  217. @media(max-width: 1199px) {
  218. width: calc(58.33333% - 12px);
  219. }
  220. }
  221. }
  222. }
  223. h4, .like-h4 {
  224. @include h2;
  225. text-decoration-thickness: 0.07em;
  226. margin-top: 0;
  227. }
  228. }
  229. }
  230. .teasers[data-items="2"], .teasers[data-items="3"], .teasers[data-items="4"] {
  231. .teaser {
  232. height: calc(100% + 12px);
  233. }
  234. }
  235. }
  236. .reading-time {
  237. position: absolute;
  238. bottom: 0;
  239. right: 0;
  240. font-size: 0;
  241. font-weight: 700;
  242. font-family: "Korb", sans-serif;
  243. text-transform: uppercase;
  244. margin: 8px;
  245. color: $color-primary;
  246. color: var(--theme-color-primary, $color-primary);
  247. transition: color 0.3s ease;
  248. z-index: 2;
  249. span {
  250. padding-left: 4px;
  251. font-size: 14px;
  252. line-height: 1.4;
  253. display: inline-block;
  254. }
  255. .value {
  256. background-color: $color-primary;
  257. background-color: var(--theme-color-primary, $color-primary);
  258. color: white;
  259. padding: 0 6px;
  260. transition: background-color 0.3s ease;
  261. }
  262. }
  263. a:hover .reading-time {
  264. color: $color-secondary-dark;
  265. color: var(--theme-color-secondary-intensed, $color-secondary-dark);
  266. .value {
  267. background-color: $color-secondary-dark;
  268. background-color: var(--theme-color-secondary-intensed, $color-secondary-dark);
  269. }
  270. }
  271. .magazine-article, .magazine-start {
  272. .teaser {
  273. .text-box:not(:last-child) {
  274. padding-bottom: 24px;
  275. }
  276. }
  277. .page-details {
  278. margin-bottom: 20px;
  279. }
  280. }
  281. .magazine-article {
  282. .row {
  283. justify-content: center;
  284. }
  285. .richtext .detail-text {
  286. overflow-x: visible;
  287. }
  288. article.col {
  289. position: relative;
  290. z-index: 1;
  291. max-width: 66.6667%;
  292. background-color: #fff;
  293. @media(max-width: 1199px) {
  294. max-width: 83.3333%;
  295. }
  296. @media(max-width: 999px) {
  297. box-shadow: 0 0 0 10px white;
  298. }
  299. @media(max-width: 767px) {
  300. max-width: 100%;
  301. box-shadow: 0 -4px 0 2px white;
  302. }
  303. }
  304. blockquote {
  305. border-left: 0;
  306. font-weight: 300;
  307. font-size: 48px;
  308. font-style: normal;
  309. margin: 1em 0 1.3em;
  310. padding: 0 40px;
  311. @media(max-width: 1199px) {
  312. font-size: 36px;
  313. }
  314. @media(max-width: 767px) {
  315. font-size: 28px;
  316. padding: 0 0 0 20px;
  317. }
  318. p:not(.author), div.text {
  319. line-height: 1.3;
  320. &:first-child:before {
  321. content: "";
  322. position: relative;
  323. display: block;
  324. width: 30px;
  325. height: 30px;
  326. background-image: url(../../assets/img/quote.svg);
  327. background-size: 100%;
  328. margin: 2px 0 2px -40px;
  329. @media(max-width: 767px) {
  330. margin-left: -20px;
  331. }
  332. }
  333. }
  334. p:not(.author):last-child:after, div.text:last-child:after, .author:after, h4:after, .like-h4:after {
  335. content: "";
  336. position: relative;
  337. display: block;
  338. width: 30px;
  339. height: 30px;
  340. background-image: url(../../assets/img/quote.svg);
  341. background-size: 100%;
  342. margin: 2px 0 2px -40px;
  343. transform: rotate(180deg);
  344. @media(max-width: 767px) {
  345. margin-left: -20px;
  346. }
  347. }
  348. .author, h4, .like-h4 {
  349. position: relative;
  350. font-weight: 400;
  351. text-align: right;
  352. margin-right: -40px;
  353. margin-top: 36px;
  354. font-family: "Source Sans Pro", sans-serif;
  355. font-size: 18px;
  356. &:before {
  357. content: "— ";
  358. position: relative;
  359. top: -1px;
  360. margin-right: 2px;
  361. }
  362. &:after {
  363. position: absolute;
  364. top: -36px;
  365. left: 0;
  366. }
  367. @media(max-width: 767px) {
  368. margin-right: 0;
  369. padding-left: 30px;
  370. font-size: 16px;
  371. font-weight: 500;
  372. margin-top: 32px;
  373. &:after {
  374. top: -30px;
  375. }
  376. }
  377. }
  378. }
  379. }