mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
make bottom bar relative
This commit is contained in:
parent
4bdb82c2c4
commit
f7e474fa58
@ -8,8 +8,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
position: fixed;
|
||||
z-index: 9999;
|
||||
position: relative;
|
||||
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
|
@ -9,9 +9,11 @@ export default (props) => {
|
||||
<Modal />
|
||||
|
||||
<antd.Layout.Content className={classnames("content_layout", ...props.layoutPageModesClassnames ?? [])}>
|
||||
<div id="transitionLayer" className="fade-transverse-active">
|
||||
<div className={classnames("frameDecorator", "top")} />
|
||||
<div id="transitionLayer" className={classnames("content_wrapper", "fade-transverse-active")}>
|
||||
{React.cloneElement(props.children, props)}
|
||||
</div>
|
||||
<div className={classnames("frameDecorator", "bottom")} />
|
||||
</antd.Layout.Content>
|
||||
|
||||
<BottomBar />
|
||||
|
@ -1,7 +1,57 @@
|
||||
@frameDecorator_height: 20px;
|
||||
|
||||
.app_layout {
|
||||
&.mobile {
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
padding: 0;
|
||||
|
||||
.content_wrapper {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow-y: scroll;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.content_layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
width: 100vw;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.frameDecorator {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
|
||||
z-index: 8000;
|
||||
|
||||
width: 100vw;
|
||||
height: @frameDecorator_height;
|
||||
|
||||
background-color: rgba(var(--layoutBackgroundColor), 0.8);
|
||||
|
||||
filter: blur(4px);
|
||||
backdrop-filter: blur(10px);
|
||||
|
||||
&.top {
|
||||
top: 0;
|
||||
transform: translate(0, -6px);
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
bottom: 0;
|
||||
transform: translate(0, 6px);
|
||||
}
|
||||
}
|
||||
|
||||
// FIXMETS FOR MOBILE LAYOUT
|
||||
.loginPage {
|
||||
flex-direction: column;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user