You are here

teaser.css in Open Social 8.3

.teaser {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.teaser__image {
  width: 100%;
  display: none;
}

.teaser__teaser-type {
  top: 0;
  width: 30px;
  height: 30px;
  padding: 6px;
  left: 20px;
  position: relative;
  margin-bottom: -10px;
}

.no-image .teaser__teaser-type {
  background: none;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.teaser__teaser-type-icon {
  width: 18px;
  height: 18px;
  display: table;
}

.no-image .teaser__teaser-type-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  fill: #4d4d4d;
}

.teaser__title {
  margin-top: 0;
  margin-bottom: 20px;
  max-height: 2.2em;
  overflow: hidden;
}

.teaser__body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.teaser__content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 20px;
  position: relative;
}

.teaser__content-line {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 100%;
  font-size: 0.875rem;
}

.teaser__content-type-icon {
  width: 14px;
  height: 14px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 14px;
          flex: 0 0 14px;
  line-height: 21px;
  margin-top: 3px;
  fill: #555555;
  margin-right: 12px;
}

.teaser__content-text {
  line-height: 21px;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  text-overflow: ellipsis;
  overflow-x: hidden;
  white-space: nowrap;
}

.teaser__published {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-width: 0;
}

.teaser__published-author {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.teaser__published-date {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-right: 4px;
}

.teaser__badge {
  margin-bottom: 0;
  vertical-align: middle;
}

.teaser--unpublished .teaser__title {
  padding-right: 110px;
}

@media (min-width: 600px) {
  .teaser {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    height: 220px;
  }
  .teaser__image {
    display: block;
    height: 220px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 220px;
            flex: 0 0 220px;
    position: relative;
    overflow: hidden;
    width: auto;
    padding-top: 0;
  }
  .teaser__teaser-type {
    position: absolute;
    margin-bottom: 0;
    left: 0;
    width: 44px;
    height: 44px;
    padding: 12px;
  }
  .teaser--unpublished .status {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
    top: 0;
    padding-top: 185px;
    left: 0;
    z-index: 2;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .teaser--unpublished .status:before {
    display: block;
    position: absolute;
    content: '';
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(40%, rgba(0, 0, 0, 0)), color-stop(70%, rgba(0, 0, 0, 0.1)), to(rgba(34, 34, 34, 0.5)));
    background-image: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.1) 70%, rgba(34, 34, 34, 0.5) 100%);
    height: 100%;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
  }
  .teaser--unpublished .teaser__title {
    padding-right: 130px;
  }
}

File

