CSS Battle #81 – Odoo #1144
meg-gutshall
started this conversation in
CSS Battles
Replies: 2 comments
-
First attempt – 602.63 {527}<div id="o"></div>
<div>
<p></p>
</div>
<div></div>
<div></div>
<style>
body {
display: flex;
place-items: center;
place-content: center;
gap: 0 2px;
padding-top: 23px;
background: #191919;
}
div {
width: 40px;
height: 40px;
border-radius: 50%;
border: 20px solid #8F8F8F;
}
#o {
border-color: #714B67;
}
p {
width: 20px;
height: 55px;
border-radius: 50px 50px 0 0;
background: #8F8F8F;
position: relative;
top: -55;
left: 40;
}
</style> Refactored – 604.2 {478}<a o>
<a>
<p></p>
<a>
<a>
<style>
body {
display: flex;
place-items: center;
place-content: center;
gap: 2px;
padding-top: 23px;
background: #191919;
}
a {
width: 40px;
height: 40px;
border-radius: 50px;
border: 20px solid #8F8F8F;
}
[o] {
border-color: #714B67;
}
p {
width: 20px;
height: 70px;
border-radius: 50px;
background: #8F8F8F;
position: relative;
top: -55;
left: 40;
}
</style> Minified – 620.84 {310}<a o><a><p></p><a><a><style>body{display:flex;place-items:center;place-content:center;gap:2px;padding-top:23;background:#191919}a{width:40;height:40;border-radius:50px;border:20px solid#8f8f8f}[o]{border-color:#714b67}p{width:20;height:70;border-radius:50px;background:#8f8f8f;position:relative;top:-55;left:40 |
Beta Was this translation helpful? Give feedback.
0 replies
-
First Attempt – 600.59 {684}<div class="a"><div class="b"></div></div>
<style>
body{
margin: 0;
background-color: #191919;
position: relative;
}
.a {
width: 100%;
height: 100%;
background: radial-gradient(circle at 77px 162px, #191919 20px, #714B67 20px 40px, #0000 0),radial-gradient(circle at 159px 162px, #191919 20px, #8F8F8F 20px 40px, #0000 0),radial-gradient(circle at 241px 162px, #191919 20px, #8F8F8F 20px 40px, #0000 0),radial-gradient(circle at 323px 162px, #191919 20px, #8F8F8F 20px 40px, #0000 0)
}
.b {
position: absolute;
top: 102px;
left: 179px;
width: 20px;
height: 70px;
background-color: #8F8F8F;
border-radius:35px;
}
</style> Minified – 601.89 {562}<div a><div b></div></div>
<style>
body{margin:0;background-color:#191919;position:relative}[a]{width:100%;height:100%;background:radial-gradient(circle at 77px 162px,#191919 20px,#714b67 20px 40px,#0000 0),radial-gradient(circle at 159px 162px,#191919 20px,#8f8f8f 20px 40px,#0000 0),radial-gradient(circle at 241px 162px,#191919 20px,#8f8f8f 20px 40px,#0000 0),radial-gradient(circle at 323px 162px,#191919 20px,#8f8f8f 20px 40px,#0000 0)}[b]{position:absolute;top:102px;left:179px;width:20px;height:70px;background-color:#8f8f8f;border-radius:35px}
</style> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to battle:
Let's battle! ⚔️
Copy the code block below to format your comment on the discussion thread:
What others will see:
This will result in a nice hidden bit like so:
Code Source – score {characters}
Beta Was this translation helpful? Give feedback.
All reactions