You are here

stream.css in Open Social 8.9

.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;
  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: flex;
  width: 100%;
}

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

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

.teaser.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.teaser--stream {
    height: 200px;
  }
  .teaser.teaser--stream .teaser__image {
    height: 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. box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  33. border-radius: 50%;
  34. border: 1px solid #fff;
  35. }
  36. .card--stream {
  37. margin-left: 1.25rem;
  38. }
  39. .card--stream:before, .card--stream:after {
  40. right: 100%;
  41. border: solid transparent;
  42. content: " ";
  43. height: 0;
  44. width: 0;
  45. position: absolute;
  46. pointer-events: none;
  47. }
  48. .card--stream:before {
  49. border-right-color: rgba(0, 0, 0, 0.12);
  50. border-width: 7px;
  51. top: 16px;
  52. }
  53. .card--stream:after {
  54. border-right-color: white;
  55. border-width: 6px;
  56. top: 17px;
  57. }
  58. .card--stream .mediawrapper {
  59. margin-top: 15px;
  60. }
  61. .card--stream .mediawrapper:first-child {
  62. margin-top: 0;
  63. }
  64. .card--stream .comment__reply-btn {
  65. display: none;
  66. }
  67. .card--stream .comment {
  68. font-size: 0.875rem;
  69. position: relative;
  70. display: flex;
  71. width: 100%;
  72. }
  73. .card--stream .comment__avatar {
  74. margin-right: 8px;
  75. width: 44px;
  76. flex-shrink: 0;
  77. }
  78. .teaser.teaser--stream {
  79. margin-top: 0.625rem;
  80. margin-right: -1.25rem;
  81. margin-bottom: 0.625rem;
  82. margin-left: -1.25rem;
  83. background: #e6e6e6;
  84. }
  85. .teaser.teaser--stream:last-child {
  86. margin-bottom: -1.25rem;
  87. }
  88. .post-unpublished img {
  89. opacity: 0.5;
  90. }
  91. .post-unpublished .badge-default {
  92. background-color: #777777;
  93. color: white;
  94. margin-left: 5px;
  95. font-size: 100%;
  96. }
  97. .post-unpublished * {
  98. color: #9b9b9b;
  99. }
  100. @media (min-width: 600px) {
  101. .stream {
  102. margin-left: 0;
  103. }
  104. .stream:before {
  105. top: 42px;
  106. }
  107. .stream-icon {
  108. left: 0;
  109. top: 36px;
  110. width: 16px;
  111. height: 16px;
  112. border-width: 2px;
  113. }
  114. .card--stream {
  115. margin-left: 30px;
  116. }
  117. .card--stream:before {
  118. border-width: 9px;
  119. top: 35px;
  120. }
  121. .card--stream:after {
  122. border-width: 8px;
  123. top: 36px;
  124. }
  125. .card--stream .comment__avatar {
  126. margin-right: 12px;
  127. }
  128. .teaser.teaser--stream {
  129. height: 200px;
  130. }
  131. .teaser.teaser--stream .teaser__image {
  132. height: 200px;
  133. flex: 0 0 200px;
  134. }
  135. }