Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Enable the 'apply complex classes' feature #236

Merged
merged 2 commits into from
Sep 16, 2020
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
4 changes: 0 additions & 4 deletions web/themes/custom/opdavies/assets/css/components/button.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
@apply py-2 px-3 inline-block border border-blue-600;
@apply text-sm text-white no-underline bg-blue-600 rounded;

&:focus {
@apply py-2 px-3 m-0
}

&:active,
&:focus,
&:hover {
Expand Down
6 changes: 1 addition & 5 deletions web/themes/custom/opdavies/assets/css/components/note.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
}

p a {
@apply text-black underline;

&:hover {
@apply no-underline
}
@apply text-black underline hover:no-underline
}
}
6 changes: 1 addition & 5 deletions web/themes/custom/opdavies/assets/css/custom-base.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ img {
}

a {
@apply text-blue-700 no-underline;

&:hover {
@apply underline
}
@apply text-blue-700 no-underline hover:underline
}

blockquote {
Expand Down
3 changes: 3 additions & 0 deletions web/themes/custom/opdavies/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,8 @@ module.exports = {
borderStyle: [...variants.borderStyle, 'hover', 'focus'],
borderWidth: [...variants.borderWidth, 'hover', 'focus'],
margin: [...variants.margin, 'first', 'last', 'odd', 'even'],
},
experimental: {
applyComplexClasses: true
}
}