From 3674200c2802ec17217a91cb66f378a0186d7788 Mon Sep 17 00:00:00 2001 From: trivernis Date: Fri, 11 Feb 2022 19:46:44 +0100 Subject: [PATCH] Add 2px wide flap indicator Signed-off-by: trivernis --- .../flap-button/flap-button.component.scss | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/mediarepo-ui/src/app/components/shared/app-common/flap-button/flap-button.component.scss b/mediarepo-ui/src/app/components/shared/app-common/flap-button/flap-button.component.scss index 21080ace..bfe77679 100644 --- a/mediarepo-ui/src/app/components/shared/app-common/flap-button/flap-button.component.scss +++ b/mediarepo-ui/src/app/components/shared/app-common/flap-button/flap-button.component.scss @@ -2,39 +2,44 @@ :host { position: absolute; - opacity: 0; transition-duration: 0.5s; &:hover { - opacity: 1; + & > .flap-top, & > .flap-bottom { + height: 1.5em; + } + + & > .flap-left, & > .flap-right { + width: 1.5em; + } } - &[attach='left'] { + &[attach='left'], &[attach='right'] { top: 0; - left: 0; height: 100%; width: 4em; } + &[attach='top'], &[attach='bottom'] { + left: 0; + width: 100%; + height: 4em; + } + + &[attach='left'] { + left: 0; + } + &[attach='right'] { - top: 0; right: 0; - height: 100%; - width: 4em; } &[attach='top'] { - left: 0; top: 0; - width: 100%; - height: 4em; } &[attach='bottom'] { - left: 0; bottom: 0; - width: 100%; - height: 4em; } &[attach='left'], &[attach='top'][align='start'], &[attach='bottom'][align='start'] { @@ -83,6 +88,7 @@ background: $accent-darker-10; text-align: center; transition-duration: 0.1s; + overflow: hidden; &:hover { background: $accent; @@ -98,21 +104,21 @@ .flap-top, .flap-bottom { - height: 1.5em; width: 4em; + height: 2px; } -.flap-top:hover, .flap-bottom:hover { +.flap-button.flap-top:hover, .flap-button.flap-bottom:hover { width: 10em; height: 2em; } .flap-left, .flap-right { + width: 2px; height: 4em; - width: 1.5em; } -.flap-left:hover, .flap-right:hover { +.flap-button.flap-left:hover, .flap-button.flap-right:hover { width: 2em; height: 10em; }