Skip to content

Instantly share code, notes, and snippets.

@AnteaterKit
Last active January 23, 2021 05:13
Show Gist options
  • Save AnteaterKit/baf390e59b4de59281ed5e080dedb2e8 to your computer and use it in GitHub Desktop.
Save AnteaterKit/baf390e59b4de59281ed5e080dedb2e8 to your computer and use it in GitHub Desktop.
bar {
position: absolute;
background-clip: content-box;
cursor: ew-resize;
}
.resizable {
width: 100%;
height: 100%;
&__vertical {
display: flex;
flex-direction: column;
height: inherit;
&__barBotton{
bottom: 0px;
width: 100%;
height: 2px;
cursor: ns-resize;
}
&__horisontal {
display: flex;
height: inherit;
&__content {
height: inherit;
width: 100%;
}
&__barRight {
top: 0;
bottom: 0;
right: 0;
width: 2px;
height: 100%;
justify-self: flex-end;
}
}
}
}
@mixin theme-resizable($theme) {
$color: map-get($theme, color);
$primary: map-get($color, primary);
$background: map-get($primary, 100);
.bar {
background-color: $background;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment