Fix messenger colors

This commit is contained in:
yflory 2021-01-26 15:26:46 +01:00
parent 89455eeb97
commit 44889a291d
7 changed files with 50 additions and 90 deletions

View File

@ -134,6 +134,7 @@
@cryptpad_color_dark_red: #9e0000;
@cryptpad_color_black: #000;
@cryptpad_color_white: #FFF;
@cryptpad_color_light_green: #c5ffa8;
@cryptpad_color_green: #5cb85c;
@cryptpad_color_link: #0275D8;
@ -148,6 +149,12 @@
@cp_loading-progress-bar-bg: @colortheme_logo-2;
@cp_loading-spinner: @cryptpad_color_dark_grey;
// Chat
@cp_messenger-bg: @cryptpad_color_neutral2_grey;
@cp_messenger-fg: @cryptpad_text_col;
@cp_messenger-notif: @cryptpad_color_black;
@cp_messenger-friend: @cryptpad_color_black;
@cp_messenger-online: @cryptpad_color_light_green;
// Alertify
@cp_alertify-bg: @cryptpad_color_white;

View File

@ -44,7 +44,7 @@
.checkmark_main(20px);
.password_main();
.messenger_main(
@bg-color: @colortheme_pad-chat-bg
@bg-color: @cp_messenger-bg
);
.cursor_main();
.usergrid_main();

View File

