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.
 
 
 
 

150 rivejä
3.0 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .mini-teaser {
  4. position: relative;
  5. background-color: white;
  6. overflow: hidden;
  7. width: 100%;
  8. //max-width: 420px;
  9. border-radius: 4px;
  10. padding: 16px 12px;
  11. transition: 0.25s ease;
  12. line-height: 1.2;
  13. text-align: center;
  14. text-decoration: none;
  15. background-color: var(--theme-grey-light);
  16. display: block;
  17. .title{
  18. font-size: 22px;
  19. }
  20. &.standard::before {
  21. content: "";
  22. position: absolute;
  23. display: block;
  24. top: 0;
  25. left: 0;
  26. right: 0;
  27. height: 4px;
  28. background-color: var(--theme-color-secondary);
  29. transition: 0.2s ease;
  30. }
  31. &.standard:hover::before {
  32. height: 8px;
  33. }
  34. h4{
  35. font-size: 22px;
  36. }
  37. .text-box{
  38. position: relative;
  39. }
  40. &.infoteaser{
  41. background: linear-gradient(161deg, rgba(var(--theme-color-primary-rgb), 1) 0%, rgba(var(--theme-color-primary-rgb), 0.2) 100%);
  42. position: relative;
  43. &:after{
  44. content:"";
  45. position:absolute;
  46. left:0;
  47. right:0;
  48. top:0;
  49. bottom:0;
  50. z-index:-1;
  51. background: linear-gradient(161deg, var(--theme-color-gradient-01) 40%, var(--theme-color-gradient-02) 80%, var(--theme-color-gradient-03) 120%);
  52. }
  53. &.background-image{
  54. background-size:cover;
  55. &:after{
  56. position:absolute;
  57. top:0;
  58. left:0;
  59. bottom:0;
  60. right:0;
  61. z-index: 0;
  62. content:"";
  63. opacity: 0.6;
  64. background: linear-gradient(87deg, #036 12.55%, rgba(1, 40, 81, 0.86) 56.52%, rgba(0, 51, 102, 0.00) 94.05%);
  65. background-blend-mode: overlay;
  66. }
  67. .text-box{
  68. position: relative;
  69. z-index: 1;
  70. }
  71. }
  72. .title, .category, .btn{
  73. color:white;
  74. }
  75. .title{
  76. margin-top: 0;
  77. padding-left: 54px;
  78. min-height: 48px;
  79. text-align: left;
  80. line-height: 24px;
  81. margin-bottom: 19px;
  82. width: 100%;
  83. &.noicon{
  84. padding-left: 0;
  85. min-height: 0;
  86. + .btn{
  87. margin-left: 0;
  88. }
  89. }
  90. }
  91. .btn{
  92. background-color: transparent;
  93. border: 1px solid white;
  94. align-self: flex-start;
  95. margin-left: 54px;
  96. display: inline-block;
  97. padding:8px 10px;
  98. line-height: 22px;
  99. border-radius:16px;
  100. --button-padding: 8px 10px;
  101. min-height: 0;
  102. font-size: 22px;
  103. &:after{
  104. border-radius:16px;
  105. }
  106. }
  107. .icon-box{
  108. margin-bottom: 19px;
  109. margin-top: 0;
  110. padding-top: 0;
  111. position: absolute;
  112. top: 0;
  113. left: 0;
  114. }
  115. .text-box{
  116. padding: 0;
  117. display: flex;
  118. flex-wrap: wrap;
  119. }
  120. }
  121. .icon-box {
  122. font-family: 'Pictograms', sans-serif;
  123. line-height: 1;
  124. color: white;
  125. font-size:48px
  126. }
  127. .category{
  128. text-align: left;
  129. padding:0;
  130. margin:0;
  131. margin-bottom:8px;
  132. font-size:16px;
  133. text-transform: uppercase;
  134. line-height: 18px;
  135. }
  136. .title{
  137. text-align: left;
  138. padding:0;
  139. margin:0;
  140. }
  141. }