themes/socialbase/assets/css/teaser.css
View source
  1. .teaser {
  2. display: -webkit-box;
  3. display: -ms-flexbox;
  4. display: flex;
  5. -ms-flex-wrap: wrap;
  6. flex-wrap: wrap;
  7. -webkit-box-orient: horizontal;
  8. -webkit-box-direction: normal;
  9. -ms-flex-direction: row;
  10. flex-direction: row;
  11. }
  12. .teaser__image {
  13. width: 100%;
  14. display: none;
  15. }
  16. .teaser__teaser-type {
  17. top: 0;
  18. width: 30px;
  19. height: 30px;
  20. padding: 6px;
  21. left: 20px;
  22. position: relative;
  23. margin-bottom: -10px;
  24. }
  25. .no-image .teaser__teaser-type {
  26. background: none;
  27. width: 100%;
  28. height: 100%;
  29. display: -webkit-box;
  30. display: -ms-flexbox;
  31. display: flex;
  32. -webkit-box-align: center;
  33. -ms-flex-align: center;
  34. align-items: center;
  35. }
  36. .teaser__teaser-type-icon {
  37. width: 18px;
  38. height: 18px;
  39. display: table;
  40. }
  41. .no-image .teaser__teaser-type-icon {
  42. width: 90px;
  43. height: 90px;
  44. margin: 0 auto;
  45. fill: #4d4d4d;
  46. }
  47. .teaser__title {
  48. margin-top: 0;
  49. margin-bottom: 20px;
  50. max-height: 2.2em;
  51. overflow: hidden;
  52. }
  53. .teaser__body {
  54. -webkit-box-flex: 1;
  55. -ms-flex: 1;
  56. flex: 1;
  57. display: -webkit-box;
  58. display: -ms-flexbox;
  59. display: flex;
  60. overflow: hidden;
  61. -webkit-box-orient: vertical;
  62. -webkit-box-direction: normal;
  63. -ms-flex-direction: column;
  64. flex-direction: column;
  65. }
  66. .teaser__content {
  67. -webkit-box-flex: 1;
  68. -ms-flex: 1;
  69. flex: 1;
  70. padding: 20px;
  71. position: relative;
  72. }
  73. .teaser__content-line {
  74. display: -webkit-box;
  75. display: -ms-flexbox;
  76. display: flex;
  77. max-width: 100%;
  78. font-size: 0.875rem;
  79. }
  80. .teaser__content-type-icon {
  81. width: 14px;
  82. height: 14px;
  83. -webkit-box-flex: 0;
  84. -ms-flex: 0 0 14px;
  85. flex: 0 0 14px;
  86. line-height: 21px;
  87. margin-top: 3px;
  88. fill: #555555;
  89. margin-right: 12px;
  90. }
  91. .teaser__content-text {
  92. line-height: 21px;
  93. -webkit-box-flex: 1;
  94. -ms-flex-positive: 1;
  95. flex-grow: 1;
  96. text-overflow: ellipsis;
  97. overflow-x: hidden;
  98. white-space: nowrap;
  99. }
  100. .teaser__published {
  101. display: -webkit-box;
  102. display: -ms-flexbox;
  103. display: flex;
  104. min-width: 0;
  105. }
  106. .teaser__published-author {
  107. -webkit-box-flex: 1;
  108. -ms-flex-positive: 1;
  109. flex-grow: 1;
  110. text-overflow: ellipsis;
  111. overflow: hidden;
  112. white-space: nowrap;
  113. }
  114. .teaser__published-date {
  115. -ms-flex-negative: 0;
  116. flex-shrink: 0;
  117. margin-right: 4px;
  118. }
  119. .teaser__badge {
  120. margin-bottom: 0;
  121. vertical-align: middle;
  122. }
  123. .teaser--unpublished .teaser__title {
  124. padding-right: 110px;
  125. }
  126. @media (min-width: 600px) {
  127. .teaser {
  128. -ms-flex-wrap: nowrap;
  129. flex-wrap: nowrap;
  130. height: 220px;
  131. }
  132. .teaser__image {
  133. display: block;
  134. height: 220px;
  135. -webkit-box-flex: 0;
  136. -ms-flex: 0 0 220px;
  137. flex: 0 0 220px;
  138. position: relative;
  139. overflow: hidden;
  140. width: auto;
  141. padding-top: 0;
  142. }
  143. .teaser__teaser-type {
  144. position: absolute;
  145. margin-bottom: 0;
  146. left: 0;
  147. width: 44px;
  148. height: 44px;
  149. padding: 12px;
  150. }
  151. .teaser--unpublished .status {
  152. position: absolute;
  153. width: 100%;
  154. height: 100%;
  155. text-align: center;
  156. color: white;
  157. top: 0;
  158. padding-top: 185px;
  159. left: 0;
  160. z-index: 2;
  161. font-weight: 500;
  162. text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  163. }
  164. .teaser--unpublished .status:before {
  165. display: block;
  166. position: absolute;
  167. content: '';
  168. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(40%, rgba(0, 0, 0, 0)), color-stop(70%, rgba(0, 0, 0, 0.1)), to(rgba(34, 34, 34, 0.5)));
  169. background-image: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.1) 70%, rgba(34, 34, 34, 0.5) 100%);
  170. height: 100%;
  171. width: 100%;
  172. left: 0;
  173. right: 0;
  174. top: 0;
  175. bottom: 0;
  176. z-index: -1;
  177. }
  178. .teaser--unpublished .teaser__title {
  179. padding-right: 130px;
  180. }
  181. }