@ -2,17 +2,20 @@
@import (reference) "./colortheme-all.less";
.messenger_vars (
@bg-color: @colortheme_static_apps[contacts], // color of the toolbar background
@bg-color: @cp_messenger-bg,
) {
@msg-color: @cryptpad_text_col;
@msg-color-hover: contrast(@msg-color, lighten(@msg-color, 10%), darken(@msg-color, 10%));
@msg-bg-color: @bg-color;
@msg-bg-color-light: lighten(@bg-color, 15%);
@msg-bg-color-lighter: lighten(@bg-color, 20%);
@msg-bg-color-dark: darken(@bg-color, 10%);
@msg-bg-color-darker: darken(@bg-color, 20%);
@invert: #FFF-@bg-color;
// XXX Adjust chat colors
@msg-bg-color-light: contrast(@invert, lighten(@bg-color, 5%), darken(@bg-color, 5%));
@msg-bg-color-lighter: contrast(@invert, lighten(@bg-color, 10%), darken(@bg-color, 10%));
@msg-bg-color-dark: contrast(@bg-color, lighten(@bg-color, 5%), darken(@bg-color, 5%));
@msg-bg-color-darker: contrast(@bg-color, lighten(@bg-color, 10%), darken(@bg-color, 10%));
};
.messenger_main(
@bg-color: @colortheme_static_apps[contacts], // color of the toolbar background
@bg-color: @cp_messenger-bg,
) {
--LessLoader_require: LessLoader_currentFile();
.messenger_vars(@bg-color);
@ -26,13 +29,13 @@
& {
@keyframes notif {
0% {
background: rgba(0,0,0,0.1);
background: fade(@cp_messenger-notif, 10%);
}
50% {
background: rgba(0,0,0,0.3);
background: fade(@cp_messenger-notif, 30%);
}
100% {
background: rgba(0,0,0,0.1);
background: fade(@cp_messenger-notif, 10%);
}
}
@ -58,7 +61,7 @@
.cp-app-contacts-initializing {
.cp-app-contacts-spinner {
color: white;
color: @cp_messenger-fg;
display: block;
}
.cp-app-contacts-info {
@ -77,11 +80,14 @@
height: 100%;
background-color: @msg-bg-color;
background-color: var(--msg-bg-color);
color: @msg-color;
color: var(--msg-color);
overflow-y: auto;
display: flex;
flex-flow: column;
.cp-app-contacts-friend {
background: rgba(0,0,0,0.1);
background-color: @msg-bg-color-dark;
background-color: var(--msg-bg-color-dark);
padding: 5px;
margin: 10px;
margin-bottom: 0;
@ -94,16 +100,19 @@
flex-flow: column;
flex: 1;
min-width: 0;
color: @colortheme_base;
.cp-app-contacts-name {
white-space: nowrap;
}
.cp-app-contacts-icons {
text-align: right;
& > span:hover {
color: @msg-color-hover;
}
}
}
&:hover {
background-color: rgba(0,0,0,0.3);
background-color: @msg-bg-color-darker;
background-color: var(--msg-bg-color-darker);
}
&.cp-app-contacts-notify {
animation: notif 2s ease-in-out infinite;
@ -114,7 +123,7 @@
width: 20px;
text-align: center;
&:hover {
color: @cryptpad_text_col;
color: @msg-color-hover;
}
}
@ -128,7 +137,8 @@
font-size: 18px;
margin: 0px 5px;
text-align: center;
background: rgba(0,0,0,0.1);
background-color: @msg-bg-color-dark;
background-color: var(--msg-bg-color-dark);
font-weight: bold;
height: 22px;
line-height: 22px;
@ -172,28 +182,6 @@
#cp-app-contacts-container.cp-app-contacts-inapp {
#cp-app-contacts-friendlist {
display: none;
/*
transition: width 0.2s ease-in-out 0.2s;
width: 68px;
.cp-app-contacts-friend {
.cp-app-contacts-right-col {
overflow: hidden;
}
}
.cp-app-contacts-category-title {
transition: font-size 0.2s ease-in-out 0.2s;
margin: 0px 2px;
font-size: 16px;
}
&:hover {
transition-delay: 1.5s;
width: 200px !important;
.cp-app-contacts-category-title {
transition-delay: 1.5s;
font-size: 18px;
}
}
*/
}
}
@ -216,21 +204,8 @@
margin: 4px;
}
.cp-app-contacts-status {
//width: 5px;
display: inline-block;
position: absolute;
//right: 0;
//top: 0;
//bottom: 0;
//opacity: 0.7;
//background-color: #777;
/* width: (@room-height - 6px);
top: 3px;
bottom: 3px;
left: 3px;
border-radius: 100%;
*/
width: 10px;
height: 10px;
top: 0;
@ -238,42 +213,19 @@
border-bottom-left-radius: 100%;
&.cp-app-contacts-online {
//background-color: green;
//background-color: white;
background-color: #c5ffa8;
background-color: @cp_messenger-online;
}
&.cp-app-contacts-offline {
display: none;
//background-color: red;
}
}
}
.placeholder (@color: #bbb) {
&::-webkit-input-placeholder { /* WebKit, Blink, Edge */
color: @color;
}
&:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: @color;
opacity: 1;
}
&::-moz-placeholder { /* Mozilla Firefox 19+ */
color: @color;
opacity: 1;
}
&:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: @color;
}
&::-ms-input-placeholder { /* Microsoft Edge */
color: @color;
}
}
#cp-app-contacts-messaging {
flex: 1;
height: 100%;
background-color: @msg-bg-color-lighter;
background-color: var(--msg-bg-color-lighter);
background-color: @msg-bg-color-light;
background-color: var(--msg-bg-color-light);
min-width: 0;
.cp-app-contacts-info {
@ -409,23 +361,20 @@
border: none;
height: 54px; // 2 lines (22px height) + 2 margins (5px)
flex: 1;
background-color: white;
color: @cryptpad_text_col;
//background-color: @msg-bg-color-dark;
//background-color: var(--msg-bg-color-dark);
//color: @msg-color;
background-color: @cp_forms-bg;
color: @cp_forms-fg;
resize: none;
overflow-y: auto;
.placeholder(#999);
.tools_placeholder-color();
&[disabled="true"] {
.placeholder(#666);
.tools_placeholder-color();
}
}
button {
height: 54px !important;
border-radius: 0;
border: none;
color: #eee;
color: @cp_messenger-fg;
background-color: @msg-bg-color-darker;
background-color: var(--msg-bg-color-darker);
&:hover {

View File

@ -40,7 +40,7 @@
}
}
.cp-notification-dismiss {
color: black;
color: @cp_dropdown-fg;
width: 25px;
display: flex;
align-items: center;

View File

@ -762,7 +762,7 @@
}
}
.cp-notifications-empty {
color: black;
color: @cp_dropdown-fg;
padding: 5px;
}
button {
@ -1073,7 +1073,7 @@
display: flex;
flex-flow: column;
z-index: 10000; //Z cp-toolbar-drawer-content
color: black;
color: @cp_dropdown-fg;
.tools_unselectable();
.fa {
font-size: 17px;

View File

@ -27,6 +27,8 @@
}
}
.messenger_main();
.messenger_main(
@bg-color: @cp_messenger-bg;
);
}

View File

@ -13,7 +13,9 @@
);
.drive_main();
.messenger_main();
.messenger_main(
@bg-color: @colortheme_pad-chat-bg
);
.sidebar-layout_main();
@roster-bg-color: #efefef;