You are here

teaser.css in Open Social 8.8

.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.4em;
  line-height: 1.2;
  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;
}

.teaser--tile.teaser-profile {
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.teaser--tile.teaser-profile .teaser__image {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100px;
          flex: 0 0 100px;
  height: 100px;
  margin-bottom: 70px;
  border-radius: 0;
  text-align: center;
  overflow: visible;
  display: block;
}

.teaser--tile.teaser-profile .teaser__image a {
  display: block;
  height: 100%;
}

.teaser--tile.teaser-profile .teaser__image img {
  display: block;
  margin: 0 auto;
  width: 128px;
  height: 128px;
  border: 9px solid white;
  position: relative;
  top: 36px;
  left: auto;
  background-color: #fff;
}

.teaser--small {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 1.5rem 1.25rem 0;
}

.teaser--small .teaser--small__media {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}

.teaser--small .teaser--small__media img {
  border-radius: 5px;
}

.teaser--small .teaser--small__media .teaser--small__type-icon {
  width: 44px;
  height: 44px;
  fill: #4d4d4d;
  background-color: #e6e6e6;
  border-radius: 5px;
  padding: .75rem;
}

.teaser--small .teaser--small__title {
  font-size: 1rem;
}

.teaser--small .teaser--small__details {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-left: 1rem;
}

.teaser--small .teaser--small__meta {
  color: #555555;
}

.teaser--small .teaser--small__meta a {
  font-weight: 300;
}

.teaser--small .teaser--small__meta a:hover {
  text-decoration: underline;
}

.teaser--small:last-child {
  padding-bottom: 1.5rem;
}

.teaser--small + .card__actionbar {
  margin-top: 0;
}

@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;
  }
}

