From 7be35a90c1fa2866b58d360210356a90cf8f8610 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Thu, 19 Apr 2018 21:12:01 +0200 Subject: [PATCH] Small style changes --- public/css/grocy.css | 19 +++++++++++++++++++ public/js/grocy.js | 7 +++++++ 2 files changed, 26 insertions(+) diff --git a/public/css/grocy.css b/public/css/grocy.css index b2c2fc1a..a2b4a30d 100644 --- a/public/css/grocy.css +++ b/public/css/grocy.css @@ -169,3 +169,22 @@ a.discrete-link:focus { .well { background-color: #e5e5e5; } + +.nav > li.disabled > a, +.navbar-default .navbar-nav > .disabled > a +{ + color: #a7a7a7; +} + +#toast-container > div { + opacity: 1; + filter: alpha(opacity=100); +} + + .toast-success { + background-color: #4c994c; +} + +#toast-container > div { + box-shadow: none; +} diff --git a/public/js/grocy.js b/public/js/grocy.js index e7c14c1a..8070909f 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -28,6 +28,13 @@ if (!Grocy.ActiveNav.isEmpty()) $.timeago.settings.allowFuture = true; $('time.timeago').timeago(); +toastr.options = { + toastClass: 'alert', + closeButton: true, + timeOut: 20000, + extendedTimeOut: 5000 +}; + Grocy.Api = { }; Grocy.Api.Get = function(apiFunction, success, error) {