Skip to content

Commit 9cd6267

Browse files
committed
update styles
1 parent 315da24 commit 9cd6267

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/routes/reactivity/effects.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The effect runs once when created, logging `Count is: 0`, and will run again whe
5353

5454
An effect goes through a predictable cycle every time it's created and re-runs:
5555

56-
### 1. **Initialization**
56+
### 1. Initialization
5757

5858
When you call `createEffect`, the effect is immediately scheduled to run **once**.
5959
This first run happens **after the current render phase** finishes, or after the component function returns its JSX.
@@ -68,7 +68,7 @@ console.log("Hello");
6868
// Initial run
6969
```
7070

71-
### 2. **Dependency tracking**
71+
### 2. Dependency tracking
7272

7373
During its first run, the effect records every reactive value it accesses (such as signals or memos).
7474
It becomes subscribed to those values, which are now its **dependencies**.
@@ -85,7 +85,7 @@ createEffect(() => {
8585
// every setCount(...) re‑runs the effect
8686
```
8787

88-
### 3. **Reactive Updates**
88+
### 3. Reactive Updates
8989

9090
Whenever *any* dependency changes, the effects is scheduled to run again.
9191
This happens **after the current synchronous code completes**, ensuring that all changes are batched together.
@@ -99,7 +99,7 @@ createEffect(() => {
9999
console.log(`Count: ${count()}, Name: ${name()}`);
100100
});
101101

102-
setCount(1);
102+
setCount(1);
103103
setName("SolidJS");
104104
```
105105

src/solidbase-theme/mdx-components.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,7 @@ export const a = (props: ParentProps & { href: string }) => {
184184
);
185185
}
186186
};
187-
export const p = (props: ParentProps) => (
188-
<p {...props} class="my-4">
189-
{props.children}
190-
</p>
191-
);
187+
export const p = (props: ParentProps) => <p {...props}>{props.children}</p>;
192188
export const li = (props: ParentProps) => (
193189
<li {...props} class="mb-2 marker:text-slate-600 dark:marker:text-slate-300">
194190
{props.children}

src/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ h6 {
219219
line-height: 1.3;
220220
}
221221

222+
p {
223+
line-height: 1.6;
224+
}
225+
222226
.shiki.material-theme-ocean {
223227
background-color: transparent !important;
224228
}

0 commit comments

Comments
 (0)