From aa4de83de602784c06759108b1dd59454e94947d Mon Sep 17 00:00:00 2001 From: Max G Date: Mon, 30 Mar 2020 05:31:09 +0000 Subject: [PATCH] * More aggressive dark theme styles, changing default icon colors and notification colors * Better sortig of archived notes which clicking archived * Scroll to closed note and show animation on save * Better notification styles, more obvious --- client/src/assets/semantic-helper.css | 16 ++-- .../GlobalNotificationComponent.vue | 44 ++++++++-- client/src/components/NoteInputPanel.vue | 4 +- .../src/components/NoteTitleDisplayCard.vue | 82 ++++++++++++++++++- client/src/pages/NotesPage.vue | 17 +++- 5 files changed, 145 insertions(+), 18 deletions(-) diff --git a/client/src/assets/semantic-helper.css b/client/src/assets/semantic-helper.css index c127384..763b895 100644 --- a/client/src/assets/semantic-helper.css +++ b/client/src/assets/semantic-helper.css @@ -37,11 +37,17 @@ div.ui.basic.segment.no-fluf-segment { /* Night mode modifiers */ -/*Make images sepia in night mode */ -.night-mode img { - filter: grayscale(50%) brightness(80%) sepia(80%); - -} + /*Make images sepia in night mode */ + .night-mode img { + filter: grayscale(50%) brightness(80%) sepia(80%); + } + .night-mode i.green { + color: #877A61 !important; + } + .night-mode .green.label { + background-color: #877A61 !important; + border-color: #877A61 !important; + } /* OVERWRITE DEFAULT SEMANTIC STYLES FOR CUSTOM/NIGHT MODES*/ body { diff --git a/client/src/components/GlobalNotificationComponent.vue b/client/src/components/GlobalNotificationComponent.vue index b63d22e..53e9880 100644 --- a/client/src/components/GlobalNotificationComponent.vue +++ b/client/src/components/GlobalNotificationComponent.vue @@ -3,18 +3,16 @@ .popup-body { position: fixed; bottom: 15px; - right: 15px; + left: 15px; min-height: 50px; min-width: 200px; max-width: calc(100% - 20px); z-index: 1002; + border-top: 2px solid #21ba45; box-shadow: 0px 0px 5px 2px rgba(140,140,140,1); border-top-right-radius: 4px; border-top-left-radius: 4px; - - color: white; - background-color: #21ba45; } .popup-row { padding: 1em 5px; @@ -33,11 +31,45 @@ border-top: 1px solid #FFF; } + .slide-in-bottom { + animation: slide-in-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; + } + @keyframes slide-in-bottom { + 0% { + transform: translateY(1000px); + opacity: 0; + } + 100% { + transform: translateY(0); + opacity: 1; + } + } + + .color-fade { + animation: color-fade-animation 0.7s ease-out both; + } + @keyframes color-fade-animation { + 0% { + color: black; + background-color: black; + } + 50% { + color: black; + background-color: black; + } + 100% { + color: white; + background-color: #21ba45; + } + } + + +