You are here

stream.css in Open Social 8.6

.stream {
  padding: 0;
  list-style: none;
  position: relative;
  margin-left: -15px;
}

.stream:before {
  top: 21px;
  bottom: 0;
  left: 7px;
  width: 2px;
  content: '';
  background: rgba(0, 0, 0, 0.25);
  position: absolute;
}

.stream-item {
  position: relative;
}

.stream-item:first-of-type {
  z-index: 2;
}

.stream-item .pull-right {
  z-index: 2;
}

.stream-icon {
  top: 19px;
  left: 4px;
  width: 8px;
  height: 8px;
  position: absolute;
  background: #777777;
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
          box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  border: 1px solid #fff;
}

.card--stream {
  margin-left: 1.25rem;
}

.card--stream:before, .card--stream:after {
  right: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.card--stream:before {
  border-right-color: rgba(0, 0, 0, 0.12);
  border-width: 7px;
  top: 16px;
}

.card--stream:after {
  border-right-color: white;
  border-width: 6px;
  top: 17px;
}

.card--stream .mediawrapper {
  margin-top: 15px;
}

.card--stream .mediawrapper:first-child {
  margin-top: 0;
}

.card--stream .comment__reply-btn {
  display: none;
}

.card--stream .comment {
  font-size: 0.875rem;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
}

.card--stream .comment__avatar {
  margin-right: 8px;
  width: 44px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.teaser--stream {
  margin-top: 0.625rem;
  margin-right: -1.25rem;
  margin-bottom: 0.625rem;
  margin-left: -1.25rem;
  background: #e6e6e6;
}

.teaser--stream:last-child {
  margin-bottom: -1.25rem;
}

.post-unpublished img {
  opacity: 0.5;
}

.post-unpublished .badge-default {
  background-color: #777777;
  color: white;
  margin-left: 5px;
  font-size: 100%;
}

.post-unpublished * {
  color: #9b9b9b;
}

@media (min-width: 600px) {
  .stream {
    margin-left: 0;
  }
  .stream:before {
    top: 42px;
  }
  .stream-icon {
    left: 0;
    top: 36px;
    width: 16px;
    height: 16px;
    border-width: 2px;
  }
  .card--stream {
    margin-left: 30px;
  }
  .card--stream:before {
    border-width: 9px;
    top: 35px;
  }
  .card--stream:after {
    border-width: 8px;
    top: 36px;
  }
  .card--stream .comment__avatar {
    margin-right: 12px;
  }
  .teaser--stream {
    height: 200px;
  }
  .teaser--stream .teaser__image {
    height: 200px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 200px;
            flex: 0 0 200px;
  }
}

File

themes/socialbase/assets/css/stream.css
View source
  1. .stream {
  2. padding: 0;
  3. list-style: none;
  4. position: relative;
  5. margin-left: -15px;
  6. }
  7. .stream:before {
  8. top: 21px;
  9. bottom: 0;
  10. left: 7px;
  11. width: 2px;
  12. content: '';
  13. background: rgba(0, 0, 0, 0.25);
  14. position: absolute;
  15. }
  16. .stream-item {
  17. position: relative;
  18. }
  19. .stream-item:first-of-type {
  20. z-index: 2;
  21. }
  22. .stream-item .pull-right {
  23. z-index: 2;
  24. }
  25. .stream-icon {
  26. top: 19px;
  27. left: 4px;
  28. width: 8px;
  29. height: 8px;
  30. position: absolute;
  31. background: #777777;
  32. -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  33. box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  34. border-radius: 50%;
  35. border: 1px solid #fff;
  36. }
  37. .card--stream {
  38. margin-left: 1.25rem;
  39. }
  40. .card--stream:before, .card--stream:after {
  41. right: 100%;
  42. border: solid transparent;
  43. content: " ";
  44. height: 0;
  45. width: 0;
  46. position: absolute;
  47. pointer-events: none;
  48. }
  49. .card--stream:before {
  50. border-right-color: rgba(0, 0, 0, 0.12);
  51. border-width: 7px;
  52. top: 16px;
  53. }
  54. .card--stream:after {
  55. border-right-color: white;
  56. border-width: 6px;
  57. top: 17px;
  58. }
  59. .card--stream .mediawrapper {
  60. margin-top: 15px;
  61. }
  62. .card--stream .mediawrapper:first-child {
  63. margin-top: 0;
  64. }
  65. .card--stream .comment__reply-btn {
  66. display: none;
  67. }
  68. .card--stream .comment {
  69. font-size: 0.875rem;
  70. position: relative;
  71. display: -webkit-box;
  72. display: -ms-flexbox;
  73. display: flex;
  74. width: 100%;
  75. }
  76. .card--stream .comment__avatar {
  77. margin-right: 8px;
  78. width: 44px;
  79. -ms-flex-negative: 0;
  80. flex-shrink: 0;
  81. }
  82. .teaser--stream {
  83. margin-top: 0.625rem;
  84. margin-right: -1.25rem;
  85. margin-bottom: 0.625rem;
  86. margin-left: -1.25rem;
  87. background: #e6e6e6;
  88. }
  89. .teaser--stream:last-child {
  90. margin-bottom: -1.25rem;
  91. }
  92. .post-unpublished img {
  93. opacity: 0.5;
  94. }
  95. .post-unpublished .badge-default {
  96. background-color: #777777;
  97. color: white;
  98. margin-left: 5px;
  99. font-size: 100%;
  100. }
  101. .post-unpublished * {
  102. color: #9b9b9b;
  103. }
  104. @media (min-width: 600px) {
  105. .stream {
  106. margin-left: 0;
  107. }
  108. .stream:before {
  109. top: 42px;
  110. }
  111. .stream-icon {
  112. left: 0;
  113. top: 36px;
  114. width: 16px;
  115. height: 16px;
  116. border-width: 2px;
  117. }
  118. .card--stream {
  119. margin-left: 30px;
  120. }
  121. .card--stream:before {
  122. border-width: 9px;
  123. top: 35px;
  124. }
  125. .card--stream:after {
  126. border-width: 8px;
  127. top: 36px;
  128. }
  129. .card--stream .comment__avatar {
  130. margin-right: 12px;
  131. }
  132. .teaser--stream {
  133. height: 200px;
  134. }
  135. .teaser--stream .teaser__image {
  136. height: 200px;
  137. -webkit-box-flex: 0;
  138. -ms-flex: 0 0 200px;
  139. flex: 0 0 200px;
  140. }
  141. }