Skip to content

Commit

Permalink
Landing page: Fix gradients of apps in firefox (MudBlazor#3713)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonBunator authored and ferraridavide committed May 30, 2023
1 parent 36e0041 commit 6033c12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
16 changes: 11 additions & 5 deletions src/MudBlazor.Docs/Styles/pages/_landingpage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
height: 100%;
z-index: 2;
background-color: var(--mud-palette-background);
border-right: 1px solid var(--mud-palette-table-lines);
border-right: 1px solid var(--mud-palette-divider);
overflow: hidden;
transition: width ease-in 0.1s;
}
Expand Down Expand Up @@ -99,7 +99,7 @@
.lp-device {
overflow: hidden;
position: absolute;
outline: rgba(255, 255, 255, 0.8) solid 1px;
outline: var(--mud-palette-divider) solid 1px;
box-shadow: inset 0 1px 1px 0 hsla(0deg, 0%, 100%, 0.1), 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
background: linear-gradient(0deg, rgba(0,0,0,0.2) 0%, rgba(255,255,255,0.2) 50%, rgba(0,0,0,0.2) 100%);

Expand Down Expand Up @@ -240,10 +240,13 @@
left: 240px;
width: calc(calc(2560px / 2) + 24px);
height: calc(calc(1440px / 2) + 24px);
filter: blur(2px);
border-radius: 12px;
animation: spin 10s reverse infinite;
background-image: linear-gradient(var(--rotate), rgba(89, 74, 226, 0.5), rgba(255, 64, 129, 0.5) 43%, rgba(116, 103, 239, 0.5));
//rotation animation doesn't work in firefox
@supports (-moz-appearance:none) {
background-image: linear-gradient(132deg, rgba(89, 74, 226, 0.5), rgba(255, 64, 129, 0.5) 43%, rgba(116, 103, 239, 0.5));
}
}

&.phone-shadow {
Expand All @@ -252,9 +255,12 @@
width: calc(calc(1170px / 4) + 28px);
height: calc(calc(2432px / 4) + 28px);
border-radius: 46px;
filter: grayscale(1);
animation: spin 20s linear infinite;
background-image: linear-gradient(var(--rotate), rgba(89, 74, 226, 0.5), rgba(255, 255, 255, 0.5) 43%, rgba(116, 103, 239, 0.5));
background-image: linear-gradient(var(--rotate), rgba(100, 100, 100, 0.5), rgba(255, 255, 255, 0.5) 43%, rgba(100, 100, 100, 0.5));
//rotation animation doesn't work in firefox
@supports (-moz-appearance:none) {
background-image: linear-gradient(rgba(100, 100, 100, 0.5), rgba(255, 255, 255, 0.5) 43%, rgba(100, 100, 100, 0.5));
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/MudBlazor.Docs/Theme/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public static MudTheme DocsTheme()
DrawerIcon = "#92929f",
DrawerText = "#92929f",
DrawerBackground = "#151521",
OverlayLight = "#1e1e2d80"
OverlayLight = "#1e1e2d80",
Divider = "#5c5c6a"
};

private static readonly Shadow LandingPageShadows = new()
Expand Down

0 comments on commit 6033c12

Please sign in to comment.