Skip to content

Instantly share code, notes, and snippets.

@samuelcdias
Last active March 28, 2024 12:22
Show Gist options
  • Save samuelcdias/5ba06cdd329c21dd9af24776ec776091 to your computer and use it in GitHub Desktop.
Save samuelcdias/5ba06cdd329c21dd9af24776ec776091 to your computer and use it in GitHub Desktop.
Svg
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Typeface</title>
<meta name="description" content="Typeface example">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<style>
@font-face {
font-family: "Nome inédito para minha fonte de ícones";
src: url('fonts/nipmfdi.eot?c5o7ll');
src: url('fonts/nipmfdi.eot?c5o7ll#iefix') format('embedded-opentype'),
url('fonts/nipmfdi.ttf?c5o7ll') format('truetype'),
url('fonts/nipmfdi.woff?c5o7ll') format('woff'),
url('fonts/nipmfdi.svg?c5o7ll#nipmfdi') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: "Nome inédito para minha fonte de ícones" !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-elf{
font-size: 32px;
position: relative;
}
.icon-elf *:before{
position: absolute;
top: 0;
left: 0;
}
.icon-elf .face:before {
content: "\e900";
color: rgb(229, 205, 194);
}
.icon-elf .t-shirt:before {
content: "\e901";
color: rgb(20, 83, 105);
}
.icon-elf .hair:before {
content: "\e902";
color: rgb(141, 74, 67);
}
.icon-elf .outline:before {
content: "\e903";
color: rgb(0, 0, 0);
}
</style>
<span class="icon-elf">
<span class="face"></span>
<span class="t-shirt"></span>
<span class="hair"></span>
<span class="outline"></span>
</span>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment