Skip to content

Commit

Permalink
jiasf
Browse files Browse the repository at this point in the history
  • Loading branch information
lenchq committed Oct 21, 2023
1 parent 4a7c58e commit 2656a4e
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 64 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.30.0",
"postcss-nesting": "^12.0.1",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^4.0.5",
Expand Down
16 changes: 7 additions & 9 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import tailwind from 'tailwindcss'
import tailwindConfig from './tailwind.config.js'
import autoprefixer from 'autoprefixer'

export default {
plugins: [
tailwind(tailwindConfig),
autoprefixer,
],
}
plugins: {
'postcss-import': {},
'tailwindcss/nesting': 'postcss-nesting',
tailwindcss: {},
autoprefixer: {},
}
}
7 changes: 5 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
>
<span class="bar" />
</div>
<div class="bg-red font-extrabold text-red-700">
dsadas
</div>
</div>
{$page.route.id}
<slot />
Expand All @@ -42,7 +45,7 @@
@apply h-px w-[84px] bg-black place-self-center place-content-end;
}
.nav-link {
@apply text-gray px-5 py-4 h-fit hover:text-black;
@apply text-pale-black font-bold px-5 py-4 h-fit hover:text-black;
&[data-active="true"] + .bar {
@apply h-px w-[84px] bg-black place-self-center place-content-end;
Expand All @@ -54,6 +57,6 @@
}
.topbar {
@apply h-fit border-b border-gray flex gap-x-10;
@apply h-fit border-b flex gap-x-10 bg-[#D4DBE6];
}
</style>
3 changes: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/** @type {import('tailwindcss').Config} */
export default {
ontent: ["./src/**/*.{html,js,svelte,ts}"],
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {
colors: {
gray: "#D4DBE6",
black: "#060606",
"pale-black": "#A7A7A7",
"slate": "#D4DBE6",
},
},
},
Expand Down
Loading

0 comments on commit 2656a4e

Please sign in to comment.