Skip to content

Commit 7cd815f

Browse files
committed
style: update html background and clean CSS rules
1 parent 58701b7 commit 7cd815f

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

docs/website/styles.css

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2744,8 +2744,7 @@ section#demo {
27442744
color: green;
27452745
}
27462746

2747-
html,
2748-
body {
2747+
html{
27492748
margin: 0;
27502749
padding: 0;
27512750
min-height: 100%;
@@ -2758,18 +2757,23 @@ body {
27582757
background-blend-mode: screen;
27592758
background-repeat: no-repeat;
27602759
background-size: cover;
2761-
font-family: sans-serif;
2762-
color: white;
2760+
background-attachment: fixed;
27632761
transition: background-position 0.2s ease;
27642762
}
27652763

2766-
main {
2767-
padding: 4rem 2rem;
2768-
max-width: 800px;
2769-
margin: auto;
2764+
html {
2765+
min-height: 100%;
2766+
background:
2767+
radial-gradient(circle at var(--x1, 25%) var(--y1, 75%), rgba(130, 0, 255, 0.4), transparent 40%),
2768+
radial-gradient(circle at var(--x2, 75%) var(--y2, 25%), rgba(0, 98, 255, 0.5), transparent 45%),
2769+
radial-gradient(circle at var(--x3, 50%) var(--y3, 50%), rgba(72, 0, 120, 0.6), transparent 60%),
2770+
radial-gradient(circle at var(--x4, 60%) var(--y4, 80%), rgba(200, 0, 255, 0.3), transparent 50%),
2771+
linear-gradient(135deg, #3a0ca3, #4361ee, #7209b7);
2772+
background-attachment: fixed;
2773+
background-blend-mode: screen;
2774+
background-size: cover;
27702775
}
27712776

2772-
27732777
@keyframes gradientGlow {
27742778
0% {
27752779
--x1: 30%;

0 commit comments

Comments
 (0)