Add 2px wide flap indicator

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/14/head
trivernis 3 years ago
parent 766cb94f64
commit 3674200c28
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -2,39 +2,44 @@
:host { :host {
position: absolute; position: absolute;
opacity: 0;
transition-duration: 0.5s; transition-duration: 0.5s;
&:hover { &: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; top: 0;
left: 0;
height: 100%; height: 100%;
width: 4em; width: 4em;
} }
&[attach='top'], &[attach='bottom'] {
left: 0;
width: 100%;
height: 4em;
}
&[attach='left'] {
left: 0;
}
&[attach='right'] { &[attach='right'] {
top: 0;
right: 0; right: 0;
height: 100%;
width: 4em;
} }
&[attach='top'] { &[attach='top'] {
left: 0;
top: 0; top: 0;
width: 100%;
height: 4em;
} }
&[attach='bottom'] { &[attach='bottom'] {
left: 0;
bottom: 0; bottom: 0;
width: 100%;
height: 4em;
} }
&[attach='left'], &[attach='top'][align='start'], &[attach='bottom'][align='start'] { &[attach='left'], &[attach='top'][align='start'], &[attach='bottom'][align='start'] {
@ -83,6 +88,7 @@
background: $accent-darker-10; background: $accent-darker-10;
text-align: center; text-align: center;
transition-duration: 0.1s; transition-duration: 0.1s;
overflow: hidden;
&:hover { &:hover {
background: $accent; background: $accent;
@ -98,21 +104,21 @@
.flap-top, .flap-bottom { .flap-top, .flap-bottom {
height: 1.5em;
width: 4em; width: 4em;
height: 2px;
} }
.flap-top:hover, .flap-bottom:hover { .flap-button.flap-top:hover, .flap-button.flap-bottom:hover {
width: 10em; width: 10em;
height: 2em; height: 2em;
} }
.flap-left, .flap-right { .flap-left, .flap-right {
width: 2px;
height: 4em; height: 4em;
width: 1.5em;
} }
.flap-left:hover, .flap-right:hover { .flap-button.flap-left:hover, .flap-button.flap-right:hover {
width: 2em; width: 2em;
height: 10em; height: 10em;
} }

Loading…
Cancel
Save