Created
September 7, 2022 07:01
-
-
Save VihangaN/7bab63f28a5fe2b75b8d48234f7e5db7 to your computer and use it in GitHub Desktop.
css source code for the hashnode duotone article
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
@font-face { | |
font-family: "duotone"; | |
src: url("duotone-Regular.ttf") format("truetype"), | |
url("duotone-Regular.woff") format("woff"); | |
font-weight: normal; | |
font-style: normal; | |
font-display: block; | |
} | |
[class^="icon-"], | |
[class*=" icon-"] { | |
font-family: "duotone" !important; | |
font-style: normal; | |
font-weight: normal; | |
font-variant: normal; | |
text-transform: none; | |
line-height: 1; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
/* Calender */ | |
.icon-calender { | |
color: var(--primary); | |
} | |
.icon-calender::before { | |
content: "\E000"; | |
opacity: 0.4; | |
color: var(--secondary); | |
position: absolute; | |
} | |
.icon-calender::after { | |
content: "\E001"; | |
} | |
/* Note */ | |
.icon-note { | |
color: var(--primary); | |
} | |
.icon-note::before { | |
content: "\E002"; | |
opacity: 0.4; | |
color: var(--secondary); | |
position: absolute; | |
} | |
.icon-note::after { | |
content: "\E003"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment