-
Notifications
You must be signed in to change notification settings - Fork 105
/
PuertoRico.html
50 lines (50 loc) · 1.48 KB
/
PuertoRico.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
<!DOCTYPE html>
<html>
<head>
<title>Puerto Rico | Flags</title>
<meta charset="utf-8" />
<style>
body {
padding: 20px;
}
#puerto-rico {
width: 1235px;
height: 650px;
background: repeating-linear-gradient(180deg, #ce1126, #ce1126 150px, white 80px, white 250px);
box-shadow: 10px 10px 15px 0px #bbbbbb;
position: relative;
overflow: hidden;
}
#puerto-rico::before {
position: absolute;
content: " ";
width: 608px;
height:608px;
left: -5px;
top: 20px;
background: #0038a8;
transform: translate(-50%) rotate(-45deg) skew(15deg,15deg);
box-shadow: 0 0 0 13px #0038a8;
}
#puerto-rico::after {
/*
Unicode, not magic. Stars are separated by a no-break space (U+00A0) to
prevent the sets of six and five stars from being split up over lines.
Regular spaces indicate where line breaks should occur.
The star is U+2605 BLACK STAR, so this approach is almost cheating.
*/
position: absolute;
content: "★";
font-size: 280px;
font-family: 'DejaVu Sans', sans-serif;
line-height: 1%;
color: white;
left: 60px;
top: 50%;
}
</style>
</head>
<body>
<div id="puerto-rico"></div>
</body>
</html>