mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
feat: style with CSS variables
This commit is contained in:
parent
096cca294d
commit
9b59cbbc82
3 changed files with 5819 additions and 5 deletions
|
|
@ -52,9 +52,7 @@ export default function Resizable({
|
|||
|
||||
return (
|
||||
<div className={cx('gitako-position-wrapper', className)}>
|
||||
<div className={'gitako-position-content'} style={{ width: size }}>
|
||||
{children}
|
||||
</div>
|
||||
<div className={'gitako-position-content'}>{children}</div>
|
||||
<HorizontalResizeHandler
|
||||
onResize={size => {
|
||||
if (size < window.innerWidth - MINIMAL_CONTENT_VIEWPORT_WIDTH) setSize(size)
|
||||
|
|
|
|||
|
|
@ -171,23 +171,29 @@
|
|||
&.hidden {
|
||||
.hidden;
|
||||
}
|
||||
|
||||
.gitako-position-content {
|
||||
width: var(--gitako-width);
|
||||
}
|
||||
}
|
||||
.@{name}-resize-handler {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: ew-resize;
|
||||
user-select: none;
|
||||
border-left: 1px solid #e1e4e8;
|
||||
width: 2px;
|
||||
width: 0;
|
||||
background: #e1e4e8;
|
||||
border-left: 1px solid #e1e4e8;
|
||||
&:hover {
|
||||
width: 16px;
|
||||
background: #fafbfc;
|
||||
border-right: 1px solid #e1e4e8;
|
||||
}
|
||||
|
||||
.grabber-icon {
|
||||
transform: rotate(90deg);
|
||||
width: 12px;
|
||||
font-size: 0;
|
||||
}
|
||||
}
|
||||
.@{name}-side-bar-body {
|
||||
|
|
|
|||
5810
yarn-error.log
Normal file
5810
yarn-error.log
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue