You are here

stream.css in Open Social 8.2

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

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