Skip to content

Commit 12ba0ea

Browse files
committed
adding a pattern
1 parent d50748a commit 12ba0ea

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

index.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<meta property="og:image:width" content="1600" />
2323
<meta property="og:image:height" content="800" />
2424
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap" rel="stylesheet">
25-
<link rel="stylesheet" href="style.css?v=0.78">
25+
<link rel="stylesheet" href="style.css?v=0.80">
2626
<!-- Global site tag (gtag.js) - Google Analytics -->
2727
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CVMK530JFV"></script>
2828
<script>
@@ -1389,7 +1389,22 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
13891389
#BBBB88;
13901390
background-size: var(--s) calc(2*var(--s))
13911391
}
1392-
1392+
</code><button>Copy the CSS</button></pre>
1393+
</section>
1394+
<section>
1395+
<pre ><code>html {
1396+
--s: 124px; /* control the size */
1397+
1398+
1399+
--g: #90c0b2 0 25%,#f9fbef 0 50%,#0000 0;
1400+
background:
1401+
conic-gradient(from 135deg at 25% 75%,var(--g))
1402+
calc(var(--s)/4) calc(var(--s)/-4),
1403+
conic-gradient(from -45deg at 75% 25%,var(--g))
1404+
calc(var(--s)/-4) calc(var(--s)/4),
1405+
repeating-conic-gradient(var(--g));
1406+
background-size: var(--s) var(--s)
1407+
}
13931408
</code><button>Copy the CSS</button></pre>
13941409
</section>
13951410
<a target="_blank" href="https://github.com/Afif13/CSS-Pattern" class="credit">

style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,3 +1283,16 @@ section:nth-of-type(80) {
12831283
#BBBB88;
12841284
background-size: var(--s) calc(2*var(--s))
12851285
}
1286+
section:nth-of-type(81) {
1287+
--s: 124px; /* control the size */
1288+
1289+
1290+
--g: #90c0b2 0 25%,#f9fbef 0 50%,#0000 0;
1291+
background:
1292+
conic-gradient(from 135deg at 25% 75%,var(--g))
1293+
calc(var(--s)/4) calc(var(--s)/-4),
1294+
conic-gradient(from -45deg at 75% 25%,var(--g))
1295+
calc(var(--s)/-4) calc(var(--s)/4),
1296+
repeating-conic-gradient(var(--g));
1297+
background-size: var(--s) var(--s)
1298+
}

0 commit comments

Comments
 (0)