-
Notifications
You must be signed in to change notification settings - Fork 1
/
05.html
executable file
·78 lines (76 loc) · 1.41 KB
/
05.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Stripy backgrounds</title>
<link rel="stylesheet" href="css/style.css" />
<style media="screen">
div {
vertical-align: middle;
display: inline-block;
width: 150px;
height: 150px;
margin: 20px;
background: #fff;
}
.horizontal {
background: linear-gradient(
#F05562 50%,
#F0DB4F 50%
);
background-size: 100% 30px;
}
.vertical {
background: linear-gradient(to right,
#F05562 50%,
#F0DB4F 50%
);
background-size: 30px 100%;
}
.diagonal-tile {
background: linear-gradient(45deg,
#F05562 25%,
#F0DB4F 0,
#F0DB4F 50%,
#F05562 0,
#F05562 75%,
#F0DB4F 0
);
background-size: 43px 43px;
}
.repeating-linear-gradient {
background: repeating-linear-gradient(45deg,
#F05562,
#F05562 15px,
#F0DB4F 0,
#F0DB4F 30px
);
}
.repeating-linear-gradient-60 {
background: repeating-linear-gradient(60deg,
#F05562,
#F05562 15px,
#F0DB4F 0,
#F0DB4F 30px
);
}
.hsla {
background: #F05562;
background-image: repeating-linear-gradient(60deg,
hsla(0,0%,100%,.4),
hsla(0,0%,100%,.4) 15px,
transparent 0,
transparent 30px
);
}
</style>
</head>
<body>
<div class="horizontal"></div>
<div class="vertical"></div>
<div class="diagonal-tile"></div>
<div class="repeating-linear-gradient"></div>
<div class="repeating-linear-gradient-60"></div>
<div class="hsla"></div>
</body>
</html>