Skip to content

Commit 5d84769

Browse files
committed
another pattern
1 parent 68d4414 commit 5d84769

File tree

1 file changed

+30
-16
lines changed

1 file changed

+30
-16
lines changed

index.html

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,21 +2155,6 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
21552155
</section>
21562156
<section id="g124">
21572157
<style>#g124 {
2158-
--s: 112px; /* control the size */
2159-
--c1:#C7F464;
2160-
--c2:#8A9B0F;
2161-
2162-
background:
2163-
conic-gradient(from 45deg at 70%,var(--c2) 25%,#0000 0) calc(5*var(--s)/8) var(--s),
2164-
conic-gradient(from 45deg at 40%,var(--c1) 25%,#0000 0) calc(3*var(--s)/4) var(--s),
2165-
conic-gradient(from -45deg at 30%,#0000 75%,var(--c2) 0) calc(var(--s)/8) 0,
2166-
conic-gradient(from -45deg at 60%,var(--c2) 75%,var(--c1) 0);
2167-
background-size: var(--s) calc(2*var(--s));
2168-
}
2169-
</style><button>Copy the CSS</button>
2170-
</section>
2171-
<section id="g125">
2172-
<style>#g125 {
21732158
--s: 30px; /* control the size */
21742159
--c: #1B676B 25%,#0000 0; /* first color */
21752160

@@ -2190,11 +2175,40 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
21902175
conic-gradient(at calc(100%/3) calc(200%/3),var(--c))
21912176
0 0/calc(3*var(--s)) calc(3*var(--s)) #88C425; /* second color */
21922177
}
2178+
</style><button>Copy the CSS</button>
2179+
</section>
2180+
<section id="g125">
2181+
<style>#g125 {
2182+
--s: 112px; /* control the size */
2183+
--c1:#C7F464;
2184+
--c2:#8A9B0F;
2185+
2186+
background:
2187+
conic-gradient(from 45deg at 70%,var(--c2) 25%,#0000 0) calc(5*var(--s)/8) var(--s),
2188+
conic-gradient(from 45deg at 40%,var(--c1) 25%,#0000 0) calc(3*var(--s)/4) var(--s),
2189+
conic-gradient(from -45deg at 30%,#0000 75%,var(--c2) 0) calc(var(--s)/8) 0,
2190+
conic-gradient(from -45deg at 60%,var(--c2) 75%,var(--c1) 0);
2191+
background-size: var(--s) calc(2*var(--s));
2192+
}
2193+
</style><button>Copy the CSS</button>
2194+
</section>
2195+
<section id="g126">
2196+
<style>#g126 {
2197+
--s: 50px; /* control the size */
2198+
--c1:#F1D4AF;
2199+
--c2:#774F38;
2200+
2201+
--g:/calc(2*var(--s)) calc(2*var(--s))
2202+
conic-gradient(at 10%,#0000 75%,var(--c1) 0);
2203+
background:
2204+
0 0 var(--g),var(--s) var(--s) var(--g),
2205+
linear-gradient(var(--c1) 20%,var(--c2) 0) 0 0/1% var(--s);
2206+
}
21932207
</style><button>Copy the CSS</button>
21942208
</section>
21952209
<section>
21962210
<div>
2197-
<p>You reached the end but it's not the end<br>This collection will keep growing</p>
2211+
<p>You reached the end but it's not the end!<br>This collection will keep growing</p>
21982212
<a href="https://github.com/Afif13/CSS-Pattern" target="_blank">Watch on Github</a>
21992213
<a href="https://twitter.com/ChallengesCss" target="_blank">Follow me on Twitter</a>
22002214
</div>

0 commit comments

Comments
 (0)