-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbattle.css
More file actions
199 lines (184 loc) · 4.36 KB
/
battle.css
File metadata and controls
199 lines (184 loc) · 4.36 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<div class="cercle"></div>
<div class="triangle"></div>
<div class="hidden"></div>
<style>
body {
background: #4F77FF;
}
.triangle {
position: absolute;
top: 65%;
bottom: 0;
left: 50px;
right: 50px;
width: 300px;
height: 300px;
z-index: 1;
transform: rotate(45deg);
background: #1038BF;
}
.cercle {
position: absolute;
top: 40px;
left: 160px;
height: 80px;
width: 80px;
background: #fff;
border-radius: 50%;
z-index: -1;
}
.cercle::before {
position: absolute;
content: "";
top: 50%;
width: 80px;
height: 80px;
background: #4F77FF;
z-index: 0;
border-radius: 50%;
}
</style>
<div class="container">
<div class="cercle1"></div>
<div class="cercle">
<div class="cercle1"></div>
<div class="cercle1"></div>
</div>
<div class="cercle">
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
</div>
<div class="cercle">
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
</div>
<div class="cercle">
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
</div>
<div class="cercle">
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
</div>
<div class="cercle">
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
<div class="cercle1"></div>
</div>
<div class="cercle">
<div class="cercle1"></div>
<div class="cercle1"></div>
</div>
<div class="cercle">
<div class="cercle1"></div>
</div>
</div>
<style>
*{
margin:0;
padding:0;
}
body {
background: #926927;
}
.container {
display: flex;
flex-direction:column;
width:100vw;
height:100vh;
justify-content:center;
align-items:center;
}
.cercle{
display:flex;
}
.cercle1 {
height: 20px;
width: 20px;
border-radius:50%;
background: #F8B140;
margin:2.5px 5px;
}
</style>
<!-- OBJECTIVE -->
<!-- Write HTML/CSS in this editor and replicate the given target image in the least code possible. What you write here, renders as it is -->
<!-- SCORING -->
<!-- The score is calculated based on the number of characters you use (this comment included :P) and how close you replicate the image. Read the FAQS (https://cssbattle.dev/faqs) for more info. -->
<!-- IMPORTANT: remove the comments before submitting -->
<div class="vert-1"></div>
<div class="hor-1"></div>
<div class="hor-2"></div>
<div class="hor-3"></div>
<div class="vert-2"></div>
<style>
body {
background: #6592CF;
}
.vert-1 {
position: absolute;
top: 60px;
left: 120px;
height: 100%;
width: 30px;
border-radius: 30px;
background: #060F55;
}
.hor-1 {
position: absolute;
top: 120px;
left: 150px;
height: 30px;
width: 100px;
background: #060F55;
}
.hor-2 {
position: absolute;
top: 180px;
left: 150px;
height: 30px;
width: 100px;
background: #060F55;
}
.hor-3 {
position: absolute;
top: 240px;
left: 150px;
height: 30px;
width: 100px;
background: #060F55;
}
.vert-2 {
position: absolute;
top: 60px;
left: 250px;
height: 100%;
width: 30px;
border-radius: 30px;
background: #060F55;
}
</style>
<!-- OBJECTIVE -->
<!-- Write HTML/CSS in this editor and replicate the given target image in the least code possible. What you write here, renders as it is -->
<!-- SCORING -->
<!-- The score is calculated based on the number of characters you use (this comment included :P) and how close you replicate the image. Read the FAQS (https://cssbattle.dev/faqs) for more info. -->
<!-- IMPORTANT: remove the comments before submitting -->