From c93be3cfff58e6ba394546b9335260df8f74eb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Barbier?= Date: Fri, 10 Jul 2020 15:04:46 +0200 Subject: [PATCH 1/3] Add cookie notif, with link to privacy and legals --- docs/_sidebar.md | 2 ++ docs/index.html | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 3008fa3..40fb694 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -25,3 +25,5 @@ - [Changelog](changelog) - [License](license.md) + + - [Privacy](https://www.sap.com/corporate/en/legal/privacy.html) [Legal](https://www.sap.com/about/legal/impressum.html) diff --git a/docs/index.html b/docs/index.html index 62c0c9f..e2deea1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -93,11 +93,80 @@ transition: all 0.3s; transform: scale(1.05); } + .sidebarFooter { + display: flex; + margin-top: 10px; + } + .sidebarFooter a { + font-size: 0.8em !important; + } + .sidebarFooter a:not(:first-child) { + margin-left: 14px; + } + #privacy { + position: fixed; + bottom: 0; + left: 0; + right: 0; + text-align: center; + + visibility: hidden; + transform: translateY(200px); + transition: visibility 0s 400ms, transform 400ms; + } + #privacy:after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + right: 0; + pointer-events: none; + padding-top: 100px; + z-index: -1; + background-image: linear-gradient( + rgba(255, 255, 255, 0), + rgba(255, 255, 255, 0.8), + rgba(255, 255, 255, 1) + ); + } + #privacy. p { + z-index: 999; + color: #34495e; + font-family: Source Sans Pro, Helvetica Neue, Arial, sans-serif; + } + #privacy button { + border: none; + border-radius: 8px; + padding: 4px 8px; + } + #privacy.show { + visibility: visible; + transform: translateY(0px); + transition: visibility 0s, transform 400ms; + }
+
+

+ We use cookies 🍪 for the best online experience. Read our + Privacy Statement. + +

+