Skip to content

Commit c9ae0b5

Browse files
committed
update text styling
1 parent 57071e1 commit c9ae0b5

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

resources/css/content.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
@layer components {
33
.content {
44
> :where(h1) {
5-
@apply mt-6 border-b pb-2 text-3xl font-semibold tracking-tight;
5+
@apply mb-3 text-xl font-semibold tracking-tight border-b pb-0.5;
66
}
77
> :where(h2) {
8-
@apply mt-6 text-2xl font-semibold tracking-tight;
8+
@apply mb-2 text-lg font-semibold tracking-tight;
99
}
1010
> :where(h3) {
11-
@apply mt-4 text-xl font-semibold tracking-tight;
11+
@apply mb-1.5 text-sm font-semibold tracking-tight;
1212
}
1313
> :where(h4, h5, h6) {
14-
@apply mt-4 font-semibold;
14+
@apply mb-1 font-semibold;
1515
}
1616
> :where(p) {
17-
@apply mt-4;
17+
@apply mb-4;
1818
}
1919
> :where(ul) {
20-
@apply mt-4 ml-6 list-disc [&>li]:mt-2;
20+
@apply mb-4 ml-6 list-disc [&>li]:mt-2;
2121
}
2222
> :where(ol) {
23-
@apply mt-4 ml-6 list-decimal [&>li]:mt-2;
23+
@apply mb-4 ml-6 list-decimal [&>li]:mt-2;
2424
}
2525
> :where(blockquote) {
26-
@apply mt-4 relative flow-root pl-4 border-l-2 before:block before:-mt-0.5;
26+
@apply mb-4 relative flow-root pl-4 border-l-2 before:block before:-mt-0.5;
2727
> :where(p,ul,ol) {
2828
@apply mt-2;
2929
}
@@ -35,7 +35,7 @@
3535
}
3636
}
3737
> :where(table) {
38-
@apply mt-4 w-full;
38+
@apply mb-4 w-full;
3939
:where(tr) {
4040
@apply m-0 border-t p-0 even:bg-muted;
4141
}
@@ -50,13 +50,13 @@
5050
@apply rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm;
5151
}
5252
> :where(pre) {
53-
@apply mt-4 !whitespace-pre overflow-x-auto;
53+
@apply mb-4 !whitespace-pre overflow-x-auto;
5454
> :where(code) {
5555
@apply block py-2 px-4 bg-muted rounded-md [font-size:inherit];
5656
}
5757
}
5858
> :where(hr) {
59-
@apply mt-4;
59+
@apply mb-4;
6060
}
6161
:where(a:not([style],[class])) {
6262
@apply relative p-1.5 -m-1.5 text-primary underline underline-offset-4 decoration-primary/20 hover:decoration-inherit;

resources/js/show/components/fields/text/Text.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@
7373
<ShowFieldLayout v-bind="props">
7474
<template v-if="currentContent && field.html">
7575
<TextRenderer
76-
class="content content-sm text-sm"
76+
class="content content-sm text-sm [:where(&)_:where(h1,h2,h3)]:text-foreground/75"
7777
:content="currentContent"
7878
:field="field"
7979
/>
8080
</template>
8181
<template v-else>
82-
<div class="content content-sm text-sm">
82+
<div class="text-sm">
8383
{{ currentContent }}
8484
</div>
8585
</template>

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default defineConfig(({ mode, command }) => {
4949
],
5050
publicDirectory: '/dist',
5151
refresh: [
52-
'demo/app/Sharp/**/*.php',
52+
// 'demo/app/Sharp/**/*.php',
5353
],
5454
// refresh: true,
5555
detectTls: env.APP_URL?.startsWith('https')

0 commit comments

Comments
 (0)