Skip to content

Commit 2d63b68

Browse files
committed
use tailwind layer and apply directives
1 parent b9781e8 commit 2d63b68

File tree

1 file changed

+30
-33
lines changed

1 file changed

+30
-33
lines changed

src/app.css

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,34 @@
1212
src: url('/fonts/Roboto_Mono/RobotoMono-VariableFont_wght.ttf') format('truetype');
1313
}
1414

15-
html {
16-
font-family: Roboto, sans-serif;
17-
font-size: 16px;
18-
color: #6e7493;
19-
}
20-
21-
.press-start {
22-
font-family: PressStart, sans-serif;
23-
}
24-
25-
::selection {
26-
background-color: #5a7fff;
27-
color: #d9e7fa;
28-
}
29-
30-
.center-fixed {
31-
position: fixed;
32-
top: 50%;
33-
left: 50%;
34-
-moz-transform: translateX(-50%) translateY(-50%);
35-
-webkit-transform: translateX(-50%) translateY(-50%);
36-
transform: translateX(-50%) translateY(-50%);
37-
}
38-
39-
/* Hide scrollbar for Chrome, Safari and Opera */
40-
.hide-scroll::-webkit-scrollbar {
41-
display: none;
42-
}
43-
44-
/* Hide scrollbar for IE, Edge and Firefox */
45-
.hide-scroll {
46-
-ms-overflow-style: none; /* IE and Edge */
47-
scrollbar-width: none; /* Firefox */
15+
@layer base {
16+
html {
17+
font-family: Roboto, sans-serif;
18+
@apply text-base text-body;
19+
}
20+
21+
::selection {
22+
@apply bg-button text-header;
23+
}
24+
}
25+
26+
@layer utilities {
27+
.press-start {
28+
font-family: PressStart, sans-serif;
29+
}
30+
31+
.center-fixed {
32+
@apply fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2;
33+
}
34+
35+
/* Hide scrollbar for Chrome, Safari and Opera */
36+
.hide-scroll::-webkit-scrollbar {
37+
@apply hidden;
38+
}
39+
40+
/* Hide scrollbar for IE, Edge and Firefox */
41+
.hide-scroll {
42+
-ms-overflow-style: none; /* IE and Edge */
43+
scrollbar-width: none; /* Firefox */
44+
}
4845
}

0 commit comments

Comments
 (0)