Skip to content

Commit 25c04c2

Browse files
committed
update vertical margins
1 parent 5a53891 commit 25c04c2

File tree

4 files changed

+38
-35
lines changed

4 files changed

+38
-35
lines changed

resources/views/components/docs/copy-markdown-button.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{-- Copy as Markdown Button --}}
2-
<div {{ $attributes->merge(['class' => 'mb-4']) }} x-data="copyMarkdown()" x-init="$watch('$el', () => {})">
2+
<div {{ $attributes }} x-data="copyMarkdown()" x-init="$watch('$el', () => {})">
33
<button
44
@click="copyMarkdownToClipboard()"
55
class="flex items-center gap-1.5 text-sm opacity-60 hover:opacity-100 transition-opacity duration-200"
@@ -13,4 +13,4 @@ class="flex items-center gap-1.5 text-sm opacity-60 hover:opacity-100 transition
1313
<div x-show="!showMessage">Copy as Markdown</div>
1414
<div x-show="showMessage" x-cloak>Copied!</div>
1515
</button>
16-
</div>
16+
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<aside
2-
class="sticky top-20 hidden max-h-[clamp(15rem,100svh,88svh)] w-68 shrink-0 flex-col overflow-y-auto overflow-x-hidden px-3 py-4 xl:flex"
2+
class="sticky top-20 hidden space-y-4 max-h-[clamp(15rem,100svh,88svh)] w-68 shrink-0 flex-col overflow-y-auto overflow-x-hidden px-3 py-4 xl:flex"
33
>
44
{{ $slot }}
55
</aside>

resources/views/components/docs/toc-and-sponsors.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class="mt-4 flex min-h-20 flex-col space-y-2 overflow-y-auto overflow-x-hidden b
3131
@endif
3232

3333
<div
34-
class="mt-7 max-w-52 border-t border-t-black/20 pt-5 dark:border-t-white/15"
34+
class="mt-3 max-w-52 border-t border-t-black/20 pt-5 dark:border-t-white/15"
3535
>
3636
{{-- Sponsors --}}
3737
<h3 class="flex items-center gap-1.5 text-sm opacity-60">

resources/views/docs/index.blade.php

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
{{-- Version switcher --}}
88
@if($platform === 'desktop')
99
<livewire:version-switcher :versions="[
10-
1 => 'v1.x',
11-
2 => 'v2.x'
10+
1 => '1.x',
11+
2 => '2.x'
1212
]" />
1313
@endif
1414

@@ -22,43 +22,46 @@
2222
<x-docs.separator class="mt-4" />
2323

2424
{{-- Table of contents --}}
25-
<div class="xl:hidden pt-5">
25+
<div class="xl:hidden pt-9 space-y-4">
2626

2727
{{-- Version switcher --}}
2828
@if($platform === 'desktop')
2929
<livewire:version-switcher :versions="[
30-
1 => 'v1.x',
31-
2 => 'v2.x'
30+
1 => '1.x',
31+
2 => '2.x'
3232
]" />
3333
@endif
3434

3535
{{-- Copy as Markdown Button --}}
36-
<x-docs.copy-markdown-button class="mt-4" />
37-
38-
<h3 class="inline-flex items-center gap-1.5 text-sm opacity-50">
39-
{{-- Icon --}}
40-
<x-icons.stacked-lines class="size-[18px]" />
41-
{{-- Label --}}
42-
<div>On this page</div>
43-
</h3>
44-
@if (count($tableOfContents) > 0)
45-
<div
46-
class="mt-2 flex flex-col space-y-2 border-l text-xs dark:border-l-white/15"
47-
>
48-
@foreach ($tableOfContents as $item)
49-
<a
50-
href="#{{ $item['anchor'] }}"
51-
@class([
52-
'transition duration-300 ease-in-out will-change-transform hover:translate-x-0.5 hover:text-violet-400 hover:opacity-100 dark:text-white/80',
53-
'pb-1 pl-3' => $item['level'] == 2,
54-
'py-1 pl-6' => $item['level'] == 3,
55-
])
56-
>
57-
{{ $item['title'] }}
58-
</a>
59-
@endforeach
60-
</div>
61-
@endif
36+
<x-docs.copy-markdown-button />
37+
38+
<div>
39+
<h3 class="inline-flex items-center gap-1.5 text-sm opacity-50">
40+
{{-- Icon --}}
41+
<x-icons.stacked-lines class="size-[18px]" />
42+
{{-- Label --}}
43+
<div>On this page</div>
44+
</h3>
45+
@if (count($tableOfContents) > 0)
46+
<div
47+
class="mt-2 flex flex-col space-y-2 border-l text-xs dark:border-l-white/15"
48+
>
49+
@foreach ($tableOfContents as $item)
50+
<a
51+
href="#{{ $item['anchor'] }}"
52+
@class([
53+
'transition duration-300 ease-in-out will-change-transform hover:translate-x-0.5 hover:text-violet-400 hover:opacity-100 dark:text-white/80',
54+
'pb-1 pl-3' => $item['level'] == 2,
55+
'py-1 pl-6' => $item['level'] == 3,
56+
])
57+
>
58+
{{ $item['title'] }}
59+
</a>
60+
@endforeach
61+
</div>
62+
@endif
63+
</div>
64+
6265
</div>
6366

6467
<div

0 commit comments

Comments
 (0)