migrate css from bootstrap to tailwind

This commit is contained in:
Gottfried Mayer 2023-04-27 20:05:40 +00:00
parent 25d9a44dc3
commit 14b4a45cb6
8 changed files with 1238 additions and 33 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
inc/config.php
*.cache
/hybrid
/angular-hybrid
/angular-hybrid
/test_src/node_modules

File diff suppressed because one or more lines are too long

1
test/output.css Normal file

File diff suppressed because one or more lines are too long

1144
test_src/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

11
test_src/package.json Normal file
View File

@ -0,0 +1,11 @@
{
"devDependencies": {
"autoprefixer": "^10.4.14",
"postcss": "^8.4.23",
"tailwindcss": "^3.3.2"
},
"scripts": {
"build": "npx tailwindcss build -i ./src/main.css -o ../test/output.css",
"buildprod": "npx tailwindcss build -i ./src/main.css -o ../test/output.css --minify"
}
}

View File

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}

4
test_src/src/main.css Normal file
View File

@ -0,0 +1,4 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -0,0 +1,15 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["../test/*.{htm,html,js}"],
theme: {
extend: {
fontFamily: {
'opensans': ['Open Sans', 'sans-serif']
}
},
},
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
}