From 044a2130750065789dc88986bc8560c95af4b565 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Sun, 2 Aug 2015 16:16:42 +0200 Subject: [PATCH] Rebalance titles in overlays. --- src/yuu/data/yuu.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/yuu/data/yuu.css b/src/yuu/data/yuu.css index 6c31d12..4765449 100644 --- a/src/yuu/data/yuu.css +++ b/src/yuu/data/yuu.css @@ -234,8 +234,14 @@ div[data-yuu-command=dismiss] { height: 1.25em; text-align: center; margin-left: -1.3333em; - position: sticky; top: 0; + position: sticky; + /* What's really wanted here is 'position: fixed within within the + parent' but that's not a thing. position: sticky is close + except it leaves it in normal layout flow, which requires + another hack... */ + margin-bottom: -1em; + /* Don't take up so much vertical space during layout */ } div[data-yuu-command=dismiss]:after { -- 2.30.2