You are here

teaser.css in Open Social 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;
  pointer-events: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  left: 20px;
  position: relative;
  margin-bottom: -10px;
}

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

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

@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 .teaser__status {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
    top: 0;
    padding-top: 185px;
    left: 0;
    z-index: 2;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .teaser--unpublished .teaser__status:before {
    display: block;
    position: absolute;
    content: '';
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(40%, transparent), color-stop(70%, rgba(0, 0, 0, 0.1)), to(rgba(34, 34, 34, 0.5)));
    background-image: linear-gradient(transparent 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;
  }
}

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