Skip to content

Commit f4ee148

Browse files
committed
a small optimization
1 parent 8c2a721 commit f4ee148

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

index.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,14 +2427,11 @@ <h2>the biggest collection of background Patterns</h2>
24272427
<section id="g141">
24282428
<style>#g141 {
24292429
--s: 100px; /* control the size */
2430-
--c: #D3643B;
24312430

2432-
--g:#333333 0 10%,#0000 0 50%;
2431+
--c:#333 20% 30%;
24332432
background:
2434-
linear-gradient(45deg,#0000 5%,var(--c) 0 45%,#0000 0)
2435-
0 calc(-.1*var(--s)),
2436-
repeating-linear-gradient( 45deg,var(--g)),
2437-
repeating-linear-gradient(-45deg,var(--g)) var(--c);
2433+
linear-gradient(135deg,#0000 20%,var(--c),#0000 0),
2434+
repeating-linear-gradient(45deg,var(--c),#D3643B 0 70%);
24382435
background-size: var(--s) var(--s);
24392436
}
24402437
</style><button>Copy the CSS</button>

0 commit comments

Comments
 (0)