Skip to content

Improve breakout CSS #85

@Rich-Harris

Description

@Rich-Harris

There's lots of places where our CSS could be given a facelift, but one of the biggest wins is probably to improve the way our breakouts look — I find these a bit too jarring...

image

...and even more so in dark mode:

image

And our new 'legacy mode' details don't mesh with them very well:

image

We also don't have a way to distinguish between different kinds of note. I think it would be nice to have something like this in our system, and I think it would be great if the legacy mode details looked consistent with them (notwithstanding the fact that they're toggleable, unlike other notes).

Speaking of legacy mode details, authoring-wise I think we should replace this...

<details class="legacy">
<summary>Legacy mode</summary>

In Svelte 4, state was implicitly reactive if the variable was declared at the top level

```svelte
<script>
	let count = 0;
</script>

<button on:click={() => count++}>
	clicks: {count}
</button>
```

</details>

...with this:

> [!LEGACY]
> In Svelte 4, state was implicitly reactive if the variable was declared at the top level
>
> ```svelte
> <script>
> 	let count = 0;
> </script>
>
> <button on:click={() => count++}>
> 	clicks: {count}
> </button>
> ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions