File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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 : 31 cqi;
25+ height : 31 cqi;
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 : 28 cqi;
34+ height : 28 cqi;
35+ }
36+
37+ /* text stays same */
38+ button .neumorphic > span { /* …unchanged… */ }
39+ ```
You can’t perform that action at this time.
0 commit comments