@media (max-width: 599px) {
  .teaser__body {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    max-width: 100%;
  }
}

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.4em;
  51. line-height: 1.2;
  52. overflow: hidden;
  53. }
  54. .teaser__body {
  55. -webkit-box-flex: 1;
  56. -ms-flex: 1;
  57. flex: 1;
  58. display: -webkit-box;
  59. display: -ms-flexbox;
  60. display: flex;
  61. overflow: hidden;
  62. -webkit-box-orient: vertical;
  63. -webkit-box-direction: normal;
  64. -ms-flex-direction: column;
  65. flex-direction: column;
  66. }
  67. .teaser__content {
  68. -webkit-box-flex: 1;
  69. -ms-flex: 1;
  70. flex: 1;
  71. padding: 20px;
  72. position: relative;
  73. }
  74. .teaser__content-line {
  75. display: -webkit-box;
  76. display: -ms-flexbox;
  77. display: flex;
  78. max-width: 100%;
  79. font-size: 0.875rem;
  80. }
  81. .teaser__content-type-icon {
  82. width: 14px;
  83. height: 14px;
  84. -webkit-box-flex: 0;
  85. -ms-flex: 0 0 14px;
  86. flex: 0 0 14px;
  87. line-height: 21px;
  88. margin-top: 3px;
  89. fill: #555555;
  90. margin-right: 12px;
  91. }
  92. .teaser__content-text {
  93. line-height: 21px;
  94. -webkit-box-flex: 1;
  95. -ms-flex-positive: 1;
  96. flex-grow: 1;
  97. text-overflow: ellipsis;
  98. overflow-x: hidden;
  99. white-space: nowrap;
  100. }
  101. .teaser__published {
  102. display: -webkit-box;
  103. display: -ms-flexbox;
  104. display: flex;
  105. min-width: 0;
  106. }
  107. .teaser__published-author {
  108. -webkit-box-flex: 1;
  109. -ms-flex-positive: 1;
  110. flex-grow: 1;
  111. text-overflow: ellipsis;
  112. overflow: hidden;
  113. white-space: nowrap;
  114. }
  115. .teaser__published-date {
  116. -ms-flex-negative: 0;
  117. flex-shrink: 0;
  118. margin-right: 4px;
  119. }
  120. .teaser__badge {
  121. margin-bottom: 0;
  122. vertical-align: middle;
  123. }
  124. .teaser--unpublished .teaser__title {
  125. padding-right: 110px;
  126. }
  127. .teaser--tile.teaser-profile {
  128. padding: 0;
  129. text-align: center;
  130. overflow: hidden;
  131. }
  132. .teaser--tile.teaser-profile .teaser__image {
  133. -webkit-box-flex: 0;
  134. -ms-flex: 0 0 100px;
  135. flex: 0 0 100px;
  136. height: 100px;
  137. margin-bottom: 70px;
  138. border-radius: 0;
  139. text-align: center;
  140. overflow: visible;
  141. display: block;
  142. }
  143. .teaser--tile.teaser-profile .teaser__image a {
  144. display: block;
  145. height: 100%;
  146. }
  147. .teaser--tile.teaser-profile .teaser__image img {
  148. display: block;
  149. margin: 0 auto;
  150. width: 128px;
  151. height: 128px;
  152. border: 9px solid white;
  153. position: relative;
  154. top: 36px;
  155. left: auto;
  156. background-color: #fff;
  157. }
  158. .teaser--small {
  159. display: -webkit-box;
  160. display: -ms-flexbox;
  161. display: flex;
  162. padding: 1.5rem 1.25rem 0;
  163. }
  164. .teaser--small .teaser--small__media {
  165. -webkit-box-flex: 0;
  166. -ms-flex: none;
  167. flex: none;
  168. }
  169. .teaser--small .teaser--small__media img {
  170. border-radius: 5px;
  171. }
  172. .teaser--small .teaser--small__media .teaser--small__type-icon {
  173. width: 44px;
  174. height: 44px;
  175. fill: #4d4d4d;
  176. background-color: #e6e6e6;
  177. border-radius: 5px;
  178. padding: .75rem;
  179. }
  180. .teaser--small .teaser--small__title {
  181. font-size: 1rem;
  182. }
  183. .teaser--small .teaser--small__details {
  184. display: -webkit-box;
  185. display: -ms-flexbox;
  186. display: flex;
  187. -webkit-box-orient: vertical;
  188. -webkit-box-direction: normal;
  189. -ms-flex-direction: column;
  190. flex-direction: column;
  191. margin-left: 1rem;
  192. }
  193. .teaser--small .teaser--small__meta {
  194. color: #555555;
  195. }
  196. .teaser--small .teaser--small__meta a {
  197. font-weight: 300;
  198. }
  199. .teaser--small .teaser--small__meta a:hover {
  200. text-decoration: underline;
  201. }
  202. .teaser--small:last-child {
  203. padding-bottom: 1.5rem;
  204. }
  205. .teaser--small + .card__actionbar {
  206. margin-top: 0;
  207. }
  208. @media (min-width: 600px) {
  209. .teaser {
  210. -ms-flex-wrap: nowrap;
  211. flex-wrap: nowrap;
  212. height: 220px;
  213. }
  214. .teaser__image {
  215. display: block;
  216. height: 220px;
  217. -webkit-box-flex: 0;
  218. -ms-flex: 0 0 220px;
  219. flex: 0 0 220px;
  220. position: relative;
  221. overflow: hidden;
  222. width: auto;
  223. padding-top: 0;
  224. }
  225. .teaser__teaser-type {
  226. position: absolute;
  227. margin-bottom: 0;
  228. left: 0;
  229. width: 44px;
  230. height: 44px;
  231. padding: 12px;
  232. }
  233. .teaser--unpublished .status {
  234. position: absolute;
  235. width: 100%;
  236. height: 100%;
  237. text-align: center;
  238. color: white;
  239. top: 0;
  240. padding-top: 185px;
  241. left: 0;
  242. z-index: 2;
  243. font-weight: 500;
  244. text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  245. }
  246. .teaser--unpublished .status:before {
  247. display: block;
  248. position: absolute;
  249. content: '';
  250. 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)));
  251. background-image: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.1) 70%, rgba(34, 34, 34, 0.5) 100%);
  252. height: 100%;
  253. width: 100%;
  254. left: 0;
  255. right: 0;
  256. top: 0;
  257. bottom: 0;
  258. z-index: -1;
  259. }
  260. .teaser--unpublished .teaser__title {
  261. padding-right: 130px;
  262. }
  263. }
  264. @media (max-width: 599px) {
  265. .teaser__body {
  266. -webkit-box-flex: 0;
  267. -ms-flex: 0 0 100%;
  268. flex: 0 0 100%;
  269. max-width: 100%;
  270. }
  271. }