From a676a88c7dc486789ff1b56505941f0319175971 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Tue, 15 Feb 2022 22:46:10 -0500 Subject: [PATCH] Center the damn GDPR banner --- public/willpower.css | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/public/willpower.css b/public/willpower.css index c2dc184..eec6417 100644 --- a/public/willpower.css +++ b/public/willpower.css @@ -34,7 +34,7 @@ html, body { border-style: solid; border-color: #FFFFFF; text-align: center; - width: 70%; + width: 100%; padding: 1em; -webkit-animation-name: fade_in; -webkit-animation-duration: 1.5s; @@ -42,9 +42,7 @@ html, body { animation-duration: 1.5s; position: absolute; z-index: 10; - top: 50%; - left: 50%; - margin: -10em auto auto -29em; + top: 0%; } .modal.buttons { @@ -106,13 +104,27 @@ html, body { } @-webkit-keyframes fade_in { - from { opacity: 0; } - to { opacity: 1; } + from { + opacity: 0; + top: -100%; + } + + to { + opacity: 1; + top: 0%; + } } @keyframes fade_in { - from { opacity: 0; } - to { opacity: 1; } + from { + opacity: 0; + top: -100%; + } + + to { + opacity: 1; + top: 0%; + } } @-webkit-keyframes fade_out {