Browse Source

Improved chat color and increased panel size.

pull/162/head
Simon Eisenmann 11 years ago
parent
commit
00499fad15
  1. 20
      src/styles/components/_chat.scss
  2. 14
      src/styles/global/_variables.scss
  3. 4
      static/css/main.min.css

20
src/styles/components/_chat.scss

@ -205,7 +205,7 @@
.typinghint { .typinghint {
color: $chat-typing; color: $chat-typing;
font-size: .8em; font-size: .8em;
height: 14px; height: 16px;
overflow: hidden; overflow: hidden;
padding: 0 6px; padding: 0 6px;
white-space: nowrap; white-space: nowrap;
@ -229,10 +229,6 @@
right: 6px; right: 6px;
top: 1px; top: 1px;
} }
> div {
border-top: 1px solid $bordercolor;
}
} }
.input { .input {
@ -310,7 +306,6 @@
} }
.timestamp { .timestamp {
color: $chat-timestamp;
font-size: .8em; font-size: .8em;
position: absolute; position: absolute;
right: 8px; right: 8px;
@ -421,6 +416,7 @@
&.is_remote { &.is_remote {
float: left; float: left;
background: $chat-msg-remote-background; background: $chat-msg-remote-background;
color: $chat-msg-remote-color;
&:before { // arrow border &:before { // arrow border
border-color: transparent $chat-arrow-border; border-color: transparent $chat-arrow-border;
@ -442,9 +438,10 @@
&.is_self { &.is_self {
float: right; float: right;
background: $chat-msg-self-background; background: $chat-msg-self-background;
color: $chat-msg-self-color;
margin-left: 4px; margin-left: 4px;
margin-right: 18px; margin-right: 18px;
padding-right: 0; padding-right: 4px;
&:before { // arrow border &:before { // arrow border
border-color: transparent $chat-arrow-border; border-color: transparent $chat-arrow-border;
@ -523,7 +520,7 @@
.chatmenu { .chatmenu {
height: 36px; height: 36px;
left: 0; left: 0;
padding: 2px 4px; padding: 4px;
position: absolute; position: absolute;
right: 0; right: 0;
top: 36px; top: 36px;
@ -534,7 +531,6 @@
} }
.chatbody { .chatbody {
border-left: 1px solid $bordercolor;
bottom: -1px; bottom: -1px;
left: 0; left: 0;
position: absolute; position: absolute;
@ -605,7 +601,7 @@
} }
@keyframes newmessage { @keyframes newmessage {
0% {background-color: $actioncolor1;} 0% {background-color: $actioncolor1; border-color: $actioncolor1;}
50% {background-color: $componentbg;} 50% {background-color: $componentbg; border-color: $componentbg;}
100% {background-color: $actioncolor1;} 100% {background-color: $actioncolor1; border-color: $actioncolor1;}
} }

14
src/styles/global/_variables.scss

@ -32,6 +32,7 @@ $sidepanebg: #fff !default;
$bordercolor: #e7e7e7 !default; $bordercolor: #e7e7e7 !default;
$actioncolor1: rgb(132, 184, 25) !default; $actioncolor1: rgb(132, 184, 25) !default;
$actioncolor2: rgb(0, 149, 52) !default; $actioncolor2: rgb(0, 149, 52) !default;
$specialbg1: $background;
// branding // branding
$logo: url('../img/logo-small.png') !default; $logo: url('../img/logo-small.png') !default;
@ -54,7 +55,7 @@ $welcome: #aaa !default;
$loading: #ddd !default; $loading: #ddd !default;
// panes // panes
$pane-width: 260px !default; $pane-width: 320px !default;
// font // font
$font-sans-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif !default; $font-sans-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif !default;
@ -107,17 +108,16 @@ $buddylist-action-font-size: 1.6em;
// chat // chat
$chat-width: $pane-width !default; $chat-width: $pane-width !default;
$chat-background: $componentbg !default; $chat-background: $specialbg1 !default;
$chat-header: rgba(255, 255, 255, .9) !default; $chat-header: rgba(255, 255, 255, .9) !default;
$chat-disabled: #aaa !default; $chat-disabled: #aaa !default;
$chat-badge: #84b819 !default; $chat-badge: #84b819 !default;
$chat-ctrl: rgba(0, 0, 0, .3) !default; $chat-ctrl: rgba(0, 0, 0, .3) !default;
$chat-timestamp: #aaa !default; $chat-meta: #666 !default;
$chat-meta: #aaa !default;
$chat-msg-background: #fff !default; $chat-msg-background: #fff !default;
$chat-msg-border: transparent !default; $chat-msg-border: transparent !default;
$chat-msg-shadow: rgba(0, 0, 0, .03) !default; $chat-msg-shadow: rgba(0, 0, 0, .03) !default;
$chat-arrow-border: #eee; $chat-arrow-border: #fff;
$chat-msg-default-icon-color: #ccc !default; $chat-msg-default-icon-color: #ccc !default;
$chat-msg-unread-icon-color: #fe9a2e !default; $chat-msg-unread-icon-color: #fe9a2e !default;
@ -135,9 +135,11 @@ $chat-msg-received-icon: '\f06e' !default;
$chat-msg-read-icon: '\f00c' !default; $chat-msg-read-icon: '\f00c' !default;
$chat-msg-self-background: #fff !default; $chat-msg-self-background: #fff !default;
$chat-msg-self-color: $font-color !default;
$chat-msg-remote-background: #fff !default; $chat-msg-remote-background: #fff !default;
$chat-msg-remote-color: $font-color !default;
$chat-bottom-background: $chat-background !default; $chat-bottom-background: transparent !default;
$chat-typing: $chat-meta !default; $chat-typing: $chat-meta !default;
$chat-input-border-color: #66afe9 !default; $chat-input-border-color: #66afe9 !default;

4
static/css/main.min.css vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save