mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
add ui
This commit is contained in:
1 parent
777a4bc927
commit
9c45527522
396 files changed
+13772
No files matched your search
@@ -0,0 +1,9 @@
|
||||
.splitpane-fill
|
||||
display: flex
|
||||
position: absolute
|
||||
overflow: hidden
|
||||
left: 0
|
||||
width: 100%
|
||||
top: 0
|
||||
height: 100%
|
||||
user-select: none
|
||||
@@ -0,0 +1,19 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export default function SplitPaneFillOverlayComponent(props) {
|
||||
const {
|
||||
className,
|
||||
children,
|
||||
...rest
|
||||
} = props;
|
||||
const cn = classNames(className, 'splitpane-fill');
|
||||
return (
|
||||
<div {...rest} className={cn}>{children}</div>
|
||||
);
|
||||
}
|
||||
|
||||
SplitPaneFillOverlayComponent.propTypes = {
|
||||
className: PropTypes.string,
|
||||
children: PropTypes.node,
|
||||
};
|
||||
@@ -0,0 +1,27 @@
|
||||
$resizer-extend = 4px
|
||||
$resizer-extend-color = rgba($primary-color, 0.3)
|
||||
|
||||
.Resizer
|
||||
background: #000
|
||||
opacity: .2
|
||||
z-index: 1
|
||||
box-sizing: border-box
|
||||
background-clip: padding-box
|
||||
|
||||
.Resizer.horizontal
|
||||
height: ($resizer-extend * 2 + 1px)
|
||||
margin: -($resizer-extend) 0
|
||||
border-top: $resizer-extend solid transparent
|
||||
border-bottom: $resizer-extend solid transparent
|
||||
cursor: row-resize
|
||||
width: 100%
|
||||
|
||||
.Resizer.vertical
|
||||
width: ($resizer-extend * 2 + 1px)
|
||||
margin: 0 -($resizer-extend)
|
||||
border-left: $resizer-extend solid transparent
|
||||
border-right: $resizer-extend solid transparent
|
||||
cursor: col-resize
|
||||
|
||||
.Resizer:hover
|
||||
border-color: $resizer-extend-color
|
||||
Reference in new issue
Block a user