diff --git a/rootfs/usr/share/httpd/default/css/cookieconsent.css b/rootfs/usr/share/httpd/default/css/cookieconsent.css index 51666cf..60ecdfc 100644 --- a/rootfs/usr/share/httpd/default/css/cookieconsent.css +++ b/rootfs/usr/share/httpd/default/css/cookieconsent.css @@ -273,3 +273,30 @@ .cc-floating.cc-theme-edgeless .cc-btn + .cc-btn { margin-left: 0; } + +/* Keep the consent banner full width on mobile user agents, where the library forces the floating layout */ +.cc-window.cc-banner, +.cc-window.cc-floating { + width: 100%; + max-width: 100%; + left: 0; + right: 0; + box-sizing: border-box; +} +@media screen and (min-width: 415px) { + .cc-window.cc-floating { + bottom: 0; + flex-direction: row; + align-items: center; + } + .cc-window.cc-floating:not(.cc-theme-edgeless) { + padding: 1em 1.8em; + } + .cc-window.cc-floating .cc-message { + flex: 1; + margin-bottom: 0; + } + .cc-window.cc-floating .cc-compliance { + flex: 0 0 auto; + } +} diff --git a/rootfs/usr/share/httpd/default/index.php b/rootfs/usr/share/httpd/default/index.php index 7f5aafb..ac1e385 100644 --- a/rootfs/usr/share/httpd/default/index.php +++ b/rootfs/usr/share/httpd/default/index.php @@ -76,6 +76,33 @@