mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
fix(styles): move blur bg to blur theme configuration
This commit is contained in:
parent
067535b500
commit
0b44fd6293
3 changed files with 16 additions and 22 deletions
|
|
@ -18,11 +18,8 @@ main {
|
|||
position: relative;
|
||||
font: 14px/16px $font-family;
|
||||
color: $default-text;
|
||||
@include body-bg();
|
||||
|
||||
&.blur {
|
||||
@include main-background();
|
||||
}
|
||||
@include body-bg();
|
||||
|
||||
.additional-bg {
|
||||
position: fixed;
|
||||
|
|
@ -30,7 +27,6 @@ main {
|
|||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
//background-attachment: inherit;
|
||||
@include additional-bg();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,23 +49,6 @@
|
|||
background-image: url($images-root + $relativeUrl);
|
||||
}
|
||||
|
||||
@mixin main-background() {
|
||||
$mainBgUrl: $images-root + 'blur-bg.jpg';
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: url($mainBgUrl) no-repeat center center;
|
||||
background-size: cover;
|
||||
will-change: transform;
|
||||
z-index: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin bg-translucent-dark($opacity) {
|
||||
background: rgba(0, 0, 0, $opacity);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,21 @@ $hoverlink: $primary-dark;
|
|||
|
||||
@mixin body-bg() {
|
||||
background-color: $body-bg;
|
||||
|
||||
$mainBgUrl: $images-root + 'blur-bg.jpg';
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: url($mainBgUrl) no-repeat center center;
|
||||
background-size: cover;
|
||||
will-change: transform;
|
||||
z-index: 0;
|
||||
}
|
||||
}
|
||||
@mixin additional-bg() {
|
||||
display: none;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue