62 lines
1.0 KiB
CSS
62 lines
1.0 KiB
CSS
.svg-filter {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
margin: -1px;
|
|
}
|
|
|
|
.wrap {
|
|
position: relative;
|
|
overflow: hidden;
|
|
width: 300px;
|
|
height: 300px;
|
|
background: var(--ac, hotpink);
|
|
filter: blur(0.33px);
|
|
-webkit-clip-path: polygon(0 0, 50% 0, 100% 50%, 100% 100%, 50% 100%, 0 50%);
|
|
clip-path: polygon(0 0, 50% 0, 100% 50%, 100% 100%, 50% 100%, 0 50%);
|
|
}
|
|
|
|
.shape {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--fg, white);
|
|
}
|
|
|
|
.gradient {
|
|
background: radial-gradient(circle at 100% 100%, var(--fg, white) 10%, 33%, var(--fg-alpha, transparent) 66.7%);
|
|
}
|
|
|
|
.noisy {
|
|
border-radius: 50%;
|
|
filter: url("#noise");
|
|
}
|
|
|
|
/* Presentational styles below */
|
|
body {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--fg, white);
|
|
background: var(--bg, black);
|
|
}
|
|
|
|
:root {
|
|
--bg: #1d122f;
|
|
--fg: #ffe4c2;
|
|
--fg-alpha: #ffe4c200;
|
|
--ac: #ff0196;
|
|
}
|
|
|
|
body.bw {
|
|
--bg: #000000;
|
|
--fg: #ffffff;
|
|
--fg-alpha: #ffffff00;
|
|
--ac: #000000;
|
|
}
|
|
|
|
p {
|
|
text-align: center;
|
|
} |