-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Massive work on Splittable / Panel resizing!
Co-authored-by: JackDotJS <jackdotbusiness@proton.me>
- Loading branch information
Showing
11 changed files
with
206 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,5 +64,5 @@ export default function SpectrumGraph() { | |
ref={spectrumRef} | ||
class={styles.waveform} | ||
/> | ||
) | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.splitLine { | ||
--gap: 0.25rem; | ||
--lowerWidth: 45%; | ||
--upperWidth: 55%; | ||
position: relative; | ||
} | ||
|
||
.vertical { | ||
height: 1rem; | ||
cursor: ns-resize; | ||
} | ||
|
||
.horizontal { | ||
width: 1rem; | ||
cursor: ew-resize; | ||
} | ||
|
||
.vertical:after, .vertical:before { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
box-sizing: border-box; | ||
} | ||
|
||
.vertical:before { | ||
height: 6px; | ||
width: 100%; | ||
border: 2px dotted currentColor; | ||
mask-image: linear-gradient(to right, transparent calc(var(--lowerWidth) + var(--gap)), #FFF calc(var(--lowerWidth) + var(--gap)), #FFF calc(var(--upperWidth) - var(--gap)), transparent calc(var(--upperWidth) - var(--gap))); | ||
} | ||
|
||
.vertical:after { | ||
height: 2px; | ||
width: calc(100% - 2rem); | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
background-color: currentColor; | ||
mask-image: linear-gradient(to right, #FFF calc(var(--lowerWidth) - var(--gap)), transparent calc(var(--lowerWidth) - var(--gap)), transparent calc(var(--upperWidth) + var(--gap)), #FFF calc(var(--upperWidth) + var(--gap))); | ||
} | ||
|
||
.horizontal:after, .horizontal:before { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
box-sizing: border-box; | ||
} | ||
|
||
.horizontal:before { | ||
width: 6px; | ||
height: 100%; | ||
border: 2px dotted currentColor; | ||
mask-image: linear-gradient(to bottom, transparent calc(var(--lowerWidth) + var(--gap)), #FFF calc(var(--lowerWidth) + var(--gap)), #FFF calc(var(--upperWidth) - var(--gap)), transparent calc(var(--upperWidth) - var(--gap))); | ||
} | ||
|
||
.horizontal:after { | ||
width: 2px; | ||
height: calc(100% - 2rem); | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
background-color: currentColor; | ||
mask-image: linear-gradient(to bottom, #FFF calc(var(--lowerWidth) - var(--gap)), transparent calc(var(--lowerWidth) - var(--gap)), transparent calc(var(--upperWidth) + var(--gap)), #FFF calc(var(--upperWidth) + var(--gap))); | ||
} |
Oops, something went wrong.