mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-12-15 03:25:31 +00:00
Upgrade to tailwind v4
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -30,7 +30,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-full" hx-ext="response-targets" hx-boost="true">
|
<body class="w-full" hx-ext="response-targets" hx-boost="true">
|
||||||
<div class="container flex flex-col min-h-screen max-w-screen-2xl mx-auto">
|
<div class="container flex flex-col min-h-screen max-w-(--breakpoint-2xl) mx-auto">
|
||||||
<header>
|
<header>
|
||||||
{{ block "_header" . }}
|
{{ block "_header" . }}
|
||||||
<!-- Default app header... -->
|
<!-- Default app header... -->
|
||||||
|
|||||||
1628
views/package-lock.json
generated
1628
views/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -6,8 +6,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"tailwind": "tailwindcss -i transform/site.css -o assets/style.css",
|
"tailwind": "tailwindcss -i transform/site.css -o assets/style.css",
|
||||||
"css": "postcss transform/site.css -o assets/style.css",
|
"css": "postcss transform/site.css -o assets/style.css",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -22,12 +22,12 @@
|
|||||||
"author": "Simon Martens",
|
"author": "Simon Martens",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^10.4.20",
|
"@tailwindcss/postcss": "^4.0.0",
|
||||||
"postcss": "^8.4.47",
|
"postcss": "^8.4.47",
|
||||||
|
"postcss-cli": "^11.0.0",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"prettier-plugin-go-template": "^0.0.15",
|
"prettier-plugin-go-template": "^0.0.15",
|
||||||
"tailwindcss": "^3.4.13",
|
"tailwindcss": "^4.0.0",
|
||||||
"vite": "^6.0.0",
|
"vite": "^6.0.0"
|
||||||
"postcss-cli": "^11.0.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
export default {
|
export default {
|
||||||
plugins: {
|
plugins: {
|
||||||
"postcss-import": {},
|
'@tailwindcss/postcss': {},
|
||||||
"tailwindcss/nesting": {},
|
|
||||||
tailwindcss: {},
|
|
||||||
autoprefixer: {},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
{{ range $issue := $month }}
|
{{ range $issue := $month }}
|
||||||
<div class="col-span-1 bg-slate-100 px-2 py-1.5">
|
<div class="col-span-1 bg-slate-100 px-2 py-1.5">
|
||||||
{{ $date := $issue.Datum.When }}
|
{{ $date := $issue.Datum.When }}
|
||||||
<a class="!no-underline" href="/{{ $y }}/{{ $issue.Number.No }}">
|
<a class="no-underline!" href="/{{ $y }}/{{ $issue.Number.No }}">
|
||||||
<div class="">
|
<div class="">
|
||||||
{{ $issue.Number.No }}
|
{{ $issue.Number.No }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="flex gap-x-2 flex-row">
|
<div class="flex gap-x-2 flex-row">
|
||||||
<a href="/akteure/{{ $a.ID }}" class="!no-underline"><i class="ri-links-line"></i></a>
|
<a href="/akteure/{{ $a.ID }}" class="no-underline!"><i class="ri-links-line"></i></a>
|
||||||
|
|
||||||
{{- if ne $gnd nil -}}
|
{{- if ne $gnd nil -}}
|
||||||
<a href="{{ $a.GND }}" target="_blank">GND →</a>
|
<a href="{{ $a.GND }}" target="_blank">GND →</a>
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
|
||||||
export default {
|
|
||||||
content: [
|
|
||||||
"./routes/**/*.{html,js,svelte,ts,tmpl,gotmpl,gohtml}",
|
|
||||||
"./layouts/**/*.{html,js,svelte,ts,tmpl,gotmpl,gohtml}",
|
|
||||||
"./transform/**/*.{html,js,svelte,ts,tmpl,gotmpl,gohtml}",
|
|
||||||
"./public/**/*.{html,js,svelte,ts,tmpl,gotmpl,gohtml,xsl}",
|
|
||||||
],
|
|
||||||
theme: {
|
|
||||||
extend: {
|
|
||||||
fontFamily: {
|
|
||||||
script: ["Rancho", "ui-serif"],
|
|
||||||
sans: ['"Source Sans 3"', '"Merriweather Sans"', "ui-sans-serif"],
|
|
||||||
serif: ['"Merriweather"', "ui-serif"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [],
|
|
||||||
};
|
|
||||||
@@ -1,6 +1,32 @@
|
|||||||
@tailwind base;
|
@import 'tailwindcss';
|
||||||
@tailwind components;
|
|
||||||
@tailwind utilities;
|
@theme {
|
||||||
|
--font-script: Rancho, ui-serif;
|
||||||
|
--font-sans: 'Source Sans 3', 'Merriweather Sans', ui-sans-serif;
|
||||||
|
--font-serif: 'Merriweather', ui-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
||||||
|
so we've added these compatibility styles to make sure everything still
|
||||||
|
looks the same as it did with Tailwind CSS v3.
|
||||||
|
|
||||||
|
If we ever want to remove these styles, we need to add an explicit border
|
||||||
|
color utility to any element that depends on these defaults.
|
||||||
|
*/
|
||||||
|
@layer base {
|
||||||
|
*,
|
||||||
|
::after,
|
||||||
|
::before,
|
||||||
|
::backdrop,
|
||||||
|
::file-selector-button {
|
||||||
|
border-color: var(--color-gray-200, currentColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility font-variant-small-caps {
|
||||||
|
font-variant-caps: small-caps;
|
||||||
|
}
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
}
|
}
|
||||||
@@ -34,14 +60,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
a[aria-current="page"] {
|
a[aria-current="page"] {
|
||||||
@apply !text-red-500;
|
@apply text-red-500!;
|
||||||
}
|
|
||||||
|
|
||||||
.font-variant-small-caps {
|
|
||||||
font-variant-caps: small-caps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
@apply flex-grow shrink-0;
|
@apply grow shrink-0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user