-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmain.css
87 lines (77 loc) · 1.69 KB
/
main.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--backColor: #FF5722;
--textColor: white;
}
h1 {
width: 150px;
margin: 100px auto;
background-color: var(--backColor);
color: var(--textColor);
text-align: center;
padding: 20px 10px;
font-size: 40px;
position: relative;
}
h1::before {
content: "";
width: 20px;
height: 20px;
background-color: transparent;
border-top: 100px solid transparent;
border-bottom: 100px solid transparent;
border-left: 20px solid transparent;
border-right: 30px solid rgb(255, 255, 255);
position: absolute;
top: 50%;
transform: translate(-50%, -50%) scaleY(1.3);
right: -55px;
}
h1::after {
content: "";
width: 20px;
height: 20px;
background-color: transparent;
border-top: 100px solid transparent;
border-bottom: 100px solid transparent;
border-right: 20px solid transparent;
border-left: 30px solid rgb(255, 255, 255);
position: absolute;
top: 50%;
transform: translate(-50%, -50%) scaleY(1.3);
left: 15px;
}
body::before {
content: "";
width: 20px;
height: 20px;
background-color: transparent;
border-right: 100px solid transparent;
border-left: 100px solid transparent;
border-top: 20px solid transparent;
border-bottom: 18px solid white;
position: absolute;
top: 163px;
transform: translate(-50%, -50%);
left: 50%;
z-index: 2;
}
body::after {
content: "";
width: 20px;
height: 20px;
background-color: transparent;
border-right: 100px solid transparent;
border-left: 100px solid transparent;
border-bottom: 20px solid transparent;
border-top: 18px solid #ffffff;
position: absolute;
top: 125px;
transform: translate(-50%, -50%);
left: 50%;
z-index: 2;
}