-
-
Save yochannah/5e14f9beb8d3812d448f5bb1fa651fca to your computer and use it in GitHub Desktop.
Add a jaunty cheese-hat to any 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
div.file-header::before { | |
width: 4em; | |
top: -40px; | |
height: 4em; | |
transform-origin: 50% 50%; | |
transform: rotate(-29deg); | |
position: relative; | |
z-index: 10000000; | |
content: url("data:image/svg+xml;utf8,<svg height='100%' viewBox='-8 -8 16 16' width='100%' xmlns='http://www.w3.org/2000/svg'><g><rect fill='white' height='5' stroke-width='0.25' stroke='black' transform='rotate(45) translate(8,8)' width='5' x='-10.5' y='-10.5'></rect><rect fill='white' height='5' stroke-width='0.25' stroke='black' width='15' x='-7.5' y='0'></rect><text font-family='monospace' font-size='2.5' x='-5' y='3.25'>CHEESE</text></g></svg>"); | |
opacity: 0.8; | |
left: -40px; | |
div.file-header::before { | |
width: 4em; | |
top: -40px; | |
height: 4em; | |
transform-origin: 50% 50%; | |
transform: rotate(-29deg); | |
position: relative; | |
z-index: 10000000; | |
content: url("data:image/svg+xml;utf8,<svg height='100%' viewBox='-8 -8 16 16' width='100%' xmlns='http://www.w3.org/2000/svg'><g><rect fill='white' height='5' stroke-width='0.25' stroke='black' transform='rotate(45) translate(8,8)' width='5' x='-10.5' y='-10.5'></rect><rect fill='white' height='5' stroke-width='0.25' stroke='black' width='15' x='-7.5' y='0'></rect><text font-family='monospace' font-size='2.5' x='-5' y='3.25'>CHEESE</text></g></svg>"); | |
opacity: 0.8; | |
left: -40px; | |
margin-bottom:-4em; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment