Created
November 16, 2024 00:53
-
-
Save pertrai1/fd5d2d510dc202dca8659718423a40a9 to your computer and use it in GitHub Desktop.
Revisions
-
pertrai1 revised this gist
Nov 16, 2024 . 1 changed file with 21 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ <div class="head"> <div class="light"> <div class="bulb"></div> <div class="stick"></div> </div> <div class="ears"> <div class="ear"></div> <div class="ear"></div> </div> <div class="eyes"> <div class="eye"></div> <div class="eye"></div> </div> <div class="nose"></div> <div class="mouth"> <div class="tooth"></div> <div class="tooth"></div> <div class="tooth"></div> <div class="tooth"></div> </div> </div> -
pertrai1 created this gist
Nov 16, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,114 @@ :root { --head-bg: #a4d9eb; --head-bdr-clr: #9bbcc2; --bulb-bg: #ffa500; --stick-bg: #808080; --ear-bg: #c90a0a; --eye-bg: #fff; --eye-bdr-clr: #00b3ff; --nose-bg: #c90a0a; --mouth-bg: #dedede; --mouth-bdr-clr: #000; --tooth-bg: #000; } .head { background-color: var(--head-bg); border: 5px solid var(--head-bdr-clr); border-radius: 20px; height: 150px; width: 150px; margin: 50px; position: relative; } .light { left: 50%; transform: translateX(-50%); position: absolute; top: -50px; } .bulb { background-color: var(--bulb-bg); border-radius: 50%; margin: 0 auto; height: 30px; width: 30px; position: relative; top: 5px; } .stick { background-color: var(--stick-bg); height: 15px; width: 10px; margin: 0 auto; } .ear { background-color: var(--ear-bg); height: 50px; width: 10px; position: absolute; top: 50%; transform: translateY(-50%); } .ear:first-of-type { border-radius: 5px 0 0 5px; left: -15px; } .ear:last-of-type { border-radius: 0 5px 5px 0; right: -15px; } .eyes { display: flex; justify-content: center; padding-top: 25px; column-gap: 20px; } .eye { background-color: var(--eye-bg); border: 5px solid var(--eye-bdr-clr); border-radius: 50%; height: 30px; width: 30px; } .nose { border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 30px solid var(--nose-bg); height: 0; width: 0; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .mouth { background-color: var(--mouth-bg); border: 1px solid var(--mouth-bdr-clr); border-radius: 20px; display: flex; justify-content: space-around; height: 25px; width: 100px; position: absolute; left: 50%; bottom: 25px; transform: translateX(-50%); overflow: hidden; } .tooth { background-color: var(--tooth-bg); height: 25px; width: 5px; }