-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
109 lines (93 loc) · 1.8 KB
/
style.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
:root {
--yangColor: #d8c21e;
--yinColor: #111111;
}
body {
box-sizing: border-box;
width: 100%;
height: 100%;
background: var(--yinColor);
}
*,
*::before,
*::after {
font-size: inherit;
font-family: inherit;
box-sizing: inherit;
margin: 0;
padding: 0;
}
.container {
display: grid;
place-items: center;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.emblem {
display: flex;
flex-wrap: wrap;
width: 45vw;
height: 45vw;
}
.square {
position: relative;
border: 2px solid var(--yangColor);
width: calc(100% / 3);
height: calc(100% / 3);
}
.square:nth-child(1) {
border-top: 4px solid var(--yangColor);
border-left: 4px solid var(--yangColor);
}
.square:nth-child(2) {
border-top: 4px solid var(--yangColor);
}
.square:nth-child(3) {
border-top: 4px solid var(--yangColor);
border-right: 4px solid var(--yangColor);
}
.square:nth-child(4) {
border-left: 4px solid var(--yangColor);
}
.square:nth-child(6) {
border-right: 4px solid var(--yangColor);
}
.square:nth-child(7) {
border-bottom: 4px solid var(--yangColor);
border-left: 4px solid var(--yangColor);
}
.square:nth-child(8) {
border-bottom: 4px solid var(--yangColor);
}
.square:nth-child(9) {
border-bottom: 4px solid var(--yangColor);
border-right: 4px solid var(--yangColor);
}
.square:nth-child(2)::after,
.square:nth-child(6)::after,
.square:nth-child(7)::after,
.square:nth-child(8)::after,
.square:nth-child(9)::after {
content: '';
position: absolute;
width: 75%;
height: 75%;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(--yangColor);
}
@media (max-width: 768px) {
.emblem {
width: 75vw;
height: 75vw;
}
}
@media (min-width: 769px) and (max-width: 1280px) {
.emblem {
width: 50vw;
height: 50vw;
}
}