mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
implement background images supports
This commit is contained in:
parent
8a032790cd
commit
18b9fea6b8
@ -417,6 +417,7 @@ class App extends React.Component {
|
||||
<title>{config.app.siteName}</title>
|
||||
</Helmet>
|
||||
<antd.ConfigProvider>
|
||||
<div className="backgroundDecorator" />
|
||||
<Layout
|
||||
user={this.state.user}
|
||||
staticRenders={App.staticRenders}
|
||||
|
@ -14,8 +14,8 @@
|
||||
|
||||
transition: all ease-in-out 150ms;
|
||||
|
||||
background: var(--background-color-primary) !important;
|
||||
background-color: var(--background-color-primary) !important;
|
||||
background-color: transparent;
|
||||
background: transparent !important;
|
||||
|
||||
border-bottom: 1px var(--border-color) solid;
|
||||
|
||||
|
@ -4,6 +4,10 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
> 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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user