Skip to content

Commit a6bc8c2

Browse files
authored
fix format
1 parent ad66017 commit a6bc8c2

File tree

6 files changed

+47
-45
lines changed

6 files changed

+47
-45
lines changed

apps/site/.stylelintrc.mjs

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ const CUSTOM_AT_RULES = [
44
'apply',
55
'layer',
66
'responsive',
7+
'reference',
8+
'utility',
9+
'theme',
10+
'custom-variant',
711
'screen',
812
'tailwind',
913
'variants',
@@ -42,8 +46,6 @@ export default {
4246
// Adopts the import notation from `postcss-import`
4347
'import-notation': 'string',
4448
// Allow the `@apply` at rule as its part of Tailwind
45-
'at-rule-no-deprecated': [true, { ignoreAtRules: ['apply'] }],
46-
'at-rule-no-unknown': null,
47-
'function-no-unknown': null,
49+
'at-rule-no-deprecated': [true, { ignoreAtRules: CUSTOM_AT_RULES }],
4850
},
4951
};

apps/site/components/Common/Button/index.module.css

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@reference "../../../styles/index.css";
22

33
.button {
4-
@apply px-4.5
5-
relative
4+
@apply relative
65
inline-flex
76
items-center
87
justify-center
98
gap-2
9+
px-4.5
1010
py-2.5
1111
text-center
1212
font-semibold
@@ -47,12 +47,12 @@
4747
}
4848

4949
&.primary {
50-
@apply shadow-xs
51-
rounded-sm
50+
@apply rounded-sm
5251
border
5352
border-green-600
5453
bg-green-600
55-
text-white;
54+
text-white
55+
shadow-xs;
5656

5757
&:hover:not([aria-disabled='true']) {
5858
@apply border-green-700
@@ -97,13 +97,13 @@
9797
}
9898

9999
&.special {
100-
@apply shadow-xs
101-
before:bg-gradient-glow-backdrop
100+
@apply before:bg-gradient-glow-backdrop
102101
rounded-lg
103102
border
104103
border-green-600/30
105104
bg-green-600/10
106105
text-white
106+
shadow-xs
107107
after:bg-gradient-to-r
108108
after:from-green-600/0
109109
after:via-green-600
@@ -112,9 +112,9 @@
112112

113113
&::before {
114114
@apply absolute
115-
left-0
116-
right-0
117115
top-0
116+
right-0
117+
left-0
118118
-z-10
119119
mx-auto
120120
h-full
@@ -126,8 +126,8 @@
126126
&::after {
127127
@apply absolute
128128
-top-px
129-
left-0
130129
right-0
130+
left-0
131131
mx-auto
132132
h-px
133133
w-2/5;

apps/site/components/Common/GlowingBackdrop/index.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
.glowingBackdrop {
44
@apply absolute
5-
left-0
65
top-0
6+
left-0
77
-z-10
88
size-full
99
opacity-50
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@reference "../../../styles/index.css";
22

33
.root {
4-
@apply @container/preview
5-
after:bg-gradient-radial
4+
@apply after:bg-gradient-radial
5+
@container/preview
66
relative
77
flex
88
aspect-[1.90/1]
@@ -13,15 +13,15 @@
1313
bg-neutral-950;
1414

1515
&::after {
16-
@apply @md/preview:blur-3xl
17-
absolute
16+
@apply absolute
1817
inset-0
1918
m-auto
2019
aspect-square
2120
w-1/3
2221
rounded-full
2322
blur-2xl
24-
content-[''];
23+
content-['']
24+
@md/preview:blur-3xl;
2525
}
2626

2727
&.announcements {
@@ -37,15 +37,7 @@
3737
}
3838

3939
.container {
40-
@apply @sm/preview:text-base
41-
@md/preview:gap-6
42-
@md/preview:text-lg
43-
@lg/preview:gap-8
44-
@lg/preview:text-xl
45-
@xl/preview:gap-12
46-
@xl/preview:text-2xl
47-
@2xl/preview:text-3xl
48-
z-10
40+
@apply z-10
4941
mx-auto
5042
flex
5143
w-2/3
@@ -55,29 +47,37 @@
5547
text-center
5648
text-xs
5749
font-semibold
58-
text-white;
50+
text-white
51+
@sm/preview:text-base
52+
@md/preview:gap-6
53+
@md/preview:text-lg
54+
@lg/preview:gap-8
55+
@lg/preview:text-xl
56+
@xl/preview:gap-12
57+
@xl/preview:text-2xl
58+
@2xl/preview:text-3xl;
5959

6060
.hexagon {
61-
@apply @md/preview:h-3/5
61+
@apply absolute
62+
inset-0
63+
m-auto
64+
size-full
65+
@md/preview:h-3/5
6266
@md/preview:w-3/5
6367
@lg/preview:h-2/3
6468
@lg/preview:w-2/3
6569
@xl/preview:h-3/5
6670
@xl/preview:w-3/5
6771
@2xl/preview:h-2/3
68-
@2xl/preview:w-2/3
69-
absolute
70-
inset-0
71-
m-auto
72-
size-full;
72+
@2xl/preview:w-2/3;
7373
}
7474

7575
.logo {
76-
@apply @md/preview:size-14
76+
@apply mx-auto
77+
size-6
78+
@md/preview:size-14
7779
@lg/preview:size-16
78-
@xl/preview:size-20
79-
mx-auto
80-
size-6;
80+
@xl/preview:size-20;
8181
}
8282
}
8383
}

apps/site/components/Common/ProgressionSidebar/ProgressionSidebarGroup/index.module.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
&::after {
2222
@apply absolute
23-
left-[0.45rem]
2423
top-0
24+
left-[0.45rem]
2525
z-10
2626
h-full
2727
w-px
@@ -45,8 +45,8 @@
4545

4646
&:last-child::after {
4747
@apply absolute
48-
left-0
4948
top-[calc(50%+0.25rem)]
49+
left-0
5050
h-20
5151
w-4
5252
content-[''];

apps/site/styles/effects.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@
2727

2828
&::after {
2929
@apply absolute
30-
-left-full
3130
top-[20%]
31+
-left-full
3232
-z-10
3333
block
3434
h-36
3535
w-36
3636
-rotate-90
37-
select-none
3837
bg-[url('/static/images/smoke.gif')]
3938
opacity-[0.15]
4039
content-['']
41-
md:-left-1/2
42-
md:top-1/2;
40+
select-none
41+
md:top-1/2
42+
md:-left-1/2;
4343
}
4444
}

0 commit comments

Comments
 (0)