CSS "dark mode" improvements

This commit is contained in:
djmaze 2021-03-06 23:13:46 +01:00
parent e8deb4ff16
commit eb0d1ecccb
4 changed files with 473 additions and 510 deletions

View file

@ -28,33 +28,18 @@
.modal-body { .modal-body {
overflow: auto; overflow: auto;
height: 100%; height: calc(100% - 49px);
background-color: #f5f5f5;
padding: 0; padding: 0;
} }
.b-header-toolbar {
background-color: rgba(0,0,0,0.8);
color: #fff;
height: 40px;
.close {
color: #fff;
opacity: 1;
}
.btn {
margin-top: 4px;
}
} }
.b-list-toolbar { .b-list-toolbar {
padding: 0; padding: 0;
height: 45px; height: 44px;
text-align: right; text-align: center;
width: @contacts-popup-left-width; width: @contacts-popup-left-width;
box-shadow: inset 0 -1px 0 #ccc; border-bottom: 1px solid rgba(128,128,128,0.4);
.e-search { .e-search {
margin-top: 7px; margin-top: 7px;
@ -66,9 +51,9 @@
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 0; bottom: 0;
height: 105px; height: 46px;
width: @contacts-popup-left-width; width: @contacts-popup-left-width;
background-color: #eee; background-color: var(--message-list-toolbar-bg-color,#eee);
box-shadow: inset 0 1px 0 #ccc; box-shadow: inset 0 1px 0 #ccc;
.footer-pager { .footer-pager {
@ -80,7 +65,7 @@
.b-list-content { .b-list-content {
position: absolute; position: absolute;
top: 45px; top: 45px;
bottom: 105px; bottom: 46px;
left: 0; left: 0;
width: @contacts-popup-left-width; width: @contacts-popup-left-width;
overflow: hidden; overflow: hidden;
@ -92,12 +77,10 @@
} }
.listClear { .listClear {
color: #333;
text-align: center; text-align: center;
padding: 10px; padding: 10px;
font-size: 14px; font-size: 14px;
line-height: 13px; line-height: 13px;
background-color: #fff;
box-shadow: inset 0 -1px 0 #ccc; box-shadow: inset 0 -1px 0 #ccc;
} }
@ -114,22 +97,21 @@
visibility: hidden; visibility: hidden;
} }
} }
}
// .e-contact-foreach {
// border-bottom: 1px solid #ddd;
// }
.e-contact-item { .e-contact-item {
display: flex; display: flex;
height: 55px;
max-height: 45px; max-height: 45px;
line-height: 45px; line-height: 45px;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
position: relative;
margin: 0; margin: 0;
border: 0; border: 0;
border-left: 6px solid #eee; border-left: 6px solid #eee;
border-bottom: 1px solid #ddd; border-bottom: 1px solid rgba(128,128,128,0.25);
&.focused { &.focused {
border-left-color: #bbb; border-left-color: #bbb;
@ -146,7 +128,6 @@
} }
.nameParent { .nameParent {
color: #333;
font-size: 16px; font-size: 16px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -164,7 +145,7 @@
&.selected { &.selected {
background-color: #fff; background-color: rgba(140, 200, 255, 0.3);
border-left-color: #398CF2; border-left-color: #398CF2;
&.focused { &.focused {
@ -172,18 +153,16 @@
} }
} }
} }
}
.b-view-content-toolbar { .b-view-content-toolbar {
background-color: #f5f5f5;
padding: 7px; padding: 7px;
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
left: @contacts-popup-left-width; left: @contacts-popup-left-width;
height: 31px; height: 30px;
text-align: right; text-align: right;
box-shadow: inset 0 -1px 0 #ccc; border-bottom: 1px solid rgba(128,128,128,0.4);
.button-save-contact { .button-save-contact {
&.dirty:enabled { &.dirty:enabled {
@ -200,13 +179,11 @@
.b-view-content { .b-view-content {
position: absolute; position: absolute;
top: 45px; top: 45px;
bottom: 60px; bottom: 0;
left: @contacts-popup-left-width; left: @contacts-popup-left-width;
right: 0; right: 0;
overflow: auto; overflow: auto;
border-left: 1px solid rgba(128,128,128,0.25);
background-color: #fff;
border-left: 1px solid #ddd;
.content { .content {
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
@ -218,7 +195,6 @@
font-size: 18px; font-size: 18px;
display: inline-block; display: inline-block;
padding: 5px 7px; padding: 5px 7px;
color: #555;
display: none; display: none;
} }
@ -280,10 +256,6 @@
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
border-color: #999; border-color: #999;
} }
&::placeholder {
color: #ddd;
}
} }
.contactValueTextArea { .contactValueTextArea {
@ -331,21 +303,6 @@
} }
} }
} }
}
.e-contact-item {
position: relative;
height: 55px;
max-height: 60px;
line-height: 22px;
overflow: hidden;
cursor: pointer;
margin: 0;
border: 0;
border-bottom: 1px solid #ddd;
}
} }

