You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

109 lines
2.1 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .magazine-header {
  4. --magazine-header-height: 90px;
  5. position: sticky;
  6. display: block;
  7. height: var(--magazine-header-height);
  8. top: var(--header-height);
  9. z-index: 99;
  10. font-size: 0;
  11. line-height: 0;
  12. text-align: center;
  13. pointer-events: none;
  14. box-shadow: 0 -10px 0 0 var(--theme-color-white);
  15. @media(max-width: 767px) {
  16. --magazine-header-height: 70px;
  17. margin-bottom: 0;
  18. }
  19. a {
  20. transition: none;
  21. }
  22. .gradient {
  23. @include full-size;
  24. background: linear-gradient(90deg, var(--theme-color-gradient-01) 10%, var(--theme-color-gradient-02) 55%, var(--theme-color-gradient-03) 90%);
  25. transform-origin: center top;
  26. }
  27. .title {
  28. position: absolute;
  29. top: 50%;
  30. left: 50%;
  31. transform-origin: center 7%;
  32. transform: translate(-50%, -50%);
  33. display: inline-block;
  34. font-family: var(--font-korb);
  35. font-size: var(--font-size-h1);
  36. color: white;
  37. line-height: 1;
  38. padding: 15px;
  39. font-weight: 400;
  40. text-decoration: none;
  41. pointer-events: all;
  42. @media(max-width: 567px) {
  43. display: block;
  44. width: 100%;
  45. }
  46. }
  47. img {
  48. display: block;
  49. width: auto;
  50. height: calc(var(--magazine-header-height) * 7 / 9);
  51. margin: 0 auto;
  52. }
  53. .image-and-text {
  54. display: flex;
  55. align-items: center;
  56. @media(max-width: 567px) {
  57. width: auto;
  58. }
  59. img {
  60. @media(max-width: 370px) {
  61. display: none;
  62. }
  63. }
  64. }
  65. .text {
  66. display: flex;
  67. flex-direction: column;
  68. font-size: 32px;
  69. line-height: 29px;
  70. padding-left: 10px;
  71. margin: 0;
  72. white-space: nowrap;
  73. @media(max-width: 567px) {
  74. font-size: 22px;
  75. line-height: 19px;
  76. }
  77. .title-text {
  78. text-align: right;
  79. }
  80. .small-text {
  81. text-align: right;
  82. font-size: 19px;
  83. @media(max-width: 567px) {
  84. font-size: 13px;
  85. }
  86. }
  87. }
  88. &.narrow {
  89. --magazine-header-height: 50px;
  90. margin-bottom: 10px;
  91. @media(max-width: 767px) {
  92. margin-bottom: 0;
  93. }
  94. .title {
  95. font-size: var(--font-size-h3);
  96. }
  97. }
  98. }