A Pen by Matthew Daniel Brown on CodePen.
Created
September 6, 2020 01:55
-
-
Save matt-daniel-brown/900289284ef1743085bc2192074cdd7d to your computer and use it in GitHub Desktop.
Google logo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="google"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#google { | |
position: relative; | |
border-top: 100px solid #ea4335; | |
border-right: 100px solid #4285f4; | |
border-bottom: 100px solid #34a853; | |
border-left: 100px solid #fbbc05; | |
border-radius: 50%; | |
background-color: #fff; | |
width: 300px; | |
height: 300px; | |
padding: 0; | |
margin: 10vh auto 0; | |
} | |
#google::before { | |
content: ""; | |
z-index: 100; | |
position: absolute; | |
top: 50%; | |
right: -95px; | |
transform: translateY(-50%); | |
width: 245px; | |
height: 100px; | |
background-color: #4285f4; | |
} | |
#google::after { | |
content: ""; | |
z-index: 101; | |
position: absolute; | |
border-top: 200px solid transparent; | |
border-right: 200px solid #fff; | |
top: -100px; | |
right: -100px; | |
width: 0; | |
height: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment