diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx index 1c754090..d89825a6 100644 --- a/packages/app/src/App.jsx +++ b/packages/app/src/App.jsx @@ -417,6 +417,7 @@ class App extends React.Component { {config.app.siteName} +
div { + transform: translate(-50px, 0); + } + .sidedrawer { position: relative; @@ -28,6 +32,9 @@ word-break: break-all; transition: all 150ms ease-in-out; + // create shadow on the right side + box-shadow : 0 0 5px 4px rgba(0, 0, 0, 0.1) !important; + &.hided { width: 0; min-width: 0; diff --git a/packages/app/src/theme/index.less b/packages/app/src/theme/index.less index 5ac93342..ea77b4d8 100644 --- a/packages/app/src/theme/index.less +++ b/packages/app/src/theme/index.less @@ -74,7 +74,7 @@ body { width: 100%; height: 100%; - background-color: var(--background-color-primary) !important; + background-color: var(--layoutBackgroundColor) !important; } #nprogress { @@ -89,10 +89,17 @@ body { } .ant-layout, -.content_layout, +.content_layout { + width: 100%; + height: 100%; + max-height: 100vh; + + background-color: transparent; +} + .app_layout { - background: var(--background-color-primary) !important; - background-color: var(--background-color-primary) !important; + background-color: rgba(var(--layoutBackgroundColor), var(--backgroundColorTransparency)) !important; + backdrop-filter: blur(var(--backgroundBlur)); position: relative; -webkit-overflow-scrolling: touch; @@ -126,6 +133,23 @@ body { } } +.backgroundDecorator { + background-image: var(--backgroundImage); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + background-attachment: fixed; + + position: absolute; + top: 0; + left: 0; + + width: 100vw; + height: 100vh; + + transition: all 150ms ease-in-out; +} + .layout_page { position: relative; -webkit-overflow-scrolling: touch;