Skip to content

Commit 6b23ea7

Browse files
committed
refactor: move @apply rules to html
1 parent 51cb3c3 commit 6b23ea7

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/Web/main.entrypoint.css

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,7 @@
6868
}
6969

7070
@layer base {
71-
html {
72-
@apply scroll-smooth;
73-
}
74-
75-
body {
76-
@apply antialiased font-sans text-(--ui-text) bg-(--ui-bg) scheme-light dark:scheme-dark !overflow-visible !pr-0;
77-
}
78-
:root,
79-
.light {
71+
:root, .light {
8072
--ui-header-height: --spacing(18);
8173

8274
@media (width > 40rem) {

src/Web/x-base.view.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html lang="en" class="h-dvh flex flex-col">
1+
<html lang="en" class="h-dvh flex flex-col scroll-smooth">
22
<head>
33
<title :if="isset($fullTitle)">{{ $fullTitle }}</title>
44
<title :elseif="isset($title)">{{ $title }} — Tempest</title>
@@ -52,7 +52,7 @@ function toggleDarkMode() {
5252

5353
<x-slot name="head"/>
5454
</head>
55-
<body :class="trim($bodyClass ?? '')" class="relative antialiased flex flex-col grow selection:bg-(--ui-primary)/20 selection:text-(--ui-primary)">
55+
<body :class="trim($bodyClass ?? '')" class="relative antialiased flex flex-col grow selection:bg-(--ui-primary)/20 selection:text-(--ui-primary) font-sans text-(--ui-text) bg-(--ui-bg) scheme-light dark:scheme-dark !overflow-visible !pr-0">
5656
<div class="absolute pointer-events-none inset-0 bg-repeat" style="background-image: url(/noise.svg)">
5757
<div id="command-palette"></div>
5858
</div>

0 commit comments

Comments
 (0)