Add ToolsFramework #32

Merged
FatttSnake merged 26 commits from FatttSnake into dev 2023-10-14 18:36:50 +08:00
3 changed files with 26 additions and 23 deletions
Showing only changes of commit 1c05de7f20 - Show all commits

View File

@@ -17,10 +17,6 @@
} }
} }
::-webkit-scrollbar {
display: none;
}
.scrollbar { .scrollbar {
position: absolute; position: absolute;
z-index: 1000; z-index: 1000;

View File

@@ -6,10 +6,16 @@ body {
} }
.left-panel { .left-panel {
display: flex;
flex-direction: column;
width: 16%; width: 16%;
background-color: constants.$origin-color; background-color: constants.$origin-color;
user-select: none; user-select: none;
.hide-scrollbar-selection {
height: 100% !important;
}
.title { .title {
font-size: 2em; font-size: 2em;
text-align: center; text-align: center;
@@ -61,8 +67,8 @@ body {
} }
.submenu { .submenu {
display: none; display: block;
position: fixed; position: absolute;
padding-left: 20px; padding-left: 20px;
left: 100%; left: 100%;
top: 0; top: 0;
@@ -99,7 +105,9 @@ body {
} }
&:hover { &:hover {
a {
background-color: constants.$background-color; background-color: constants.$background-color;
}
.submenu { .submenu {
display: block; display: block;
@@ -119,7 +127,9 @@ body {
} }
} }
} }
}
}
}
.separate { .separate {
height: 0; height: 0;
margin: 10px 5px; margin: 10px 5px;
@@ -130,9 +140,6 @@ body {
}; };
opacity: 0.4; opacity: 0.4;
} }
}
}
}
} }
.right-panel { .right-panel {

View File

@@ -10,13 +10,11 @@ const ToolsFramework: React.FC = () => {
<> <>
<FitFullScreen className={'flex-horizontal'}> <FitFullScreen className={'flex-horizontal'}>
<div className={'left-panel'}> <div className={'left-panel'}>
<HideScrollbar>
<div className={'title'}></div> <div className={'title'}></div>
<div style={{ marginTop: '0' }} className={'separate'} />
<HideScrollbar isShowVerticalScrollbar={true} isShowHorizontalScrollbar={true}>
<div className={'content'}> <div className={'content'}>
<ul> <ul>
<li>
<div style={{ marginTop: '0' }} className={'separate'} />
</li>
<li className={'item'}> <li className={'item'}>
<div className={'menu-bt'}> <div className={'menu-bt'}>
<NavLink <NavLink
@@ -126,6 +124,8 @@ const ToolsFramework: React.FC = () => {
</ul> </ul>
</div> </div>
</HideScrollbar> </HideScrollbar>
<div className={'title'}></div>
</div> </div>
<div className={'right-panel'}></div> <div className={'right-panel'}></div>
</FitFullScreen> </FitFullScreen>