Skip to content

Commit 8da4389

Browse files
committed
🚧 Improve inline code block readability
1 parent 20b6426 commit 8da4389

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

‎src/lib/styles/kit-docs.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,15 @@ code::after {
9595
}
9696

9797
code:not(pre code) {
98-
background-color: var(--kd-code-fence-bg) !important;
99-
padding: 4px 8px !important;
100-
border-radius: 6px !important;
101-
color: var(--kd-code-fence-fg) !important;
98+
background-color: #16171b !important;
99+
padding: 4px 6px !important;
100+
border-radius: 4px !important;
101+
border: 1px solid #2e3440 !important;
102+
color: #f78c6c !important;
102103
font-weight: normal !important;
103104
text-wrap: nowrap !important;
104105
}
106+
107+
td {
108+
text-wrap: balance !important;
109+
}

‎src/routes/docs/[...3]exported-rigs/[...2]summoning-a-new-rig-instance/+page.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ execute positioned <x> <y> <z> rotated <rx> <ry> run function animated_java:<exp
1919

2020
## Arguments
2121

22-
The `summon` function can take the following arguments:
23-
24-
- `variant` (optional): The name of the Variant of the Rig Instance to summon. If not specified, the default Variant will be used.
25-
- `animation` (optional): The name of the Animation to use as the summoned pose of the Rig Instance. If not specified, the default pose will be used.
26-
- `frame` (optional): Which frame of the Animation to use as the summoned pose of the Rig Instance. If not specified, the first frame will be used. Requires the `animation` argument to be specified.
27-
- `start_animation` (optional): Whether to start the Animation when the Rig Instance is summoned. If not specified, the Animation will not start. Requires the `animation` argument to be specified.
22+
| Name | Type | Description |
23+
| ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
24+
| `variant` | String | The name of the Variant of the Rig Instance to summon. If not specified, the default Variant will be used. |
25+
| `animation` | String | The name of the Animation to use as the summoned pose of the Rig Instance. If not specified, the default pose will be used. |
26+
| `frame` | Integer | Which frame of the Animation to use as the summoned pose of the Rig Instance. If not specified, the first frame will be used. Requires the `animation` argument to be specified. |
27+
| `start_animation` | Boolean | Whether to start the Animation when the Rig Instance is summoned. If not specified, the Animation will not start. Requires the `animation` argument to be specified. |
2828

2929
:::admonition type="info" title="Examples"
3030

‎src/routes/docs/[...3]exported-rigs/[...3]controlling-a-rig-instance/+page.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ Sets the animation to a specific frame with interpolation.
7777

7878
#### Arguments
7979

80-
- `frame` (int): The frame to set the animation to.
80+
| Name | Type | Description |
81+
| ------- | ------- | ---------------------------------- |
82+
| `frame` | Integer | The frame to set the animation to. |
8183

8284
```rust title=Set the walk animation to frame 10 with interpolation | copy
8385
execute as @e[type=item_display,tag=aj.<export_namespace>.root] run \
@@ -90,7 +92,9 @@ Sets the animation to a specific frame instantly without interpolation.
9092

9193
#### Arguments
9294

93-
- `frame` (int): The frame to set the animation to.
95+
| Name | Type | Description |
96+
| ------- | ------- | ---------------------------------- |
97+
| `frame` | Integer | The frame to set the animation to. |
9498

9599
```rust title=Set the walk animation to frame 10 | copy
96100
execute as @e[type=item_display,tag=aj.<export_namespace>.root] run \
@@ -103,8 +107,10 @@ Pauses all currently playing animations, and smoothly transitions to the target
103107

104108
#### Arguments
105109

106-
- `to_frame` (int): The frame of this animation to tween to.
107-
- `duration` (int): The duration of the tween in ticks.
110+
| Name | Type | Description |
111+
| ---------- | ------- | ---------------------------------------- |
112+
| `to_frame` | Integer | The frame of this animation to tween to. |
113+
| `duration` | Integer | The duration of the tween in ticks. |
108114

109115
```rust title=Smoothly transition the walk animation to frame 10 over a second | copy
110116
execute as @e[type=item_display,tag=aj.<export_namespace>.root] run \

0 commit comments

Comments
 (0)