diaspora/app/assets/stylesheets/stream_element.css.scss
2014-08-28 18:02:02 +02:00

138 lines
2.8 KiB
SCSS

#main_stream .stream_element {
padding: 10px;
border-bottom: 1px solid $border-grey;
& > .media {
margin: 0;
& > .img > .avatar.small {
height: 50px;
width: 50px;
}
.author {
font-weight: bold;
margin-bottom: 4px;
unicode-bidi: bidi-override;
}
.feedback {
margin-top: 5px;
font-size: 11px;
line-height: 11px;
}
.likes {
margin-top: 10px;
font-size: 12px;
line-height: 16px;
.bd { display: inline-block; }
.entypo.heart {
display: inline-block;
font-size: 16px;
vertical-align: top;
margin-top: -2px;
margin-right: 5px;
}
}
.youtube-player, .vimeo-player {
border: none;
height: 304px;
width: 410px;
}
.photo_attachments {
margin-top: 7px;
padding-bottom: 10px;
text-align: center;
img {
&.big_stream_photo {
display: block;
max-width: 90%;
}
&.thumb_small {
display: inline;
max-width: 50px;
max-height: 50px;
}
margin-left: auto;
margin-right: auto;
padding-bottom: 5px;
}
}
.stream_photo {
float: left;
margin-top: 6px;
}
.status-message-location .near-from {
font-size: 11px;
color: $text-grey;
}
.grey { color: $text-grey; }
.post-content p:last-of-type { margin-bottom: 0; }
.nsfw-shield {
color: $text-grey;
padding: 5px 10px;
background-color: $background-grey;
border: 1px solid $border-grey;
border-radius: 3px;
}
}
.reshare > .media {
border-left: 2px solid $border-grey;
.avatar {
height: 30px;
width: 30px;
}
}
.collapsible {
overflow: hidden;
position: relative;
p {
margin: 0 0 0.8em;
}
p:last-of-type {
margin: 0;
}
.expander {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 30px;
text-align: center;
line-height: 48px;
font-size: .8em;
color: $grey;
text-shadow: 0 0 7px #FFF;
cursor: pointer;
border-bottom: 2px solid $border-grey;
@include border-radius(0, 0, 3px, 3px);
@include linear-gradient(rgba(255,255,255,0) , #EEE, 0%, 95%);
background-color: transparent;
}
.oembed {
background: image-url('ajax-loader2.gif') no-repeat center center;
float: left;
width: 100%;
.thumb {
@include video-overlay();
}
iframe, .thumb img {
width: 100%;
}
}
}
&.highlighted {
padding-left: 8px;
border-left: 3px solid $creation-blue;
}
&.post_preview {
background-color: lighten($creation-blue,45%);
border: 1px solid $creation-blue;
}
}