123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- .activity-stream {
- clear: both;
- box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
- .entry {
- background: lighten(#d9e1e8, 8%);
- &, .detailed-status.light {
- border-bottom: 1px solid #d9e1e8;
- }
- &:last-child {
- &, .detailed-status.light {
- border-bottom: 0;
- border-radius: 0 0 4px 4px;
- }
- }
- &:first-child {
- &, .detailed-status.light {
- border-radius: 4px 4px 0 0;
- }
- &:last-child {
- &, .detailed-status.light {
- border-radius: 4px;
- }
- }
- }
- }
- .status.light {
- padding: 14px 14px 14px (48px + 14px*2);
- position: relative;
- min-height: 48px;
- cursor: default;
- .status__header {
- font-size: 15px;
- .status__meta {
- float: right;
- font-size: 14px;
- .status__relative-time {
- color: #9baec8;
- }
- }
- }
- .status__display-name {
- display: block;
- max-width: 100%;
- padding-right: 25px;
- color: #282c37;
- }
- .status__avatar {
- position: absolute;
- left: 14px;
- top: 14px;
- width: 48px;
- height: 48px;
- & > div {
- width: 48px;
- height: 48px;
- }
- img {
- display: block;
- border-radius: 4px;
- }
- }
- .display-name {
- display: block;
- max-width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- strong {
- font-weight: 500;
- color: #282c37;
- }
- span {
- font-size: 14px;
- color: #9baec8;
- }
- }
- .status__content {
- color: #282c37;
- a {
- color: #2b90d9;
- }
- }
- .status__attachments {
- margin-top: 8px;
- overflow: hidden;
- width: 100%;
- box-sizing: border-box;
- height: 110px;
- display: flex;
- }
- }
- .detailed-status.light {
- padding: 14px;
- background: #fff;
- cursor: default;
- .detailed-status__display-name {
- display: block;
- overflow: hidden;
- margin-bottom: 15px;
- & > div {
- float: left;
- margin-right: 10px;
- }
- .display-name {
- display: block;
- max-width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- strong {
- font-weight: 500;
- color: #282c37;
- }
- span {
- font-size: 14px;
- color: #9baec8;
- }
- }
- }
- .avatar {
- width: 48px;
- height: 48px;
- img {
- display: block;
- border-radius: 4px;
- }
- }
- .status__content {
- color: #282c37;
- a {
- color: #2b90d9;
- }
- }
- .detailed-status__meta {
- margin-top: 15px;
- color: #9baec8;
- font-size: 14px;
- line-height: 18px;
- a {
- color: inherit;
- }
- span > span {
- font-weight: 500;
- font-size: 12px;
- margin-left: 6px;
- display: inline-block;
- }
- }
- .detailed-status__attachments {
- margin-top: 8px;
- overflow: hidden;
- width: 100%;
- box-sizing: border-box;
- height: 300px;
- display: flex;
- }
- .video-player {
- margin-top: 8px;
- height: 300px;
- overflow: hidden;
- video {
- position: relative;
- z-index: 1;
- width: 100%;
- height: 100%;
- object-fit: cover;
- top: 50%;
- transform: translateY(-50%);
- }
- }
- }
- .media-item, .video-item {
- box-sizing: border-box;
- position: relative;
- left: auto;
- top: auto;
- right: auto;
- bottom: auto;
- float: left;
- border: medium none;
- display: block;
- flex: 1 1 auto;
- height: 100%;
- margin-right: 2px;
- &:last-child {
- margin-right: 0;
- }
- a {
- display: block;
- width: 100%;
- height: 100%;
- background: no-repeat scroll center center / cover;
- text-decoration: none;
- cursor: zoom-in;
- }
- }
- .video-item {
- max-width: 196px;
- a {
- cursor: pointer;
- }
- .video-item__play {
- position: absolute;
- top: 50%;
- left: 50%;
- font-size: 36px;
- transform: translate(-50%, -50%);
- padding: 5px;
- border-radius: 100px;
- color: rgba(255, 255, 255, 0.8);
- }
- }
- .media-spoiler {
- background: #9baec8;
- width: 100%;
- height: 100%;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- text-align: center;
- transition: all 100ms linear;
- &:hover {
- background: darken(#9baec8, 5%);
- }
- span {
- display: block;
- &:first-child {
- font-size: 14px;
- }
- &:last-child {
- font-size: 11px;
- font-weight: 500;
- }
- }
- }
- .pre-header {
- padding: 14px 0px;
- padding-left: (48px + 14px*2);
- padding-bottom: 0;
- margin-bottom: -4px;
- color: #9baec8;
- font-size: 14px;
- position: relative;
- .pre-header__icon {
- position: absolute;
- left: (48px + 14px*2 - 30px);
- }
- .status__display-name.muted strong {
- color: #9baec8;
- }
- }
- }
- .embed {
- .activity-stream {
- border-radius: 4px;
- box-shadow: none;
- .entry {
- &:last-child {
- border-radius: 0 0 4px 4px;
- }
- &:first-child {
- border-radius: 4px 4px 0 0;
- &:last-child {
- border-radius: 4px;
- }
- }
- }
- }
- }
|