Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tailwind): delete group class and update readme #129

Merged
merged 2 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions packages/tailwind-formio/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ module.exports = {
}
```

Or:

```diff
export default {
plugins: {
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
}
```

### Configure tailwind

Generate the initial `tailwind.config.js` with the following command:
Expand Down Expand Up @@ -214,6 +226,11 @@ module.exports = {
2: "2 2 0%",
3: "3 3 0%"
}
},
outline: {
none: ["2px solid transparent", "2px"],
white: ["2px dotted white", "2px"],
black: ["2px dotted black", "2px"]
}
},
variants: {
Expand Down
4 changes: 2 additions & 2 deletions packages/tailwind-formio/styles/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

&-link {
@apply relative group inline-flex flex-col items-stretch overflow-hidden text-xs transition-colors;
@apply relative inline-flex flex-col items-stretch overflow-hidden text-xs transition-colors;
@apply bg-transparent border-transparent text-gray-darker;
@apply cursor-pointer border-1 border-solid rounded-none border-b-0 relative;
@apply px-3 py-2;
Expand All @@ -39,4 +39,4 @@
.card-body {
@apply p-3;
}
}
}
6 changes: 6 additions & 0 deletions packages/tailwind/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ Object.assign(exports, {
none: "none",
2: "2 2 0%",
3: "3 3 0%"
},

outline: {
none: ["2px solid transparent", "2px"],
white: ["2px dotted white", "2px"],
black: ["2px dotted black", "2px"]
}
},

Expand Down