Notifications app dark

pull/1/head
yflory 4 years ago
parent b7681ffbf2
commit 59ca7ac4d2

@ -394,5 +394,12 @@
@cp_kanban-color0: @cryptpad_color_neutral2_grey; @cp_kanban-color0: @cryptpad_color_neutral2_grey;
@cp_kanban-colors: darken(#FFD4D4,75%), darken(#FFDECA, 75%), darken(#FFE69C,75%), darken(#DBFFB7,75%), darken(#AFFDC2,75%), darken(#C9FFFE,75%), darken(#C8D6FF,75%), darken(#E4CAFF,75%); @cp_kanban-colors: darken(#FFD4D4,75%), darken(#FFDECA, 75%), darken(#FFE69C,75%), darken(#DBFFB7,75%), darken(#AFFDC2,75%), darken(#C9FFFE,75%), darken(#C8D6FF,75%), darken(#E4CAFF,75%);
// Notifications
@cp_notif-hover: fade(@cryptpad_color_black, 10%);
@cp_notif-header-bg: @cryptpad_color_hint_grey;
@cp_notif-header-fg: @cryptpad_color_white;
@cp_notif-table-border: @cryptpad_color_neutral_grey;
@cp_notif-bg: @cryptpad_color_lighter_grey;
@cp_notif-fg: @cryptpad_text_col;

@ -397,6 +397,12 @@
@cp_kanban-color0: @cryptpad_color_neutral2_grey; @cp_kanban-color0: @cryptpad_color_neutral2_grey;
@cp_kanban-colors: #FFD4D4, #FFDECA, #FFE69C, #DBFFB7, #AFFDC2, #C9FFFE, #C8D6FF, #E4CAFF; @cp_kanban-colors: #FFD4D4, #FFDECA, #FFE69C, #DBFFB7, #AFFDC2, #C9FFFE, #C8D6FF, #E4CAFF;
// Notifications
@cp_notif-hover: fade(@cryptpad_color_black, 10%);
@cp_notif-header-bg: @cryptpad_color_hint_grey;
@cp_notif-header-fg: @cryptpad_color_white;
@cp_notif-table-border: @cryptpad_color_neutral_grey;
@cp_notif-bg: @cryptpad_color_lighter_grey;
@cp_notif-fg: @cryptpad_text_col;
// XXX OO OO OO OO OO

@ -13,7 +13,7 @@
.cp-clickable { .cp-clickable {
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: rgba(0,0,0,0.1); background-color: @cp_notif-hover;
} }
} }
@ -29,9 +29,8 @@
flex-direction: row; flex-direction: row;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
// border-radius: 5px 5px 0 0; background-color: @cp_notif-header-bg;
background-color: #888; color: @cp_notif-header-fg;
color: #fff;
.cp-app-notifications-panel-title { .cp-app-notifications-panel-title {
flex-grow: 1; flex-grow: 1;
@ -63,9 +62,8 @@
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
align-items: stretch; align-items: stretch;
border: 1px solid #ccc; border: 1px solid @cp_notif-table-border;
border-top: none; border-top: none;
// border-radius: 0 0 5px 5px;
overflow: hidden; overflow: hidden;
.cp-notification { .cp-notification {
@ -73,12 +71,12 @@
flex-direction: row; flex-direction: row;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
background-color: #ffffff; background-color: @cp_notif-bg;
&.no-notifications { &.no-notifications {
display: none; display: none;
padding: 1rem 1rem; padding: 1rem 1rem;
font-style: italic; font-style: italic;
color: #777; color: @cp_notif-fg;
&:only-child { &:only-child {
display: block; display: block;
} }
@ -88,14 +86,14 @@
padding: 0 10px; padding: 0 10px;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: rgba(0,0,0,0.1); background-color: @cp_notif-hover;
} }
} }
&.cp-app-notification-archived { &.cp-app-notification-archived {
background-color: #f1f1f1; background-color: @cp_notif-bg;
} }
&:not(:first-child) { &:not(:first-child) {
border-top: 1px solid #ccc; border-top: 1px solid @cp_notif-table-border;
} }
&.dismissed { &.dismissed {
display: none; display: none;
@ -127,7 +125,7 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-left: 1px solid #ccc; border-left: 1px solid @cp_notif-table-border;
width: 3rem; width: 3rem;
} }
} }
@ -141,8 +139,9 @@
align-items: center; align-items: center;
width: 100%; width: 100%;
padding: 0.5rem; padding: 0.5rem;
border: 1px solid #ccc; background-color: @cp_notif-bg;
color: #333; border: 1px solid @cp_notif-table-border;
color: @cp_notif-fg;
} }
} }

@ -202,7 +202,7 @@ define([
var $category = $('<div>', {'class': 'cp-sidebarlayout-category'}).appendTo($categories); var $category = $('<div>', {'class': 'cp-sidebarlayout-category'}).appendTo($categories);
if (key === 'all') { $category.append($('<span>', {'class': 'fa fa-bars'})); } if (key === 'all') { $category.append($('<span>', {'class': 'fa fa-bars'})); }
if (key === 'friends') { $category.append($('<span>', {'class': 'fa fa-user'})); } if (key === 'friends') { $category.append($('<span>', {'class': 'fa fa-user'})); }
if (key === 'pads') { $category.append($('<span>', {'class': 'cptools cptools-pad'})); } if (key === 'pads') { $category.append($('<span>', {'class': 'cptools cptools-richtext'})); }
if (key === 'archived') { $category.append($('<span>', {'class': 'fa fa-archive'})); } if (key === 'archived') { $category.append($('<span>', {'class': 'fa fa-archive'})); }
if (key === active) { if (key === active) {

Loading…
Cancel
Save