Skip to content

Commit 5432d22

Browse files
committed
Plan to Change Ui Icon FromFont Awesome Icon To Svg
1 parent ce73315 commit 5432d22

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
11
# Code Fry Dev (CFD)
22

33
## Build Using HUGO
4+
5+
6+
> Plan to replace font awesome icom with svg
7+
- Chages will be in two file
8+
9+
```html
10+
<button class="neumorphic hapticButton">
11+
<!-- <i class="{{ .icon }}"></i> -->
12+
<svg class="icon" viewBox="0 0 24 24" aria-hidden="true">
13+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48…Z"/>
14+
</svg>
15+
<span>Dashboard</span>
16+
</button>
17+
```
18+
19+
- Css Changes
20+
21+
```css
22+
/* replace > i with > .icon */
23+
button.neumorphic > .icon {
24+
width: 31cqi;
25+
height: 31cqi;
26+
fill: currentColor;
27+
display: block;
28+
}
29+
30+
/* active state—you had > i { font-size:28cqi } */
31+
button.neumorphic:active > .icon,
32+
button.neumorphic.active > .icon {
33+
width: 28cqi;
34+
height: 28cqi;
35+
}
36+
37+
/* text stays same */
38+
button.neumorphic > span { /* …unchanged… */ }
39+
```

0 commit comments

Comments
 (0)