feat: Update import paths for app.scss and variables.scss
This commit is contained in:
parent
02f0f318eb
commit
f5cec3dd22
|
@ -1,4 +1,4 @@
|
||||||
@import 'variables.scss';
|
@import '../variables.scss';
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'ZenKakuGothicNew-Regular';
|
font-family: 'ZenKakuGothicNew-Regular';
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import '../app.scss';
|
import '$lib/app.scss';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<slot />
|
<slot />
|
|
@ -29,11 +29,11 @@ export const load: PageServerLoad = async ({ params }) => {
|
||||||
title: row.title,
|
title: row.title,
|
||||||
image: row.image,
|
image: row.image,
|
||||||
date: row.updated_at.toISOString().slice(0, 10),
|
date: row.updated_at.toISOString().slice(0, 10),
|
||||||
link: `/post/${row.category}/${row.id}`,
|
link: `/article/${row.category}/${row.id}`,
|
||||||
tags: row.tags,
|
tags: row.tags,
|
||||||
}));
|
}));
|
||||||
const tags = await db.query("SELECT * FROM tag ORDER BY ref_count DESC");
|
const tags = await db.query("SELECT * FROM tag ORDER BY ref_count DESC LIMIT 20");
|
||||||
data.tags = tags.rows.map((row) => row.name + ":" + row.ref_count);
|
data.tags = tags.rows.map((row) => row.name);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await db.rollback();
|
await db.rollback();
|
||||||
throw error(500, e as Error);
|
throw error(500, e as Error);
|
||||||
|
|
|
@ -306,10 +306,15 @@
|
||||||
.tags {
|
.tags {
|
||||||
ul {
|
ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: left;
|
||||||
|
flex-direction: row;
|
||||||
gap: 3px;
|
gap: 3px;
|
||||||
li {
|
li {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
padding: 3px 5px;
|
padding: 3px 5px;
|
||||||
|
border: 1px solid var(--line-primary);
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
5
src/routes/article/+layout.svelte
Normal file
5
src/routes/article/+layout.svelte
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<script>
|
||||||
|
import '$lib/app.scss';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<slot />
|
|
@ -1,5 +0,0 @@
|
||||||
<script>
|
|
||||||
import '../app.scss';
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<slot />
|
|
|
@ -1,5 +1,6 @@
|
||||||
:root {
|
:root {
|
||||||
--background-primary: #343434;
|
--background-primary: #1b1b1b;
|
||||||
--line-primary: rgba(255, 255, 255, 0.1);
|
--line-primary: rgba(255, 255, 255, 0.2);
|
||||||
|
--line-secondary: rgba(255, 255, 255, 0.1);
|
||||||
--highlight-primary: rgba(255, 115, 0, 0.2);
|
--highlight-primary: rgba(255, 115, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user