diaspora/app/assets/stylesheets/conversations.css.scss
2014-08-31 18:02:37 +02:00

241 lines
4.5 KiB
SCSS

#conversations_container {
.stream_element {
border-bottom: 1px solid $border-grey;
&:first-child { border-top: none; }
a.author{
font-weight: bold;
unicode-bidi: bidi-override;
}
.avatar{
width: 50px;
height: 50px;
}
p {
margin: 0 0 1em 0;
word-wrap: break-word;
&:last-child { margin-bottom: 0; }
}
.new_message { border-bottom: none; }
.timestamp { font-size: 11px; }
}
.stream_element.conversation {
padding: 8px;
.media {
margin-bottom: 0px;
margin-left: 0px;
}
&:hover:not(.selected), &.selected {
.subject,
.last_author,
.last_message {
color: $white;
}
.timeago { color: $background-grey; }
}
&:hover, &.unread:hover, &.selected:hover {
background-color: lighten($blue,5%);
cursor: pointer;
}
&.unread { background-color: darken($background-white, 5%); }
&.selected { background-color: $blue; }
.avatar {
width: 50px;
height: 50px;
float: left;
}
.last_author, .last_message {
font-size: 12px;
line-height: 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.last_author { color: $text-dark-grey; }
.message_count, .unread_message_count {
margin-left: 3px;
float: right;
font-size: 12px;
font-weight: normal;
}
.participants_count {
@include opacity(0.5);
&:before { content: '+'; }
float: left;
background-color: #fff;
margin-top: 35px;
margin-left: -50px;
text-align: center;
width: 50px;
height: 15px;
line-height: 15px;
font-size: 13px;
font-weight: bold;
}
.participants {
display: none;
float: left;
clear: both;
margin-top: 5px;
padding-top: 5px;
height: 25px;
width: 100%;
overflow: hidden;
border-top: 1px dotted $border-grey;
.avatar {
margin: 0 5px 0 0;
height: 25px;
width: 25px;
}
}
.img { line-height: 15px; }
.subject {
font-size: 14px;
> * {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.timeago {
float: right;
line-height: normal;
font-weight: normal;
color: $blue;
}
}
}
#conversation_show {
.conversation_participants {
box-shadow: 0 2px 3px -3px #666;
-webkit-box-shadow: 0 2px 3px -3px #666;
-moz-box-shadow: 0 2px 3px -3px #666;
background-color: $background-white;
margin-bottom: 5px;
border-bottom: 1px solid $border-grey;
padding: 5px;
line-height: 0px;
a.close_conversation {
display: block;
margin-top: 10px;
float: right;
.icons-deletelabel {
height: 14px;
width: 14px;
}
}
.avatar {
height: 30px;
width: 30px;
}
.avatars {
text-align: right;
margin-top: 9px;
}
a img { margin-bottom: 4px; }
.conversation_controls {
margin-bottom: 10px;
a { margin-right: 10px; }
}
}
.conversation_participants a:hover { text-decoration: none; }
.stream .stream_element {
padding: 10px;
}
}
#left_pane {
border-right: solid 1px $border-grey;
h3 {
padding-bottom: 0;
}
#left_pane_header {
padding: 10px;
padding-right: 20px;
border-bottom: 1px solid $border-grey;
}
#conversation_inbox {
a:hover {
text-decoration: none;
}
}
}
#conversation_new {
label { font-weight: bold; }
}
#no_conversations,
#no_conversation_text {
font-weight: bold;
color: #ccc;
text-align: center;
margin-top: 100px;
}
#no_conversation_text {
font-size: 20px;
}
#no_conversation_controls {
text-align: center;
font-size: 12px;
}
#new_conversation_pane {
ul.as-selections { width: 100% !important; }
input#contact_ids { box-shadow: none; }
textarea { width: 98%; }
.bottom_submit_section {
text-align: right;
}
.button.creation {
$button-border-color: #aaa;
@include border-radius(3px);
@include box-shadow(0,1px,1px,#cfcfcf);
@include transition(border);
@include button-gradient($creation-blue);
font-size: 12px;
color: #fff;
padding: 4px 9px;
min-width: 90px;
min-height: 10px;
border: 1px solid darken($button-border-color,20%);
cursor: pointer;
white-space: nowrap;
&:hover {
@include button-gradient-hover($creation-blue);
border: 1px solid darken($button-border-color,35%);
text-decoration: none;
}
}
}