mirror of
https://github.com/iancoleman/shamir.git
synced 2025-11-18 00:50:59 +00:00
feat: Add tailwind configuration and npm build script
This commit is contained in:
parent
0314d0060b
commit
ec5e7a1bbc
5 changed files with 1432 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
node_modules/
|
||||||
1379
package-lock.json
generated
Normal file
1379
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
9
package.json
Normal file
9
package.json
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"scripts": {
|
||||||
|
"tailwind dev": "npx tailwindcss -i ./src/css/app_src.css -o ./src/css/app.css --watch",
|
||||||
|
"build": "npx tailwindcss -i ./src/css/app_src.css -o ./src/css/app.css && python compile.py"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"tailwindcss": "^3.4.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
34
src/css/app_src.css
Normal file
34
src/css/app_src.css
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
/* @tailwind base; */
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
|
||||||
|
input[type="number"] {
|
||||||
|
display: inline-block;
|
||||||
|
width: 70px;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: inherit;
|
||||||
|
background: inherit;
|
||||||
|
border: inherit;
|
||||||
|
word-break: inherit;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.generated {
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.part {
|
||||||
|
padding: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.part:nth-of-type(2n + 1) {
|
||||||
|
background-color: #f4f4f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.part:nth-of-type(2n + 0) {
|
||||||
|
background-color: #e9e8e6;
|
||||||
|
}
|
||||||
9
tailwind.config.js
Normal file
9
tailwind.config.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
module.exports = {
|
||||||
|
prefix: "tw-",
|
||||||
|
content: ["./src/**/*.{html,js}"],
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
};
|
||||||
Loading…
Add table
Reference in a new issue