Skip to content

Commit 4359db8

Browse files
committed
another pattern
1 parent fb9b76d commit 4359db8

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

index.html

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
20692069
}
20702070
</style><button>Copy the CSS</button>
20712071
</section>
2072-
<section id="g121">
2072+
<section id="g121">
20732073
<style>#g121 {
20742074
--s: 52px; /* control the size */
20752075
--c1:#DFBA69;
@@ -2082,6 +2082,29 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
20822082
repeating-conic-gradient(from 45deg,var(--c2) 0 25%,var(--c1) 0 50%);
20832083
background-size: calc(2*var(--s)) calc(2*var(--s));
20842084
}
2085+
</style><button>Copy the CSS</button>
2086+
</section>
2087+
<section id="g122">
2088+
<style>#g122 {
2089+
--s: 104px; /* control the size */
2090+
--c1:#403B33;
2091+
--c2:#94C7B6;
2092+
2093+
--g1:/calc(2*var(--s)) calc(2*var(--s))
2094+
radial-gradient(at 100% 0,var(--c2) 17.5%,#0000 18%);
2095+
--g2:/calc(2*var(--s)) calc(2*var(--s))
2096+
radial-gradient(at 0 100%,var(--c2) 17.5%,#0000 18%);
2097+
--_s:0 calc(var(--s)/2)/var(--s) var(--s);
2098+
background:
2099+
calc(var(--s)/ 2) var(--s)var(--g1),
2100+
calc(var(--s)/-2) 0 var(--g1),
2101+
calc(var(--s)/-2) var(--s)var(--g2),
2102+
calc(var(--s)/ 2) 0 var(--g2),
2103+
radial-gradient(at 100% 0,var(--c1) 35%,#0000 35.5%) var(--_s),
2104+
radial-gradient(at 0 100%,var(--c1) 35%,#0000 35.5%) var(--_s),
2105+
repeating-conic-gradient(from 45deg,var(--c1) 0 25%,var(--c2) 0 50%)
2106+
0 0/var(--s) var(--s);
2107+
}
20852108
</style><button>Copy the CSS</button>
20862109
</section>
20872110
<a target="_blank" href="https://github.com/Afif13/CSS-Pattern" class="credit">

0 commit comments

Comments
 (0)