Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

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