Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion nuxt/assets/css/style.handbook.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
@apply flex flex-col-reverse lg:grid lg:max-w-screen-xl 2xl:max-w-[1920px] 2xl:grid-cols-[300px,minmax(0,1fr),270px];
}

/* No text-transform here: labels render as the docs authors wrote them. Capitalising every
word made a section named after its directory look like a word ("install" -> "Install"),
which is no longer how any label is produced, and it mangled the rest: "Upgrading the
Node-RED version" became "Upgrading The Node-RED Version", and Bosch Rexroth's ctrlX
became CtrlX. */
.handbook-nav {
border-right: 1px solid right;
text-transform: capitalize;
--nav-weight: 500;
--nav-color: var(--color-gray-700);
--nav-bg: transparent;
Expand Down
3 changes: 2 additions & 1 deletion nuxt/components/Breadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ const displayItems = computed(() => normalizedItems.value.map((item, index) => (
</script>

<template>
<!-- No `capitalize`: every crumb is an authored page title, so capitalising each word only
mangles them, the same way it did in the sidebar. -->
<UBreadcrumb
:items="displayItems"
color="neutral"
class="capitalize"
:ui="{ link: 'text-sm' }"
>
<template #separator>
Expand Down
5 changes: 3 additions & 2 deletions nuxt/components/SidebarNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ watch(() => route.path, () => { open.value = false })
<!-- -ml-6 cancels the pl-6 the page wrapper puts on this column so the bar and its
borders run edge to edge; px-6 puts the text back where it was. The bar sits flush
under the header both at rest and while stuck, so border-t reads as the header's
own dividing line and border-b separates the bar from the article. -->
own dividing line and border-b separates the bar from the article. No
`capitalize`: labels are authored titles and render as written. -->
<div
class="lg:pt-2 text-sm capitalize max-lg:order-1 max-lg:sticky max-lg:z-30
class="lg:pt-2 text-sm max-lg:order-1 max-lg:sticky max-lg:z-30
max-lg:top-(--ff-header-height) max-lg:-ml-6 max-lg:px-6 max-lg:bg-white
max-lg:border-t max-lg:border-b"
>
Expand Down
Loading