-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
66 lines (61 loc) · 1.02 KB
/
styles.css
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #000701;
padding: 2rem;
}
.container {
width: 20rem;
height: 30rem;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.content {
width: 99%;
height: 99%;
display: flex;
justify-content: center;
align-items: center;
clip-path: polygon(0 4.2%, 0 100%, 100% 100%, 100% 0, 6.9% 0);
background-color: rgba(25, 85, 25, 0.5);
}
.content p {
color: white;
font-size: 2rem;
font-family: sans-serif;
font-weight: bold;
text-align: center;
}
.border {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
background: repeating-linear-gradient(
45deg,
rgba(255, 255, 255, 0.5),
rgba(255, 255, 255, 0.5) 10px,
transparent 10px,
transparent 18px
);
clip-path: polygon(
0 4.2%,
0 100%,
0.5% 100%,
0.5% 4.4%,
7.3% 0.4%,
99.5% 0.4%,
99.5% 99.7%,
0.5% 99.7%,
0.5% 100%,
100% 100%,
100% 0,
6.9% 0
);
}