Skip to content

Commit ec73f09

Browse files
committed
another pattern
1 parent 1093af4 commit ec73f09

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

index.html

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,36 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
21092109
</section>
21102110
<section id="g123">
21112111
<style>#g123 {
2112+
--s: 112px; /* control the size */
2113+
--c1:#490A3D;
2114+
--c2:#F56991;
2115+
2116+
--g1:conic-gradient(from -45deg at 60%,#0000 75%,var(--c1) 0);
2117+
--g2:conic-gradient(from -45deg at 30%,#0000 75%,var(--c2) 0);
2118+
background:
2119+
var(--g2) calc(var(--s)/8) 0,var(--g2) calc(5*var(--s)/8) var(--s),
2120+
var(--g1),var(--g1) calc(var(--s)/2) var(--s) var(--c2);
2121+
background-size: var(--s) calc(2*var(--s));
2122+
}
2123+
</style><button>Copy the CSS</button>
2124+
</section>
2125+
<section id="g124">
2126+
<style>#g124 {
2127+
--s: 112px; /* control the size */
2128+
--c1:#C7F464;
2129+
--c2:#8A9B0F;
2130+
2131+
background:
2132+
conic-gradient(from 45deg at 70%,var(--c2) 25%,#0000 0) calc(5*var(--s)/8) var(--s),
2133+
conic-gradient(from 45deg at 40%,var(--c1) 25%,#0000 0) calc(3*var(--s)/4) var(--s),
2134+
conic-gradient(from -45deg at 30%,#0000 75%,var(--c2) 0) calc(var(--s)/8) 0,
2135+
conic-gradient(from -45deg at 60%,var(--c2) 75%,var(--c1) 0);
2136+
background-size: var(--s) calc(2*var(--s));
2137+
}
2138+
</style><button>Copy the CSS</button>
2139+
</section>
2140+
<section id="g125">
2141+
<style>#g125 {
21122142
--s: 30px; /* control the size */
21132143
--c: #1B676B 25%,#0000 0; /* first color */
21142144

@@ -2129,21 +2159,6 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
21292159
conic-gradient(at calc(100%/3) calc(200%/3),var(--c))
21302160
0 0/calc(3*var(--s)) calc(3*var(--s)) #88C425; /* second color */
21312161
}
2132-
</style><button>Copy the CSS</button>
2133-
</section>
2134-
<section id="g124">
2135-
<style>#g124 {
2136-
--s: 112px; /* control the size */
2137-
--c1:#490A3D;
2138-
--c2:#F56991;
2139-
2140-
--g1:conic-gradient(from -45deg at 60%,#0000 75%,var(--c1) 0);
2141-
--g2:conic-gradient(from -45deg at 30%,#0000 75%,var(--c2) 0);
2142-
background:
2143-
var(--g2) calc(var(--s)/8) 0,var(--g2) calc(5*var(--s)/8) var(--s),
2144-
var(--g1),var(--g1) calc(var(--s)/2) var(--s) var(--c2);
2145-
background-size: var(--s) calc(2*var(--s));
2146-
}
21472162
</style><button>Copy the CSS</button>
21482163
</section>
21492164
<a target="_blank" href="https://github.com/Afif13/CSS-Pattern" class="credit">

0 commit comments

Comments
 (0)