View file

@ -134,7 +134,6 @@ html.rl-no-preview-pane {
} }
.listClear { .listClear {
color: #333;
text-align: center; text-align: center;
padding: 10px; padding: 10px;
font-size: 14px; font-size: 14px;
@ -201,6 +200,7 @@ html.rl-no-preview-pane {
background-color: #f4f4f4; background-color: #f4f4f4;
text-align: center; text-align: center;
} }
}
.messageListItem { .messageListItem {
@ -408,7 +408,7 @@ html.rl-no-preview-pane {
} }
&.selected { &.selected {
background-color: #DFEFFF; background-color: rgba(140, 200, 255, 0.3);
border-bottom-color: rgba(57, 140, 242, 0.2); border-bottom-color: rgba(57, 140, 242, 0.2);
border-left-color: #398CF2; border-left-color: #398CF2;
z-index: 101; z-index: 101;
@ -424,7 +424,6 @@ html.rl-no-preview-pane {
display: none; display: none;
} }
} }
}
&.message-focused { &.message-focused {
.b-message-list-wrapper { .b-message-list-wrapper {

View file

@ -82,7 +82,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="b-list-footer-toolbar"> <div class="b-list-footer-toolbar thm-message-list-bottom-toolbar">
<div class="footer-pager"> <div class="footer-pager">
<!-- ko template: { name: 'Paginator', data: contactsPaginator } --><!-- /ko --> <!-- ko template: { name: 'Paginator', data: contactsPaginator } --><!-- /ko -->
</div> </div>

View file

@ -60,7 +60,8 @@
text-shadow: 0 -1px 0 rgba(255,255,255,.25); text-shadow: 0 -1px 0 rgba(255,255,255,.25);
background-color: #000; background-color: #000;
} }
.btn:not(.btn-success):not(.btn-warning):not(.btn-danger).active, .btn:not(.btn-success):not(.btn-warning):not(.btn-danger):active { .btn:not(.btn-success):not(.btn-warning):not(.btn-danger).active,
.btn:not(.btn-success):not(.btn-warning):not(.btn-danger):active {
box-shadow: inset 0 2px 4px rgba(255,255,255,.5), 0 1px 2px rgba(255,255,255,.25); box-shadow: inset 0 2px 4px rgba(255,255,255,.5), 0 1px 2px rgba(255,255,255,.25);
} }
.btn .icon-spinner { .btn .icon-spinner {
@ -120,13 +121,13 @@
border-bottom-color: #444; border-bottom-color: #444;
} }
.messageList .b-content .messageListItem { .messageList .messageListItem {
background-color: #111; background-color: #111;
border-left-color: #111; border-left-color: #111;
color: #EEE; color: #EEE;
} }
.messageList .b-content .messageListItem.focused, .messageList .messageListItem.focused,
#rl-popups .b-languages-content .lang-item { #rl-popups .b-languages-content .lang-item {
background-color: #222; background-color: #222;
} }
@ -137,17 +138,23 @@
background-color: #333; background-color: #333;
} }
.messageList .b-content .messageListItem.hasUnseenSubMessage, .messageList .messageListItem.hasUnseenSubMessage,
.messageList .b-content .messageListItem.unseen, .messageList .messageListItem.unseen,
#rl-popups .b-languages-content .lang-item.user { #rl-popups .b-languages-content .lang-item.user {
background-color: #220; background-color: #220;
} }
.messageList .b-content .messageListItem.selected {
background-color: #345;
}
.b-themes-list .e-item.selected, .b-themes-list .e-item.selected,
#rl-popups .b-languages-content .lang-item.selected { #rl-popups .b-languages-content .lang-item.selected {
background-color: #020; background-color: #020;
} }
.table-striped tbody tr:nth-child(2n+1) td,
.table-striped tbody tr:nth-child(2n+1) th {
background-color: #111;
}
.nav-tabs > .active > a,
.nav-tabs > .active > a:hover {
color: #fff;
background-color: #000;
}