-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnerdfonts.css
56 lines (44 loc) · 1.28 KB
/
nerdfonts.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* Nerd Font */
/* nerdfont.com */
/* nerdfont.com/cheatsheet */
@import "https://cdn.jsdelivr.net/gh/ryanoasis/[email protected]/css/nerd-fonts-generated.min.css";
/*
iconYouWantGoesHere = class from cheatsheet linked above
<span class='icon'>
<i class='nf-iconYouWantGoesHere'>
</span>
*/
@font-face {
font-family: 'NerdFontsSymbols Nerd Font';
/* @TODO you need to adjust the path to the font: */
src: url('https://cdn.jsdelivr.net/gh/ryanoasis/[email protected]/patched-fonts/NerdFontsSymbolsOnly/complete/Symbols-2048-em%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
.icon {
aspect-ratio: 1 / 1;
/* padding: 0.25rem; */
display: inline-flex;
align-items: center;
justify-content: center;
color: currentColor;
}
:is(i, a)[class^="nf-"] {
font-family: 'NerdFontsSymbols Nerd Font';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering (from devicons, et al) */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transition: all 0.15s ease-in-out;
color: currentColor;
}
a[class^="nf-"] {
text-decoration: none;
color: var(--color);
cursor: pointer;
}