From 274ee0a824ee35d6ab63f29083b1f010624c8fa7 Mon Sep 17 00:00:00 2001 From: Anders Jensen-Urstad Date: Mon, 14 Jun 2021 10:50:23 +0200 Subject: [PATCH] Add more default styling --- README.md | 5 ++--- cookieNotice/css/cookieNotice.css | 7 +++++++ cookieNotice/version.xml | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2ac7102..2f7a9f3 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,8 @@ Installation Note that this is a site-wide plugin. It can only be activated/deactivated on site level. -It simply loads a tiny bit of JS that checks whether the cookie `cookieNotice` has been set. If not, -it injects some HTML with cookie information and a button. If the button is clicked, the cookie is set -and the cookie information disappears. +If the cookie `cookieNotice` is not set, it shows a cookie notice with a button. If the button +is clicked, the cookie is set and the cookie information disappears. If you find that the cookie notice is only shown on the main site and not on individual journals, `cd` to the OJS root directory and run: diff --git a/cookieNotice/css/cookieNotice.css b/cookieNotice/css/cookieNotice.css index 25b6ad9..f641dc8 100644 --- a/cookieNotice/css/cookieNotice.css +++ b/cookieNotice/css/cookieNotice.css @@ -4,8 +4,15 @@ z-index: 999; width: 100%; margin: 0; + padding: 2em 0; background-color: #000; color: #fff; + text-align: center; +} + +#cookie-notice a, +#cookie-notice p { + color: #fff; } #cookie-notice button { diff --git a/cookieNotice/version.xml b/cookieNotice/version.xml index 355aef7..549fc2a 100644 --- a/cookieNotice/version.xml +++ b/cookieNotice/version.xml @@ -3,9 +3,9 @@ cookieNotice plugins.generic - 1.0.2 - 2021-06-02 + 1.0.3 + 2021-06-14 1 1 CookieNoticePlugin - \ No newline at end of file +