-
Notifications
You must be signed in to change notification settings - Fork 844
/
Copy pathbackgrounds.html
58 lines (58 loc) · 1.62 KB
/
backgrounds.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>CSS backgrounds and borders sample</title>
<style>
article {
display: flex;
gap: 10px;
}
div {
color: #58ade3;
height: 320px;
width: 240px;
padding: 20px;
margin: 10px;
border: dotted 15px; /* defaults to `currentcolor` */
border-radius: 100px 0;
background-image: radial-gradient(
circle,
transparent 60%,
currentcolor 60% 70%,
transparent 70%
),
linear-gradient(45deg, currentcolor, white),
linear-gradient(transparent, transparent);
/* the third transparent background image was added to provide space for the background color to show through */
background-color: currentcolor;
background-position: center;
background-size:
60px 60px,
120px 120px;
background-clip: content-box, content-box, padding-box;
box-shadow:
inset 5px 5px 5px rgb(0 0 0 / 0.4),
inset -5px -5px 5px rgb(0 0 0 / 0.4),
5px 5px 5px rgb(0 0 0 / 0.4),
-5px -5px 5px rgb(0 0 0 / 0.4);
}
div:first-of-type {
border-radius: 0;
border-image-source: repeating-conic-gradient(
from 3deg at 25% 25%,
currentColor 0 3deg,
transparent 3deg 6deg
);
border-image-slice: 30;
}
</style>
</head>
<body>
<article>
<div></div>
<div></div>
</article>
</body>
</html>