Skip to content

Commit

Permalink
adding resize label style also for vertical bars
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosammito committed Aug 9, 2024
1 parent 716b282 commit 243ea38
Showing 1 changed file with 40 additions and 21 deletions.
61 changes: 40 additions & 21 deletions src/components/d-screen/DScreen.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,46 @@
position: relative;
background: $primary;

&--top {
border-bottom: 1px solid borderColor();

.d-screen__v-bar__resizable-label {
&--top {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
transform: translateX(-50%);
bottom: 0;
}

&--bottom {
border-top-right-radius: 0;
border-top-left-radius: 0;
transform: translateX(-50%) translateY(100%);
bottom: 0;
}
}
}

&--bottom {
border-top: 1px solid borderColor();

.d-screen__v-bar__resizable-label {
&--top {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
transform: translateX(-50%) translateY(-100%);
top: 0;
}

&--bottom {
border-top-right-radius: 0;
border-top-left-radius: 0;
transform: translateX(-50%);
top: 0;
}
}
}

&__resizable-label {
@include box(false);
position: absolute;
Expand All @@ -31,20 +71,6 @@
display: flex;
transform: translateX(-50%);
padding: .25rem;

&--top {
border-top-right-radius: 0;
border-top-left-radius: 0;
transform: translateX(-50%) translateY(100%);
bottom: 0;
}

&--bottom {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
transform: translateX(-50%) translateY(-100%);
top: 0;
}
}

.d-screen__item {
Expand All @@ -63,13 +89,6 @@

}

&--top {
border-bottom: 1px solid borderColor();
}

&--bottom {
border-top: 1px solid borderColor();
}
}


Expand Down

0 comments on commit 243ea38

Please sign in to comment.