From aaa5c3e3d05ef4c1875f3cfc23a37d4735461397 Mon Sep 17 00:00:00 2001 From: Jeff Nusz Date: Fri, 17 Mar 2017 16:13:33 -0700 Subject: [PATCH] =?UTF-8?q?fix=20layout=20when=20=E2=80=98close=20on=20top?= =?UTF-8?q?=E2=80=99=20+=20GUI=20save=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dat/gui/_structure.scss | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/dat/gui/_structure.scss b/src/dat/gui/_structure.scss index a7d9d83..2a300ca 100644 --- a/src/dat/gui/_structure.scss +++ b/src/dat/gui/_structure.scss @@ -92,16 +92,30 @@ $button-height: 20px; overflow-x: hidden; &.has-save > ul { - margin-top: $row-height; + + &.close-top { + margin-top: 0; + } + &.close-bottom { + margin-top: $row-height; + } + &.closed { margin-top: 0; } } .save-row { - position: fixed; top: 0; z-index: 1002; + + &.close-top { + position: relative; + } + &.close-bottom { + position: fixed; + } + } }