From 1e0b7070185b748e27a301acfc325bfb38be7b31 Mon Sep 17 00:00:00 2001 From: David Yip Date: Sat, 13 Jan 2018 11:41:06 -0600 Subject: Add the shrinking glitchy elefriend. #294. --- .../flavours/glitch/styles/components/drawer.scss | 24 +++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'app/javascript/flavours/glitch/styles/components/drawer.scss') diff --git a/app/javascript/flavours/glitch/styles/components/drawer.scss b/app/javascript/flavours/glitch/styles/components/drawer.scss index 423141aec..75b5d6b04 100644 --- a/app/javascript/flavours/glitch/styles/components/drawer.scss +++ b/app/javascript/flavours/glitch/styles/components/drawer.scss @@ -50,9 +50,27 @@ contain: strict; } - @for $i from 1 through 3 { - .mbstobon-bg-#{$i} { - background: url("~flavours/glitch/images/mbstobon-ui-#{$i}.png") no-repeat left bottom / contain; + .drawer__inner { + position: absolute; + top: 0; + left: 0; + box-sizing: border-box; + padding: 0; + display: flex; + flex-direction: column; + overflow: hidden; + overflow-y: auto; + width: 100%; + height: 100%; + + .mastodon { + flex: 1; + + @for $i from 1 through 3 { + &.mbstobon-bg-#{$i} { + background: url("~flavours/glitch/images/mbstobon-ui-#{$i}.png") no-repeat left bottom / contain; + } + } } } } -- cgit