mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
refactor: migrate Font Awesome to npm package
- Remove Font Awesome files from public/assets and update .gitignore - Switch from CDN to local npm package for Font Awesome - Update BaseLayout.astro to use Font Awesome from node_modules - Add specific gitignore patterns for vendor files - Keep public/assets directory structure for future custom assets This change improves the project by: 1. Using proper dependency management through npm 2. Reducing external dependencies on CDN 3. Maintaining cleaner source control 4. Following best practices for vendor file management
This commit is contained in:
@@ -25,7 +25,10 @@ const { title } = Astro.props;
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
<link rel="stylesheet" href="/src/styles/radix-ui.css" />
|
||||
<link rel="stylesheet" href="/assets/fontawesome/css/all.min.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="/node_modules/@fortawesome/fontawesome-free/css/all.min.css"
|
||||
/>
|
||||
<link rel="stylesheet" href="/src/styles/global.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -417,6 +417,18 @@ tbody tr:hover {
|
||||
|
||||
.button-icon {
|
||||
flex-shrink: 0;
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
font-size: 1rem;
|
||||
vertical-align: middle;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.action-btn .fa-solid {
|
||||
display: inline-block !important;
|
||||
font-family: "Font Awesome 6 Free", sans-serif !important;
|
||||
font-weight: 900 !important;
|
||||
}
|
||||
|
||||
.edit-btn {
|
||||
@@ -638,3 +650,12 @@ tbody tr:hover {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
}
|
||||
|
||||
/* Adding explicit styles for each icon */
|
||||
.fa-pen-to-square::before {
|
||||
content: "\f14b";
|
||||
}
|
||||
|
||||
.fa-trash-can::before {
|
||||
content: "\f2ed";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user