Browse Source

Improved chat borders and contrast.

pull/114/head
Simon Eisenmann 11 years ago
parent
commit
2979f1af43
  1. 29
      src/styles/components/_chat.scss
  2. 6
      src/styles/global/_variables.scss
  3. 2
      static/css/main.min.css

29
src/styles/components/_chat.scss

@ -272,10 +272,11 @@
border-radius: 6px; border-radius: 6px;
clear: both; clear: both;
display: block; display: block;
margin: 0 4px 2px 20px; margin: 0 4px 2px 18px;
padding: 8px; padding: 8px;
position: relative; position: relative;
word-wrap: break-word; word-wrap: break-word;
box-shadow: 0px 0px 2px 0px $chat-msg-shadow;
ul { ul {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
@ -396,38 +397,38 @@
&.is_remote { &.is_remote {
background: $chat-msg-remote-background; background: $chat-msg-remote-background;
&:before { // arrow border &:before { // arrow border
border-width: 10px 17px 10px 0; border-width: 7px 11px 7px 0;
border-color: transparent $chat-msg-remote-background; border-color: transparent $chat-arrow-border;
bottom: auto; bottom: auto;
left: -16px; left: -12px;
top: 4px; top: 4px;
} }
&:after { // arrow background &:after { // arrow background
border-width: 9px 15px 9px 0; border-width: 6px 10px 6px 0;
border-color: transparent $chat-msg-remote-background; border-color: transparent $chat-msg-remote-background;
bottom:auto; bottom:auto;
left: -15px; left: -11px;
top: 5px; top: 5px;
} }
} }
&.is_self { &.is_self {
background: $chat-msg-self-background; background: $chat-msg-self-background;
margin-right:20px; margin-right:18px;
margin-left: 4px; margin-left: 4px;
padding-right: 0; padding-right: 0;
&:before { // arrow border &:before { // arrow border
border-width: 10px 0 10px 17px; border-width: 7px 0 7px 11px;
border-color: transparent $chat-msg-self-background; border-color: transparent $chat-arrow-border;
bottom: auto; bottom: auto;
right: -16px; right: -12px;
top: 4px; bottom: 4px;
} }
&:after { // arrow background &:after { // arrow background
border-width: 9px 0 9px 15px; border-width: 6px 0 6px 10px;
border-color: transparent $chat-msg-self-background; border-color: transparent $chat-msg-self-background;
bottom: auto; bottom: auto;
right: -15px; right: -11px;
top: 5px; bottom: 5px;
} }
} }
&.with_name { &.with_name {

6
src/styles/global/_variables.scss

@ -108,7 +108,7 @@ $buddylist-buddy2: $componentfg2 !default;
// chat // chat
$chat-width: $pane-width !default; $chat-width: $pane-width !default;
$chat-background: #e7e7e7 !default; $chat-background: $componentbg !default;
$chat-header: rgba(255,255,255,0.9) !default; $chat-header: rgba(255,255,255,0.9) !default;
$chat-disabled: #aaa !default; $chat-disabled: #aaa !default;
$chat-badge: #84b819 !default; $chat-badge: #84b819 !default;
@ -116,7 +116,9 @@ $chat-ctrl: rgba(0,0,0,.3) !default;
$chat-timestamp: #aaa !default; $chat-timestamp: #aaa !default;
$chat-meta: #aaa !default; $chat-meta: #aaa !default;
$chat-msg-background: white !default; $chat-msg-background: white !default;
$chat-msg-border: #e5e5ef !default; $chat-msg-border: transparent !default;
$chat-msg-shadow: rgba(0, 0, 0, 0.03) !default;
$chat-arrow-border: #eee;
$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;

2
static/css/main.min.css vendored

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