Skip to content

Commit 82b98d7

Browse files
import custom.css into the "components" layer
fixing specificity problem with button paddings (among others)
1 parent 04c641c commit 82b98d7

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

assets/css/custom.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,3 @@ textarea:read-only {
160160
margin-top: -96px;
161161
visibility: hidden;
162162
}
163-
164-
/* see https://alpinejs.dev/directives/cloak */
165-
[x-cloak] {
166-
display: none !important;
167-
}

assets/css/main.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
@import 'tailwindcss';
2-
@import './custom.css';
32
@import './fonts.css';
3+
4+
@layer components {
5+
@import './custom.css';
6+
}
7+
48
@import '@skymatic/fontawesome-pro/css/all' layer(components);
59

610
@plugin '@tailwindcss/forms';
@@ -165,6 +169,11 @@
165169
padding-inline: 1rem;
166170
}
167171

172+
/* see https://alpinejs.dev/directives/cloak */
173+
[x-cloak] {
174+
display: none;
175+
}
176+
168177
/*
169178
The default border color has changed to `currentColor` in Tailwind CSS v4,
170179
so we've added these compatibility styles to make sure everything still

0 commit comments

Comments
 (0)