CSS Battle #100 – CSSBattle #1310
Narigo
started this conversation in
CSS Battles
Replies: 1 comment
-
99.9% solution with gradients Code Source – 595.12 (99.9% match)<div y></div>
<div box></div>
<div box2></div>
<div bg>
<div sw r></div>
<div sw></div>
</div>
<style>
& {
background: #14313E;
}
div {
position:fixed;
}
[r] {
transform: scale(-1, 1) translate(7px);
}
[sw]{
top:71;
left:126;
right:120;
bottom:74;
background:
linear-gradient(-45deg, #14313E 8px, #0000 0) no-repeat,
linear-gradient(45deg, #0000 106px, #FFDF00 0 114px, #0000 0) no-repeat,
radial-gradient(1q, #FFDF00 6px, #0000 0) 65px 69px no-repeat,
radial-gradient(1q, #FFDF00 7px, #0000 0) 70px 64px no-repeat,
linear-gradient(-45deg, #14313E 14px, #0000 0) no-repeat,
linear-gradient(45deg, #0000 100px, #FFDF00 0 120px, #0000 0) no-repeat,
linear-gradient(45deg, #14313E 21px, #0000 0 101px, #14313E 0) 101% 101% / 85px 100px no-repeat,
linear-gradient(135deg, #0000 50px, #FFDF00 0 70px, #14313E 0) 72px 70px / 85px 100px no-repeat,
linear-gradient(45deg, #0000 85px, #14313E 0 95px, #FFDF00 0 125px, #14313E 0 135px,#0000 0) no-repeat
;
}
[bg]{
top:70;
bottom:70;
left:103;
right:103;
background: #14313E;
}
[y]{
top:130;
left:53;
width:294;
height:40;
border-radius: 5px;
background:#ffdf00;
}
[box]{
top:75;
left:63;
width:224;
height:100;
border: 25px solid #FFDF00;
background:#FFDF00;
border-radius: 20px;
}
[box2]{
top:100;
left:88;
height:100;
width:224;
background:#14313E;
border-radius: 10px;
}
</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